| /freebsd/tests/sys/file/ |
| H A D | path_test.c | 116 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/sys/sys/ |
| H A D | fcntl.h | 135 #define O_PATH 0x00400000 /* fd is only a path */ macro 151 #define O_SYMLINK (O_PATH | O_NOFOLLOW) 185 O_CLOEXEC | O_VERIFY | O_PATH | O_RESOLVE_BENEATH | O_DSYNC | \ 191 (((fflags) & (O_EXEC | O_PATH)) != 0 ? (fflags) : (fflags) - 1) 195 O_DIRECT|FEXEC|O_PATH)
|
| /freebsd/contrib/nvi/common/ |
| H A D | options.h | 100 #ifdef O_PATH 101 #undef O_PATH /* bits/fcntl-linux.h may have defined O_PATH. */
|
| H A D | options_def.h | 45 #define O_PATH 44 macro
|
| H A D | options.c | 367 OI(O_PATH, L("path=%s"), ""); in opts_init()
|
| /freebsd/tools/test/stress2/misc/ |
| H A D | syzkaller99.sh | 66 /*flags=O_PATH*/ 0x400000, /*mode=*/0); 78 /*flags=O_PATH*/ 0x400000, /*mode=*/0);
|
| H A D | nullfs29.sh | 46 new_dir = openat(AT_FDCWD, dir, O_RDONLY|O_DIRECTORY|O_CLOEXEC|O_PATH, 0700);
|
| /freebsd/tests/sys/kern/ |
| H A D | unix_connectat.c | 368 ATF_REQUIRE_MSG((pathfd = open("evnode.sock", O_PATH)) >= 0, in ATF_TC_BODY() 469 ATF_REQUIRE_MSG((pathfd = open(path, O_PATH)) >= 0, in ATF_TC_BODY() 502 ATF_REQUIRE_MSG((pathfd = open("devfd_ind.sock", O_PATH)) >= 0, in ATF_TC_BODY() 509 ATF_REQUIRE_MSG((devfdfd = open(node, O_PATH)) >= 0, in ATF_TC_BODY() 537 ATF_REQUIRE_MSG((pathfd = open("devfd_nodup.sock", O_PATH)) >= 0, in ATF_TC_BODY()
|
| /freebsd/contrib/llvm-project/libc/include/llvm-libc-macros/linux/ |
| H A D | fcntl-macros.h | 15 #define O_PATH 010000000 macro
|
| /freebsd/usr.bin/vi/ |
| H A D | options_def.h | 45 #define O_PATH 44 macro
|
| /freebsd/usr.bin/runat/ |
| H A D | runat.c | 43 flags = O_RDONLY | O_CLOEXEC | O_PATH; in main()
|
| /freebsd/contrib/file/src/ |
| H A D | landlock.c | 77 pb.parent_fd = open(path, O_PATH | O_CLOEXEC); in landlock_allow_path()
|
| /freebsd/tests/sys/fs/fdescfs/ |
| H A D | fdescfs_test.c | 219 check_traverse(O_PATH); in ATF_TC_BODY() 226 const int flags[] = { O_RDONLY, O_PATH }; in ATF_TC_BODY()
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | statx.c | 220 int fd = open(argv[2], O_PATH); in main()
|
| /freebsd/usr.sbin/bhyveload/ |
| H A D | bhyveload.c | 799 hostbase_fd = open(base, O_DIRECTORY | O_PATH); in loader_open() 925 bootfd = open("/boot", O_DIRECTORY | O_PATH); in main()
|
| /freebsd/sys/contrib/openzfs/etc/systemd/system-generators/ |
| H A D | zfs-mount-generator.c | 714 O_PATH | O_DIRECTORY | O_CLOEXEC); in line_worker() 808 destdir_fd = open(destdir, O_PATH | O_DIRECTORY | O_CLOEXEC); in main()
|
| /freebsd/contrib/xz/src/xz/ |
| H A D | file_io.c | 79 #if defined(O_SEARCH) && defined(O_PATH) && O_SEARCH == O_PATH
|
| /freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | zfs_file_os.c | 63 KASSERT((flags & (O_EXEC | O_PATH)) == 0, in zfs_file_open()
|
| /freebsd/contrib/tzcode/ |
| H A D | localtime.c | 320 #ifndef O_PATH 321 # define O_PATH 0 macro 987 ((O_SEARCH ? O_SEARCH : O_PATH ? O_PATH : O_RDONLY) in tzloadbody()
|
| /freebsd/usr.bin/calendar/ |
| H A D | io.c | 126 cwdfd = open(".", O_DIRECTORY | O_PATH); in cal_fopen()
|
| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_read_disk_posix.c | 2110 #if defined(O_PATH) in tree_reopen() 2112 const int o_flag = O_PATH; in tree_reopen() 2142 #if defined(O_PATH) || defined(O_SEARCH) || \ in tree_reopen()
|
| /freebsd/sys/kern/ |
| H A D | vfs_syscalls.c | 1095 if (flags & O_PATH) in flags_to_rights() 1180 if ((flags & O_PATH) != 0) { in openflags() 1209 KASSERT(vp->v_type != VFIFO || (flags & O_PATH) != 0, in finit_open() 1211 if ((flags & O_PATH) != 0) { in finit_open() 1275 MPASS((flags & O_PATH) == 0); in openatfp()
|
| H A D | vfs_vnops.c | 441 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()
|
| /freebsd/contrib/libarchive/libarchive/test/ |
| H A D | test_read_disk_directory_traversals.c | 1610 #if defined(O_PATH) || defined(O_SEARCH) || \ in test_parent() 1790 #if defined(O_PATH) || defined(O_SEARCH) || \ in test_parent()
|
| /freebsd/lib/libusb/ |
| H A D | libusb20_ugen20.c | 100 fd = open("/dev/" USB_DEVICE_DIR, O_DIRECTORY | O_PATH | O_CLOEXEC); in libusb20_be_ctx_alloc()
|