Searched refs:to_child (Results 1 – 6 of 6) sorted by relevance
| /linux/tools/testing/selftests/filesystems/umount_propagation/ |
| H A D | umount_propagation_test.c | 188 int to_child[2], to_parent[2]; in TEST_F() local 192 ASSERT_EQ(pipe(to_child), 0); in TEST_F() 198 close(to_child[1]); in TEST_F() 201 to_child[0])); in TEST_F() 203 close(to_child[0]); in TEST_F() 212 ASSERT_EQ(send_msg(to_child[1], MSG_CHECK), 0); in TEST_F() 216 ASSERT_EQ(send_msg(to_child[1], MSG_CLOSE), 0); in TEST_F() 220 ASSERT_EQ(send_msg(to_child[1], MSG_EXIT), 0); in TEST_F()
|
| /linux/tools/testing/selftests/filesystems/mount_cycle/ |
| H A D | nsfs_rbind_loop_test.c | 154 int to_child[2], to_parent[2], fd, status; in TEST_F() local 166 ASSERT_EQ(pipe(to_child), 0); in TEST_F() 171 close(to_child[1]); in TEST_F() 173 _exit(newer_ns_child(self->dir, fd, to_parent[1], to_child[0])); in TEST_F() 175 close(to_child[0]); in TEST_F() 183 ASSERT_EQ(send_msg(to_child[1], 'g'), 0); in TEST_F()
|
| H A D | mount_cover_test.c | 189 int to_child; in FIXTURE() local 223 if (write(self->to_child, &cmd, 1) != 1) in cover_cleanup() 227 if (self->to_child >= 0) in cover_cleanup() 228 close(self->to_child); in cover_cleanup() 246 int to_parent[2], to_child[2], fds[4], pidfd, status; in FIXTURE_SETUP() local 251 self->to_child = self->from_child = -1; in FIXTURE_SETUP() 275 ASSERT_EQ(pipe(to_child), 0) in FIXTURE_SETUP() 282 close(to_child[1]); in FIXTURE_SETUP() 283 _exit(cover_child(self->base, to_parent[1], to_child[0])); in FIXTURE_SETUP() 286 close(to_child[0]); in FIXTURE_SETUP() [all …]
|
| H A D | unmounted_tree_test.c | 282 int to_parent[2], to_child[2], status; in run_child() local 286 if (pipe(to_parent) || pipe(to_child)) in run_child() 293 close(to_child[1]); in run_child() 294 _exit(fn(a, to_parent[1], to_child[0])); in run_child() 297 close(to_child[0]); in run_child() 301 EXPECT_EQ(write(to_child[1], "", 1), 1); in run_child() 304 close(to_child[1]); in run_child()
|
| H A D | loop_cycle_test.c | 610 int to_parent[2], to_child[2]; in TEST_F() local 616 ASSERT_EQ(pipe(to_child), 0); in TEST_F() 622 close(to_child[1]); in TEST_F() 623 _exit(loop_child(to_parent[1], to_child[0])); in TEST_F() 626 close(to_child[0]); in TEST_F() 640 ASSERT_EQ(write(to_child[1], "", 1), 1); in TEST_F() 643 close(to_child[1]); in TEST_F() 716 int to_parent[2], to_child[2]; in TEST_F() local 722 ASSERT_EQ(pipe(to_child), 0); in TEST_F() 728 close(to_child[1]); in TEST_F() [all …]
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | uid_map_range_test.c | 260 int to_child[2], from_child[2]; in TEST() local 272 ASSERT_EQ(pipe(to_child), 0); in TEST() 277 close(to_child[1]); in TEST() 283 if (read(to_child[0], &c, 1) < 0) in TEST() 287 close(to_child[0]); in TEST() 295 close(to_child[1]); in TEST()
|