Lines Matching refs:O_PATH
451 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC);
454 ruleset_fd = open(dir_s1d1, O_PATH | O_DIRECTORY | O_CLOEXEC);
478 /* Tests without O_PATH. */
493 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC);
574 path_beneath_file.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC);
579 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC);
632 open(TMP_DIR, O_PATH | O_DIRECTORY | O_CLOEXEC);
659 path_beneath.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC);
688 path_beneath.parent_fd = open(path, O_PATH | O_CLOEXEC);
793 path_beneath.parent_fd = open("/proc/self/ns/mnt", O_PATH | O_CLOEXEC);
846 /* Tests on a directory (with or without O_PATH). */
848 ASSERT_EQ(0, test_open("/", O_RDONLY | O_PATH));
850 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY | O_PATH));
852 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY | O_PATH));
859 /* Tests on a file (with or without O_PATH). */
861 ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY | O_PATH));