Lines Matching refs:fd2
96 int fd1, fd2; in test_flopen_lock_self() local
103 fd2 = flopen(fn, O_RDWR|O_NONBLOCK); in test_flopen_lock_self()
104 if (fd2 >= 0) { in test_flopen_lock_self()
106 close(fd2); in test_flopen_lock_self()
122 volatile int fd1, fd2; in test_flopen_lock_other() local
129 fd2 = -42; in test_flopen_lock_other()
131 fd2 = flopen(fn, O_RDWR|O_NONBLOCK); in test_flopen_lock_other()
132 close(fd2); in test_flopen_lock_other()
135 if (fd2 == -42) in test_flopen_lock_other()
137 if (fd2 >= 0) in test_flopen_lock_other()
154 volatile int fd1, fd2; in test_flopen_lock_child() local
169 if ((fd2 = flopen(fn, O_RDWR|O_NONBLOCK)) != -1) { in test_flopen_lock_child()
171 close(fd2); in test_flopen_lock_child()