Home
last modified time | relevance | path

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

/freebsd-13-stable/tests/sys/file/
HDpath_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 …]
/freebsd-13-stable/sys/sys/
HDfcntl.h137 #define O_PATH 0x00400000 /* fd is only a path */ macro
164 (((fflags) & (O_EXEC | O_PATH)) != 0 ? (fflags) : (fflags) - 1)
168 O_DIRECT|FEXEC|O_PATH)
/freebsd-13-stable/contrib/nvi/common/
HDoptions.h100 #ifdef O_PATH
101 #undef O_PATH /* bits/fcntl-linux.h may have defined O_PATH. */
HDoptions.c371 OI(O_PATH, b2); in opts_init()
HDexf.c480 for (found = 0, p = t = O_STR(sp, O_PATH);; ++p) in file_spath()
/freebsd-13-stable/usr.bin/vi/
HDoptions_def.h45 #define O_PATH 44 macro
/freebsd-13-stable/usr.sbin/bhyveload/
HDbhyveload.c750 hostbase_fd = open(base, O_DIRECTORY | O_PATH); in hostbase_open()
877 bootfd = open("/boot", O_DIRECTORY | O_PATH); in main()
/freebsd-13-stable/sys/contrib/openzfs/etc/systemd/system-generators/
HDzfs-mount-generator.c708 O_PATH | O_DIRECTORY | O_CLOEXEC); in line_worker()
802 destdir_fd = open(destdir, O_PATH | O_DIRECTORY | O_CLOEXEC); in main()
/freebsd-13-stable/contrib/libarchive/libarchive/
HDarchive_read_disk_posix.c2198 #if defined(O_PATH) in tree_reopen()
2200 const int o_flag = O_PATH; in tree_reopen()
2230 #if defined(O_PATH) || defined(O_SEARCH) || \ in tree_reopen()
HDarchive_write_disk_posix.c445 #if defined(O_PATH) in la_opendirat()
446 | O_PATH in la_opendirat()
/freebsd-13-stable/contrib/capsicum-test/
HDcapability-fd.cc983 #ifdef O_PATH
986 DirOperationsTest(O_PATH); in FORK_TEST()
/freebsd-13-stable/sys/kern/
HDvfs_syscalls.c1039 if (flags & O_PATH) in flags_to_rights()
1140 if ((flags & O_PATH) != 0) { in openatfp()
1173 MPASS((flags & O_PATH) == 0); in openatfp()
1212 KASSERT(vp->v_type != VFIFO || (flags & O_PATH) != 0, in openatfp()
1214 if ((flags & O_PATH) != 0) { in openatfp()
HDvfs_vnops.c396 if ((fmode & O_PATH) == 0 || (fmode & FEXEC) != 0) in vn_open_vnode()
403 if ((fmode & O_PATH) == 0) { in vn_open_vnode()
436 if ((fmode & O_PATH) != 0) { in vn_open_vnode()
/freebsd-13-stable/contrib/libarchive/libarchive/test/
HDtest_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()
/freebsd-13-stable/sys/contrib/openzfs/lib/libzfs/
HDlibzfs_pool.c4879 #if defined(O_PATH) in zpool_load_compat()
4880 #define ZC_DIR_FLAGS (O_DIRECTORY | O_CLOEXEC | O_PATH) in zpool_load_compat()
/freebsd-13-stable/sys/compat/linux/
HDlinux_file.c158 bsd_flags |= O_PATH; in linux_common_openflags()