Lines Matching defs:state_file
106 char state_file[MAXPATHLEN+SM_MAXPATHLEN];
131 (void) sprintf(state_file, "%s/statmon/state", path_name[i]);
132 if ((fp_tmp = fopen(state_file, "r+")) == (FILE *)NULL) {
133 if ((fp_tmp = fopen(state_file, "w+"))
138 state_file);
141 (void) chmod(state_file, 0644);
146 "statd: %s: file empty\n", state_file);
181 (void) sprintf(state_file, "%s/statmon/state", path_name[i]);
182 if ((fp_tmp = fopen(state_file, "r+")) == (FILE *)NULL) {
183 if ((fp_tmp = fopen(state_file, "w+"))
186 "can't open %s: %m", state_file);
189 (void) chmod(state_file, 0644);
195 "statd: %s: fsync failed\n", state_file);