Searched refs:O_DIRECTORY (Results 1 - 25 of 35) sorted by relevance

12

/fuchsia/zircon/system/utest/fs/
H A Dtest-dot-dot.c68 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 Dtest-sync.c32 fd = open("::dirname", O_RDONLY | O_DIRECTORY, 0644);
H A Dtest-access.cpp203 // 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 Dtest-minfs.cpp32 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 Dtest-rename.c195 int foofd = open("::foo", O_RDONLY | O_DIRECTORY, 0644);
197 int barfd = open("::bar", O_RDONLY | O_DIRECTORY, 0644);
H A Dtest-directory.cpp178 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 Dwatch.c34 if ((fd = open(argv[1], O_DIRECTORY | O_RDONLY)) < 0) {
/fuchsia/zircon/system/utest/memfs/
H A Dfidl-tests.cpp34 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 Dmemfs-tests.cpp178 int fd = open("/mytmp", O_DIRECTORY | O_RDONLY);
/fuchsia/zircon/system/utest/vdso-variant/helper/
H A Dvdso-variant-helper.c19 int vdso_dir_fd = open("/boot/kernel/vdso", O_RDONLY | O_DIRECTORY);
/fuchsia/zircon/system/utest/fs-management/
H A Dfs-management.cpp46 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 Dunittest_test.cpp40 fbl::unique_fd fs_path_fd(open(fixture->fs_path().c_str(), O_RDONLY | O_DIRECTORY));
/fuchsia/zircon/system/utest/fzl/
H A Dfdio.cpp24 fbl::unique_fd dir(open("/my-tmp", O_DIRECTORY | O_RDONLY));
/fuchsia/zircon/system/utest/namespace/
H A Dnamespace-test.c43 int fd = open(NS[n].remote, O_RDONLY | O_DIRECTORY);
/fuchsia/zircon/system/ulib/fs-management/
H A Dmount.cpp136 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 Dnamespace.c66 int fd = open(src, O_RDONLY | O_DIRECTORY);
/fuchsia/zircon/third_party/ulib/musl/include/
H A Dfcntl.h51 #define O_DIRECTORY 0x00080000 macro
/fuchsia/zircon/system/ulib/runtests-utils/
H A Dfuchsia-run-test.cpp220 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 Dblock-watcher.cpp228 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 Dfshost.cpp153 int dirfd = open("/dev/misc", O_DIRECTORY | O_RDONLY);
/fuchsia/zircon/system/core/pwrbtn-monitor/
H A Dpwrbtn-monitor.cpp179 int fd = open(INPUT_PATH, O_DIRECTORY | O_RDONLY);
/fuchsia/zircon/system/uapp/waitfor/
H A Dwaitfor.c246 if ((dirfd = open(path, O_DIRECTORY | O_RDONLY)) < 0) {
/fuchsia/zircon/system/utest/pty/
H A Dpty-test.c211 int root_dir = open("/", O_DIRECTORY | O_RDONLY);
/fuchsia/zircon/system/ulib/fdio/
H A Dunistd.c173 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 Dhost.cpp191 #ifdef O_DIRECTORY
192 if (flags & O_DIRECTORY) {

Completed in 204 milliseconds

12