Searched refs:reg_fd (Results 1 – 1 of 1) sorted by relevance
/linux/tools/testing/selftests/landlock/ |
H A D | fs_test.c | 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() [all …]
|