Lines Matching refs:fd1
97 int fd1, fd2; in test_flopen_lock_self() local
100 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_self()
101 if (fd1 < 0) { in test_flopen_lock_self()
109 close(fd1); in test_flopen_lock_self()
123 volatile int fd1, fd2; in test_flopen_lock_other() local
126 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_other()
127 if (fd1 < 0) { in test_flopen_lock_other()
140 close(fd1); in test_flopen_lock_other()
155 volatile int fd1, fd2; in test_flopen_lock_child() local
158 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_child()
159 if (fd1 < 0) { in test_flopen_lock_child()
169 close(fd1); in test_flopen_lock_child()