Lines Matching refs:fd1
96 int fd1, fd2; in test_flopen_lock_self() local
99 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_self()
100 if (fd1 < 0) { in test_flopen_lock_self()
108 close(fd1); in test_flopen_lock_self()
122 volatile int fd1, fd2; in test_flopen_lock_other() local
125 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_other()
126 if (fd1 < 0) { in test_flopen_lock_other()
139 close(fd1); in test_flopen_lock_other()
154 volatile int fd1, fd2; in test_flopen_lock_child() local
157 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_child()
158 if (fd1 < 0) { in test_flopen_lock_child()
168 close(fd1); in test_flopen_lock_child()