Home
last modified time | relevance | path

Searched refs:O_PATH (Results 1 – 25 of 27) sorted by relevance

12

/src/tests/sys/file/
H A Dpath_test.c116 pathfd = open(path, O_PATH); in ATF_TC_BODY()
145 pathfd = open(path, O_PATH); in ATF_TC_BODY()
179 if (open(path, O_PATH) >= 0) in ATF_TC_BODY()
183 if (open("/usr/bin/true", O_PATH | O_EXEC) >= 0) in ATF_TC_BODY()
195 truefd = open("/usr/bin/true", O_PATH | O_EXEC); in ATF_TC_BODY()
224 pathdfd = open(".", O_PATH); in ATF_TC_BODY()
226 pathfd = open(path, O_PATH); in ATF_TC_BODY()
303 pathfd = open(path, O_PATH); in ATF_TC_BODY()
337 pathfd = open(path, O_PATH | O_DIRECTORY); in ATF_TC_BODY()
378 pathfd = open(path, O_PATH | O_DIRECTORY); in ATF_TC_BODY()
[all …]
/src/sys/sys/
H A Dfcntl.h135 #define O_PATH 0x00400000 /* fd is only a path */ macro
178 (((fflags) & (O_EXEC | O_PATH)) != 0 ? (fflags) : (fflags) - 1)
182 O_DIRECT|FEXEC|O_PATH)
/src/contrib/nvi/common/
H A Doptions.h100 #ifdef O_PATH
101 #undef O_PATH /* bits/fcntl-linux.h may have defined O_PATH. */
H A Doptions_def.h45 #define O_PATH 44 macro
H A Doptions.c367 OI(O_PATH, L("path=%s"), ""); in opts_init()
H A Dexf.c480 for (found = 0, p = t = O_STR(sp, O_PATH);; ++p) in file_spath()
/src/usr.bin/vi/
H A Doptions_def.h45 #define O_PATH 44 macro
/src/usr.bin/runat/
H A Drunat.c43 flags = O_RDONLY | O_CLOEXEC | O_PATH; in main()
/src/tools/test/stress2/misc/
H A Dnullfs29.sh46 new_dir = openat(AT_FDCWD, dir, O_RDONLY|O_DIRECTORY|O_CLOEXEC|O_PATH, 0700);
H A Dunionfs15.sh54 new_dir = openat(AT_FDCWD, dir, O_RDONLY|O_DIRECTORY|O_CLOEXEC|O_PATH, 0700);
/src/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dstatx.c220 int fd = open(argv[2], O_PATH); in main()
/src/usr.sbin/bhyveload/
H A Dbhyveload.c753 hostbase_fd = open(base, O_DIRECTORY | O_PATH); in hostbase_open()
880 bootfd = open("/boot", O_DIRECTORY | O_PATH); in main()
/src/sys/contrib/openzfs/etc/systemd/system-generators/
H A Dzfs-mount-generator.c713 O_PATH | O_DIRECTORY | O_CLOEXEC); in line_worker()
807 destdir_fd = open(destdir, O_PATH | O_DIRECTORY | O_CLOEXEC); in main()
/src/contrib/xz/src/xz/
H A Dfile_io.c79 #if defined(O_SEARCH) && defined(O_PATH) && O_SEARCH == O_PATH
/src/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_file_os.c62 KASSERT((flags & (O_EXEC | O_PATH)) == 0, in zfs_file_open()
/src/contrib/tzcode/
H A Dlocaltime.c318 #ifndef O_PATH
319 # define O_PATH 0 macro
980 ((O_SEARCH ? O_SEARCH : O_PATH ? O_PATH : O_RDONLY) in tzloadbody()
/src/usr.bin/calendar/
H A Dio.c126 cwdfd = open(".", O_DIRECTORY | O_PATH); in cal_fopen()
/src/contrib/libarchive/libarchive/
H A Darchive_read_disk_posix.c2105 #if defined(O_PATH) in tree_reopen()
2107 const int o_flag = O_PATH; in tree_reopen()
2137 #if defined(O_PATH) || defined(O_SEARCH) || \ in tree_reopen()
H A Darchive_write_disk_posix.c447 #if defined(O_PATH) in la_opendirat()
448 | O_PATH in la_opendirat()
/src/sys/kern/
H A Dvfs_syscalls.c1095 if (flags & O_PATH) in flags_to_rights()
1177 if ((flags & O_PATH) != 0) { in openflags()
1206 KASSERT(vp->v_type != VFIFO || (flags & O_PATH) != 0, in finit_open()
1208 if ((flags & O_PATH) != 0) { in finit_open()
1272 MPASS((flags & O_PATH) == 0); in openatfp()
H A Dvfs_vnops.c441 KASSERT((fmode & O_PATH) == 0 || (fmode & O_ACCMODE) == 0, in vn_open_vnode()
445 if ((fmode & O_PATH) == 0 || (fmode & FEXEC) != 0) in vn_open_vnode()
452 if ((fmode & O_PATH) == 0) { in vn_open_vnode()
485 if ((fmode & O_PATH) != 0) { in vn_open_vnode()
/src/contrib/libarchive/libarchive/test/
H A Dtest_read_disk_directory_traversals.c1610 #if defined(O_PATH) || defined(O_SEARCH) || \ in test_parent()
1790 #if defined(O_PATH) || defined(O_SEARCH) || \ in test_parent()
/src/tests/sys/kern/
H A Dinotify_test.c810 fd = open(path, O_PATH); in ATF_TC_BODY()
/src/tests/sys/capsicum/
H A Dcapability-fd.cc943 DirOperationsTest(O_PATH); in FORK_TEST()
/src/sys/compat/linux/
H A Dlinux_file.c152 bsd_flags |= O_PATH; in linux_common_openflags()

12