Lines Matching refs:reg_fd
780 int reg_fd; in TEST_F_FORK() local
806 reg_fd = open(file1_s2d2, O_RDWR | O_CLOEXEC); in TEST_F_FORK()
807 ASSERT_LE(0, reg_fd); in TEST_F_FORK()
808 ASSERT_EQ(1, write(reg_fd, ".", 1)); in TEST_F_FORK()
809 ASSERT_LE(0, lseek(reg_fd, 0, SEEK_SET)); in TEST_F_FORK()
810 ASSERT_EQ(1, read(reg_fd, &buf, 1)); in TEST_F_FORK()
812 ASSERT_EQ(0, close(reg_fd)); in TEST_F_FORK()
815 reg_fd = open(file1_s2d2, O_RDONLY | O_CLOEXEC); in TEST_F_FORK()
816 ASSERT_LE(0, reg_fd); in TEST_F_FORK()
817 ASSERT_EQ(-1, write(reg_fd, &buf, 1)); in TEST_F_FORK()
819 ASSERT_EQ(0, close(reg_fd)); in TEST_F_FORK()
3191 int reg_fd, proc_fd; in TEST_F_FORK() local
3203 reg_fd = open(file1_s1d2, O_RDONLY | O_CLOEXEC); in TEST_F_FORK()
3204 ASSERT_LE(0, reg_fd); in TEST_F_FORK()
3207 proc_fd = open_proc_fd(_metadata, reg_fd, O_RDONLY | O_CLOEXEC); in TEST_F_FORK()
3211 proc_fd = open_proc_fd(_metadata, reg_fd, O_RDWR | O_CLOEXEC); in TEST_F_FORK()
3214 TH_LOG("Successfully opened /proc/self/fd/%d: %s", reg_fd, in TEST_F_FORK()
3219 ASSERT_EQ(0, close(reg_fd)); in TEST_F_FORK()