Lines Matching refs:f
54 FILE *f = xfopen (pidfile, "w"); in sl() local
56 fprintf (f, "%lld\n", (long long) getpid ()); in sl()
57 fflush (f); in sl()
69 if (fcntl (fileno (f), F_SETLK, &fl) != 0) in sl()
125 FILE *f = xfopen (pidfilename, "r+"); in do_test() local
128 if (fscanf (f, "%lld\n", &ll) != 1) in do_test()
138 if (fcntl (fileno (f), F_GETLK, &fl) != 0) in do_test()
150 xfclose (f); in do_test()
158 FILE *f = fopen (pidfilename, "r+"); in do_cleanup() local
161 if (f != NULL && fscanf (f, "%lld\n", &ll) == 1) in do_cleanup()
170 if (fcntl (fileno (f), F_GETLK, &fl) == 0 && fl.l_type != F_UNLCK in do_cleanup()
174 fclose (f); in do_cleanup()