Lines Matching refs:fd2
97 int fd1, fd2; in test_flopen_lock_self() local
104 fd2 = flopen(fn, O_RDWR|O_NONBLOCK); in test_flopen_lock_self()
105 if (fd2 >= 0) { in test_flopen_lock_self()
107 close(fd2); in test_flopen_lock_self()
123 volatile int fd1, fd2; in test_flopen_lock_other() local
130 fd2 = -42; in test_flopen_lock_other()
132 fd2 = flopen(fn, O_RDWR|O_NONBLOCK); in test_flopen_lock_other()
133 close(fd2); in test_flopen_lock_other()
136 if (fd2 == -42) in test_flopen_lock_other()
138 if (fd2 >= 0) in test_flopen_lock_other()
155 volatile int fd1, fd2; in test_flopen_lock_child() local
170 if ((fd2 = flopen(fn, O_RDWR|O_NONBLOCK)) != -1) { in test_flopen_lock_child()
172 close(fd2); in test_flopen_lock_child()