Lines Matching refs:path
70 const char *path, const char *fmt, ...)
76 f = fopen(path, "r");
80 path);
92 "The FILE '%s' ended prematurely", path);
99 exp_convs, ret, path);
105 path);
114 path);
122 const char *path, const char *fmt, ...)
128 f = fopen(path, "r");
132 "Failed to open FILE '%s' for reading", path);
144 "The FILE '%s' ended prematurely", path);
151 exp_convs, ret, path);
157 "Failed to close FILE '%s'", path);
164 * Try to parse each line from file specified by 'path' according
170 const char *path, const char *fmt, ...)
183 fp = fopen(path, "r");
186 "Failed to open FILE '%s' for reading", path);
205 arg_count, ret, path);
213 const char *path, const char *fmt, ...)
218 f = fopen(path, "w");
222 path);
230 path);
238 path);
247 path);
254 void (*cleanup_fn)(void), const char *path, const char *fmt,
259 f = fopen(path, "w");
263 "Failed to open FILE '%s' for writing", path);
269 "Failed to print to FILE '%s'", path);
275 "Failed to close FILE '%s'", path);
281 void (*cleanup_fn)(void), const char *path, const char *fmt, ...)
286 safe_file_vprintf(file, lineno, cleanup_fn, path, fmt, va);
291 void (*cleanup_fn)(void), const char *path, const char *fmt, ...)
295 if (access(path, F_OK))
299 safe_file_vprintf(file, lineno, cleanup_fn, path, fmt, va);