/fuchsia/zircon/system/utest/fs/ |
H A D | test-dot-dot.c | 68 int foo_fd = open("::foo", O_RDONLY | O_DIRECTORY); 72 ASSERT_LT(openat(foo_fd, "..", O_RDONLY | O_DIRECTORY), 0, ""); 75 ASSERT_LT(openat(foo_fd, "bar/../..", O_RDONLY | O_DIRECTORY), 0, ""); 78 ASSERT_LT(openat(foo_fd, "../../../../../bar", O_RDONLY | O_DIRECTORY), 0, "");
|
H A D | test-sync.c | 32 fd = open("::dirname", O_RDONLY | O_DIRECTORY, 0644);
|
H A D | test-access.cpp | 203 // O_PATH doesn't ignore O_DIRECTORY 204 ASSERT_LT(open(filename, O_PATH | O_DIRECTORY), 0); 207 fd = open(dirname, O_PATH | O_DIRECTORY); 252 ASSERT_GE((fd = open(dirname, O_PATH | O_DIRECTORY)), 0); 260 ASSERT_GE((fd = open(dirname, O_PATH | O_DIRECTORY)), 0);
|
H A D | test-minfs.cpp | 32 fbl::unique_fd fd(open(kMountPath, O_RDONLY | O_DIRECTORY)); 119 fbl::unique_fd fd(open(kMountPath, O_RDONLY | O_DIRECTORY)); 130 fbl::unique_fd fd(open(kMountPath, O_RDONLY | O_DIRECTORY)); 143 fbl::unique_fd fd(open(kMountPath, O_RDONLY | O_DIRECTORY));
|
H A D | test-rename.c | 195 int foofd = open("::foo", O_RDONLY | O_DIRECTORY, 0644); 197 int barfd = open("::bar", O_RDONLY | O_DIRECTORY, 0644);
|
H A D | test-directory.cpp | 178 int dirfd = open("::coalesce_lr", O_RDONLY | O_DIRECTORY); 203 dirfd = open("::coalesce_lr", O_RDONLY | O_DIRECTORY);
|
/fuchsia/zircon/system/uapp/watch/ |
H A D | watch.c | 34 if ((fd = open(argv[1], O_DIRECTORY | O_RDONLY)) < 0) {
|
/fuchsia/zircon/system/utest/memfs/ |
H A D | fidl-tests.cpp | 34 fbl::unique_fd fd(open("/fidltmp", O_DIRECTORY | O_RDONLY)); 69 fbl::unique_fd fd(open(path, O_RDONLY | O_DIRECTORY)); 95 fbl::unique_fd fd(open("/fidltmp-basic", O_DIRECTORY | O_RDONLY)); 117 fbl::unique_fd fd(open("/fidltmp-limited", O_DIRECTORY | O_RDONLY));
|
H A D | memfs-tests.cpp | 178 int fd = open("/mytmp", O_DIRECTORY | O_RDONLY);
|
/fuchsia/zircon/system/utest/vdso-variant/helper/ |
H A D | vdso-variant-helper.c | 19 int vdso_dir_fd = open("/boot/kernel/vdso", O_RDONLY | O_DIRECTORY);
|
/fuchsia/zircon/system/utest/fs-management/ |
H A D | fs-management.cpp | 46 fbl::unique_fd fd(open(path, O_RDONLY | O_DIRECTORY)); 130 int mountfd = open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN); 159 int mountfd = open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN); 191 mountfd = open(mount_path, O_RDONLY | O_DIRECTORY); 201 mountfd = open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN); 219 fbl::unique_fd badfd(open(mount_path, O_RDONLY | O_DIRECTORY)); 229 badfd.reset(open(mount_path, O_RDONLY | O_DIRECTORY)); 263 int mountfd = open(parent_path, O_RDONLY | O_DIRECTORY | O_ADMIN); 300 fbl::unique_fd weak_root_fd(open(mount_path, O_RDONLY | O_DIRECTORY)); 311 fbl::unique_fd weak_subdir_fd(openat(weak_root_fd.get(), "subdir", O_RDONLY | O_DIRECTORY)); [all...] |
/fuchsia/zircon/system/utest/fs-test-utils/ |
H A D | unittest_test.cpp | 40 fbl::unique_fd fs_path_fd(open(fixture->fs_path().c_str(), O_RDONLY | O_DIRECTORY));
|
/fuchsia/zircon/system/utest/fzl/ |
H A D | fdio.cpp | 24 fbl::unique_fd dir(open("/my-tmp", O_DIRECTORY | O_RDONLY));
|
/fuchsia/zircon/system/utest/namespace/ |
H A D | namespace-test.c | 43 int fd = open(NS[n].remote, O_RDONLY | O_DIRECTORY);
|
/fuchsia/zircon/system/ulib/fs-management/ |
H A D | mount.cpp | 136 unique_fd parent(open(parent_path, O_RDONLY | O_DIRECTORY | O_ADMIN)); 340 unique_fd mount_point(open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN)); 369 unique_fd fd(open(mount_path, O_DIRECTORY | O_NOREMOTE | O_ADMIN));
|
/fuchsia/zircon/system/uapp/namespace/ |
H A D | namespace.c | 66 int fd = open(src, O_RDONLY | O_DIRECTORY);
|
/fuchsia/zircon/third_party/ulib/musl/include/ |
H A D | fcntl.h | 51 #define O_DIRECTORY 0x00080000 macro
|
/fuchsia/zircon/system/ulib/runtests-utils/ |
H A D | fuchsia-run-test.cpp | 220 state->root_dir_fd.reset(open("/", O_RDONLY | O_DIRECTORY)); 356 fbl::unique_fd data_sink_dir_fd{open(output_dir, O_RDONLY | O_DIRECTORY)}; 373 O_RDONLY | O_DIRECTORY)};
|
/fuchsia/zircon/system/core/devmgr/ |
H A D | block-watcher.cpp | 228 int fs_blob_fd = open("/fs/blob", O_RDONLY | O_DIRECTORY); 520 if ((dirfd = open("/dev/class/block", O_DIRECTORY | O_RDONLY)) >= 0) {
|
H A D | fshost.cpp | 153 int dirfd = open("/dev/misc", O_DIRECTORY | O_RDONLY);
|
/fuchsia/zircon/system/core/pwrbtn-monitor/ |
H A D | pwrbtn-monitor.cpp | 179 int fd = open(INPUT_PATH, O_DIRECTORY | O_RDONLY);
|
/fuchsia/zircon/system/uapp/waitfor/ |
H A D | waitfor.c | 246 if ((dirfd = open(path, O_DIRECTORY | O_RDONLY)) < 0) {
|
/fuchsia/zircon/system/utest/pty/ |
H A D | pty-test.c | 211 int root_dir = open("/", O_DIRECTORY | O_RDONLY);
|
/fuchsia/zircon/system/ulib/fdio/ |
H A D | unistd.c | 173 static_assert(O_DIRECTORY == ZX_FS_FLAG_DIRECTORY, "Open Flag mismatch"); 179 O_DIRECTORY | O_APPEND | O_NOREMOTE) 383 flags |= (is_dir ? O_DIRECTORY : 0); 504 // if all trailing slashes are replaced with "O_DIRECTORY". 515 fdio_flags_to_zxio(O_RDONLY | O_DIRECTORY), 0, io); 670 __fdio_open(&fdio_cwd_handle, fdio_cwd_path, O_RDONLY | O_DIRECTORY, 0); 1436 if (flags & O_DIRECTORY) { 1437 // The behavior of open with O_CREAT | O_DIRECTORY is underspecified 1787 if ((r = __fdio_open(&io, path, O_RDONLY | O_DIRECTORY, 0)) < 0) { 1822 int fd = open(name, O_RDONLY | O_DIRECTORY); [all...] |
/fuchsia/zircon/system/ulib/minfs/ |
H A D | host.cpp | 191 #ifdef O_DIRECTORY 192 if (flags & O_DIRECTORY) {
|