Lines Matching refs:reg_fd
863 int reg_fd; in TEST_F_FORK() local
889 reg_fd = open(file1_s2d2, O_RDWR | O_CLOEXEC); in TEST_F_FORK()
890 ASSERT_LE(0, reg_fd); in TEST_F_FORK()
891 ASSERT_EQ(1, write(reg_fd, ".", 1)); in TEST_F_FORK()
892 ASSERT_LE(0, lseek(reg_fd, 0, SEEK_SET)); in TEST_F_FORK()
893 ASSERT_EQ(1, read(reg_fd, &buf, 1)); in TEST_F_FORK()
895 ASSERT_EQ(0, close(reg_fd)); in TEST_F_FORK()
898 reg_fd = open(file1_s2d2, O_RDONLY | O_CLOEXEC); in TEST_F_FORK()
899 ASSERT_LE(0, reg_fd); in TEST_F_FORK()
900 ASSERT_EQ(-1, write(reg_fd, &buf, 1)); in TEST_F_FORK()
902 ASSERT_EQ(0, close(reg_fd)); in TEST_F_FORK()
3370 int reg_fd, proc_fd; in TEST_F_FORK() local
3382 reg_fd = open(file1_s1d2, O_RDONLY | O_CLOEXEC); in TEST_F_FORK()
3383 ASSERT_LE(0, reg_fd); in TEST_F_FORK()
3386 proc_fd = open_proc_fd(_metadata, reg_fd, O_RDONLY | O_CLOEXEC); in TEST_F_FORK()
3390 proc_fd = open_proc_fd(_metadata, reg_fd, O_RDWR | O_CLOEXEC); in TEST_F_FORK()
3393 TH_LOG("Successfully opened /proc/self/fd/%d: %s", reg_fd, in TEST_F_FORK()
3398 ASSERT_EQ(0, close(reg_fd)); in TEST_F_FORK()