Lines Matching refs:filename
206 char filename[256]; in test2fopen() local
208 msnprintf(filename, sizeof(filename), ALTTEST_DATA_PATH, logdir, testno); in test2fopen()
209 stream = fopen(filename, "rb"); in test2fopen()
214 msnprintf(filename, sizeof(filename), TEST_DATA_PATH, path, testno); in test2fopen()
215 stream = fopen(filename, "rb"); in test2fopen()
294 int write_pidfile(const char *filename) in write_pidfile() argument
300 pidfile = fopen(filename, "wb"); in write_pidfile()
302 logmsg("Couldn't write pid file: %s %s", filename, strerror(errno)); in write_pidfile()
307 logmsg("Wrote pid %" CURL_FORMAT_CURL_OFF_T " to %s", pid, filename); in write_pidfile()
312 int write_portfile(const char *filename, int port) in write_portfile() argument
314 FILE *portfile = fopen(filename, "wb"); in write_portfile()
316 logmsg("Couldn't write port file: %s %s", filename, strerror(errno)); in write_portfile()
321 logmsg("Wrote port %d to %s", port, filename); in write_portfile()
325 void set_advisor_read_lock(const char *filename) in set_advisor_read_lock() argument
332 lockfile = fopen(filename, "wb"); in set_advisor_read_lock()
336 filename, error, strerror(error)); in set_advisor_read_lock()
345 filename, error, strerror(error)); in set_advisor_read_lock()
348 void clear_advisor_read_lock(const char *filename) in clear_advisor_read_lock() argument
360 res = unlink(filename); in clear_advisor_read_lock()
364 filename, error, strerror(error)); in clear_advisor_read_lock()