Lines Matching refs:FILE
2 * @file op_lockfile.c
6 * @remark Read the file COPYING
22 static pid_t op_read_lock_file(char const * file)
24 FILE * fp;
27 fp = fopen(file, "r");
42 int op_write_lock_file(char const * file)
44 FILE * fp;
46 if (op_file_readable(file)) {
47 pid_t pid = op_read_lock_file(file);
51 int err = unlink(file);
52 fprintf(stderr, "Removing stale lock file %s\n",
53 file);
61 fp = fopen(file, "w");