Lines Matching refs:sfd
61 int arg, sfd; in test_common_badsession() local
68 if (test_fork(&pid, &sfd) == PARENT) { in test_common_badsession()
69 test_barrier(sfd); in test_common_badsession()
86 test_barrier(sfd); in test_common_badsession()
88 return test_wait(pid, sfd); in test_common_badsession()
98 int flags, sfd; in test_common_cansigio() local
108 if (test_fork(&pid, &sfd) == PARENT) { in test_common_cansigio()
111 test_barrier(sfd); in test_common_cansigio()
112 test_barrier(sfd); in test_common_cansigio()
116 test_barrier(sfd); in test_common_cansigio()
121 test_barrier(sfd); in test_common_cansigio()
122 test_barrier(sfd); in test_common_cansigio()
129 test_barrier(sfd); in test_common_cansigio()
131 test_barrier(sfd); in test_common_cansigio()
133 test_barrier(sfd); in test_common_cansigio()
135 test_barrier(sfd); in test_common_cansigio()
137 test_barrier(sfd); in test_common_cansigio()
139 return test_wait(pid, sfd); in test_common_cansigio()
195 int flags, sfd; in test_common_read() local
203 if (test_fork(&pid, &sfd) == PARENT) { in test_common_read()
205 test_barrier(sfd); in test_common_read()
206 test_barrier(sfd); in test_common_read()
210 test_barrier(sfd); in test_common_read()
212 test_barrier(sfd); in test_common_read()
214 return test_wait(pid, sfd); in test_common_read()
225 int flags, sfd; in test_common_write() local
235 if (test_fork(&pid, &sfd) == PARENT) { in test_common_write()
242 test_barrier(sfd); in test_common_write()
243 test_barrier(sfd); in test_common_write()
247 test_barrier(sfd); in test_common_write()
252 test_barrier(sfd); in test_common_write()
254 return test_wait(pid, sfd); in test_common_write()