Lines Matching refs:reg_fd
659 int reg_fd; in TEST_F_FORK() local
685 reg_fd = open(file1_s2d2, O_RDWR | O_CLOEXEC); in TEST_F_FORK()
686 ASSERT_LE(0, reg_fd); in TEST_F_FORK()
687 ASSERT_EQ(1, write(reg_fd, ".", 1)); in TEST_F_FORK()
688 ASSERT_LE(0, lseek(reg_fd, 0, SEEK_SET)); in TEST_F_FORK()
689 ASSERT_EQ(1, read(reg_fd, &buf, 1)); in TEST_F_FORK()
691 ASSERT_EQ(0, close(reg_fd)); in TEST_F_FORK()
694 reg_fd = open(file1_s2d2, O_RDONLY | O_CLOEXEC); in TEST_F_FORK()
695 ASSERT_LE(0, reg_fd); in TEST_F_FORK()
696 ASSERT_EQ(-1, write(reg_fd, &buf, 1)); in TEST_F_FORK()
698 ASSERT_EQ(0, close(reg_fd)); in TEST_F_FORK()
3070 int reg_fd, proc_fd; in TEST_F_FORK() local
3082 reg_fd = open(file1_s1d2, O_RDONLY | O_CLOEXEC); in TEST_F_FORK()
3083 ASSERT_LE(0, reg_fd); in TEST_F_FORK()
3086 proc_fd = open_proc_fd(_metadata, reg_fd, O_RDONLY | O_CLOEXEC); in TEST_F_FORK()
3090 proc_fd = open_proc_fd(_metadata, reg_fd, O_RDWR | O_CLOEXEC); in TEST_F_FORK()
3093 TH_LOG("Successfully opened /proc/self/fd/%d: %s", reg_fd, in TEST_F_FORK()
3098 ASSERT_EQ(0, close(reg_fd)); in TEST_F_FORK()