Lines Matching refs:fd2
99 int fd1, fd2; in test_flopen_lock_self() local
106 fd2 = flopen(fn, O_RDWR|O_NONBLOCK); in test_flopen_lock_self()
107 if (fd2 >= 0) { in test_flopen_lock_self()
109 close(fd2); in test_flopen_lock_self()
125 volatile int fd1, fd2; in test_flopen_lock_other() local
132 fd2 = -42; in test_flopen_lock_other()
134 fd2 = flopen(fn, O_RDWR|O_NONBLOCK); in test_flopen_lock_other()
135 close(fd2); in test_flopen_lock_other()
138 if (fd2 == -42) in test_flopen_lock_other()
140 if (fd2 >= 0) in test_flopen_lock_other()
157 volatile int fd1, fd2; in test_flopen_lock_child() local
172 if ((fd2 = flopen(fn, O_RDWR|O_NONBLOCK)) != -1) { in test_flopen_lock_child()
174 close(fd2); in test_flopen_lock_child()