Lines Matching refs:file_fd
71 int file_fd; variable
131 if ((file_fd = mkstemp(template)) < 0) { in setup()
135 if (write(file_fd, buf, STRINGSIZE) < 0) { in setup()
172 close(file_fd); in cleanup()
190 if (fcntl(file_fd, F_SETLK, &lock1) < 0) { in do_child1()
201 fcntl(file_fd, F_SETLK, &unlock); in do_child1()
222 if (fcntl(file_fd, F_SETLK, &lock2) < 0) { in do_child2()
233 if (fcntl(file_fd, F_SETLKW, &lock4) < 0) { in do_child2()
260 if (fcntl(file_fd, F_SETLK, &lock3) < 0) { in do_child3()
271 if (fcntl(file_fd, F_SETLKW, &lock5) < 0) { in do_child3()
294 if (fcntl(file_fd, F_GETLK, &fl) < 0) { in do_test()
442 maybe_run_child(&do_child1, "nddddddddd", 1, &file_fd, in main()
447 maybe_run_child(&do_child2, "nddddddddd", 2, &file_fd, in main()
452 maybe_run_child(&do_child3, "nddddddddd", 3, &file_fd, in main()
472 if (self_exec(av[0], "nddddddddd", 1, file_fd, in main()
490 if (self_exec(av[0], "nddddddddd", 2, file_fd, in main()
509 if (self_exec(av[0], "nddddddddd", 3, file_fd, in main()