Lines Matching refs:fn
60 const char *fn = "test_pidfile_uncontested"; in test_pidfile_uncontested() local
64 unlink(fn); in test_pidfile_uncontested()
65 pf = pidfile_open(fn, 0600, &other); in test_pidfile_uncontested()
72 unlink(fn); in test_pidfile_uncontested()
76 unlink(fn); in test_pidfile_uncontested()
86 const char *fn = "test_pidfile_self"; in test_pidfile_self() local
91 unlink(fn); in test_pidfile_self()
92 pf1 = pidfile_open(fn, 0600, &other); in test_pidfile_self()
100 unlink(fn); in test_pidfile_self()
104 pf2 = pidfile_open(fn, 0600, &other); in test_pidfile_self()
108 unlink(fn); in test_pidfile_self()
113 unlink(fn); in test_pidfile_self()
117 unlink(fn); in test_pidfile_self()
125 common_test_pidfile_child(const char *fn, int parent_open) in common_test_pidfile_child() argument
134 unlink(fn); in common_test_pidfile_child()
139 pf = pidfile_open(fn, 0600, &other); in common_test_pidfile_child()
154 pf = pidfile_open(fn, 0600, &other); in common_test_pidfile_child()
163 unlink(fn); in common_test_pidfile_child()
193 unlink(fn); in common_test_pidfile_child()
200 pf = pidfile_open(fn, 0600, &other); in common_test_pidfile_child()
203 unlink(fn); in common_test_pidfile_child()
209 unlink(fn); in common_test_pidfile_child()
215 unlink(fn); in common_test_pidfile_child()
222 unlink(fn); in common_test_pidfile_child()
243 const char *fn = "test_pidfile_contested"; in test_pidfile_contested() local
246 result = common_test_pidfile_child(fn, 0); in test_pidfile_contested()
256 const char *fn = "test_pidfile_inherited"; in test_pidfile_inherited() local
259 result = common_test_pidfile_child(fn, 1); in test_pidfile_inherited()