Lines Matching refs:fd1
99 int fd1, fd2; in test_flopen_lock_self() local
102 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_self()
103 if (fd1 < 0) { in test_flopen_lock_self()
111 close(fd1); in test_flopen_lock_self()
125 volatile int fd1, fd2; in test_flopen_lock_other() local
128 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_other()
129 if (fd1 < 0) { in test_flopen_lock_other()
142 close(fd1); in test_flopen_lock_other()
157 volatile int fd1, fd2; in test_flopen_lock_child() local
160 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_child()
161 if (fd1 < 0) { in test_flopen_lock_child()
171 close(fd1); in test_flopen_lock_child()