Lines Matching refs:fn
47 const char *fn = "test_flopen_create"; in test_flopen_create() local
51 unlink(fn); in test_flopen_create()
52 fd = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_create()
58 unlink(fn); in test_flopen_create()
68 const char *fn = "test_flopen_open"; in test_flopen_open() local
72 fd = open(fn, O_RDWR|O_CREAT, 0640); in test_flopen_open()
77 fd = flopen(fn, O_RDWR); in test_flopen_open()
84 unlink(fn); in test_flopen_open()
94 const char *fn = "test_flopen_lock_self"; in test_flopen_lock_self() local
98 unlink(fn); in test_flopen_lock_self()
99 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_self()
103 fd2 = flopen(fn, O_RDWR|O_NONBLOCK); in test_flopen_lock_self()
110 unlink(fn); in test_flopen_lock_self()
120 const char *fn = "test_flopen_lock_other"; in test_flopen_lock_other() local
124 unlink(fn); in test_flopen_lock_other()
125 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_other()
131 fd2 = flopen(fn, O_RDWR|O_NONBLOCK); in test_flopen_lock_other()
141 unlink(fn); in test_flopen_lock_other()
151 const char *fn = "test_flopen_lock_child"; in test_flopen_lock_child() local
156 unlink(fn); in test_flopen_lock_child()
157 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_child()
169 if ((fd2 = flopen(fn, O_RDWR|O_NONBLOCK)) != -1) { in test_flopen_lock_child()
175 unlink(fn); in test_flopen_lock_child()