Searched refs:O_DIRECTORY (Results 26 - 49 of 49) sorted by relevance

12

/linux-master/samples/bpf/
H A Dtest_cgrp2_attach.c163 cg_fd = open(argv[optind], O_DIRECTORY | O_RDONLY);
H A Dtest_cgrp2_sock.c261 cg_fd = open(cgrp_path, O_DIRECTORY | O_RDONLY);
/linux-master/tools/perf/tests/
H A Dpmu.c173 fd = open(format, O_DIRECTORY);
/linux-master/tools/testing/selftests/openat2/
H A Dresolve_test.c59 dfd = open(dirname, O_PATH | O_DIRECTORY);
65 tmpfd = openat(dfd, "root", O_PATH | O_DIRECTORY);
459 dfd = openat(rootfd, test->dir, O_PATH | O_DIRECTORY);
H A Dopenat2_test.c176 { .name = "compatible flags (O_PATH | O_DIRECTORY)",
177 .how.flags = O_PATH | O_DIRECTORY },
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_wait.c55 pidfd = open("/proc/self", O_DIRECTORY | O_RDONLY | O_CLOEXEC);
H A Dpidfd_setns_test.c136 proc_fd = open("/proc/self/ns", O_DIRECTORY | O_CLOEXEC);
/linux-master/fs/
H A Dopen.c1188 #define O_PATH_FLAGS (O_DIRECTORY | O_NOFOLLOW | O_PATH | O_CLOEXEC)
1249 * Block bugs where O_DIRECTORY | O_CREAT created regular files.
1250 * Note, that blocking O_DIRECTORY | O_CREAT here also protects
1251 * O_TMPFILE below which requires O_DIRECTORY being raised.
1253 if ((flags & (O_DIRECTORY | O_CREAT)) == (O_DIRECTORY | O_CREAT))
1260 * to use O_TMPFILE on old kernels we enforce that O_DIRECTORY
1263 if (!(flags & O_DIRECTORY))
1307 if (flags & O_DIRECTORY)
H A Dnamei.c3356 open_flag |= O_DIRECTORY;
/linux-master/tools/testing/selftests/capabilities/
H A Dtest_execve.c212 int ourpath_fd = open(our_path, O_RDONLY | O_DIRECTORY);
/linux-master/tools/testing/selftests/proc/
H A Dproc-pid-vm.c309 if (open("/", O_RDONLY|O_DIRECTORY|O_PATH) != 0) {
/linux-master/tools/testing/selftests/cgroup/
H A Dcgroup_util.c411 return open(dir, O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW | O_PATH);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dprofiler.inc.h19 #define O_DIRECTORY 00200000 macro
21 #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
/linux-master/tools/perf/util/
H A Dpmu.c239 fd = perf_pmu__pathname_fd(dirfd, name, "format", O_DIRECTORY);
612 dir_fd = open(path, O_DIRECTORY);
2043 return open(path, O_DIRECTORY);
/linux-master/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c711 dfd = open("/mnt/A/AA/B", O_DIRECTORY | O_CLOEXEC);
987 fd = open("/mnt/A", O_DIRECTORY | O_CLOEXEC);
/linux-master/fs/9p/
H A Dvfs_inode_dotl.c132 { O_DIRECTORY, P9_DOTL_DIRECTORY },
/linux-master/tools/testing/selftests/landlock/
H A Dnet_test.c1551 path_beneath.parent_fd = open("/dev", O_PATH | O_DIRECTORY | O_CLOEXEC);
/linux-master/tools/testing/selftests/bpf/
H A Dtest_sockmap.c2012 cg_fd = open(optarg, O_DIRECTORY, O_RDONLY);
/linux-master/fs/nfsd/
H A Dnfs4recover.c544 nn->rec_file = filp_open(user_recovery_dirname, O_RDONLY | O_DIRECTORY, 0);
/linux-master/tools/testing/selftests/nolibc/
H A Dnolibc-test.c676 ret = fd = open(dir, O_RDONLY | O_DIRECTORY, 0);
/linux-master/fs/ceph/
H A Dfile.c47 ceph_sys2wire(O_DIRECTORY);
378 flags = O_DIRECTORY; /* mds likes to know */
/linux-master/fs/nfs/
H A Ddir.c2069 if ((open_flags & O_DIRECTORY)) {
2072 * Hashed negative dentry with O_DIRECTORY: dentry was
/linux-master/fs/smb/client/
H A Dfile.c252 if (flags & O_DIRECTORY)
382 *? by this client. Flags O_APPEND, O_DIRECT, O_DIRECTORY,
/linux-master/tools/lib/bpf/
H A Dlibbpf.c4854 bpffs_fd = open(bpffs_path, O_DIRECTORY, O_RDWR);

Completed in 252 milliseconds

12