Lines Matching refs:fn
50 const char *fn = "test_flopen_create"; in test_flopen_create() local
54 unlink(fn); in test_flopen_create()
55 fd = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_create()
61 unlink(fn); in test_flopen_create()
71 const char *fn = "test_flopen_open"; in test_flopen_open() local
75 fd = open(fn, O_RDWR|O_CREAT, 0640); in test_flopen_open()
80 fd = flopen(fn, O_RDWR); in test_flopen_open()
87 unlink(fn); in test_flopen_open()
97 const char *fn = "test_flopen_lock_self"; in test_flopen_lock_self() local
101 unlink(fn); in test_flopen_lock_self()
102 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_self()
106 fd2 = flopen(fn, O_RDWR|O_NONBLOCK); in test_flopen_lock_self()
113 unlink(fn); in test_flopen_lock_self()
123 const char *fn = "test_flopen_lock_other"; in test_flopen_lock_other() local
127 unlink(fn); in test_flopen_lock_other()
128 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_other()
134 fd2 = flopen(fn, O_RDWR|O_NONBLOCK); in test_flopen_lock_other()
144 unlink(fn); in test_flopen_lock_other()
154 const char *fn = "test_flopen_lock_child"; in test_flopen_lock_child() local
159 unlink(fn); in test_flopen_lock_child()
160 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_child()
172 if ((fd2 = flopen(fn, O_RDWR|O_NONBLOCK)) != -1) { in test_flopen_lock_child()
178 unlink(fn); in test_flopen_lock_child()