Lines Matching refs:stat
72 struct stat etc_hostname_stat;
73 struct stat etc_os_release_stat;
74 struct stat etc_machine_info_stat;
98 struct stat current_stat = {}; in context_read_etc_hostname()
103 if (stat("/etc/hostname", ¤t_stat) >= 0 && in context_read_etc_hostname()
117 struct stat current_stat = {}; in context_read_machine_info()
122 if (stat("/etc/machine-info", ¤t_stat) >= 0 && in context_read_machine_info()
150 struct stat current_stat = {}; in context_read_os_release()
155 if ((stat("/etc/os-release", ¤t_stat) >= 0 || in context_read_os_release()
156 stat("/usr/lib/os-release", ¤t_stat) >= 0) && in context_read_os_release()
492 static void unset_statp(struct stat **p) { in unset_statp()
496 **p = (struct stat) {}; in unset_statp()
500 _cleanup_(unset_statp) struct stat *s = NULL; in context_write_data_static_hostname()
526 _cleanup_(unset_statp) struct stat *s = NULL; in context_write_data_machine_info()