Searched refs:O_RDONLY (Results 1 - 25 of 112) sorted by relevance

12345

/fuchsia/zircon/system/utest/dump1/
H A Ddump1.c13 fd = open(argv[1], O_RDONLY);
/fuchsia/zircon/third_party/ulib/musl/src/stdio/
H A D__fmodeflags.c9 flags = O_RDONLY;
H A D__fopen_rb_ca.c8 f->fd = open(filename, O_RDONLY | O_CLOEXEC);
/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));
43 fbl::unique_fd block_fd(open(fixture->block_device_path().c_str(), O_RDONLY));
48 fbl::unique_fd fs_fd(open(fixture->partition_path().c_str(), O_RDONLY));
H A Dfixture_test.cpp23 fbl::unique_fd fd(open(block_device_path.c_str(), O_RDONLY));
174 fbl::unique_fd ramdisk_fd(open(fixture.block_device_path().c_str(), O_RDONLY));
186 fbl::unique_fd blk_fd(open(fixture.GetFsBlockDevice().c_str(), O_RDONLY));
205 fbl::unique_fd blk_fd(open(fixture.GetFsBlockDevice().c_str(), O_RDONLY));
210 fbl::unique_fd fvm_blk_fd(open(fixture.block_device_path().c_str(), O_RDONLY));
253 fbl::unique_fd blk_fd(open(fixture.block_device_path().c_str(), O_RDONLY));
259 blk_fd.reset(open(fixture.block_device_path().c_str(), O_RDONLY));
265 blk_fd.reset(open(fixture.block_device_path().c_str(), O_RDONLY));
301 fbl::unique_fd blk_fd(open(fixture.block_device_path().c_str(), O_RDONLY));
307 blk_fd.reset(open(fixture.block_device_path().c_str(), O_RDONLY));
[all...]
/fuchsia/zircon/system/ulib/launchpad/
H A Dvmo.c14 int fd = open(filename, O_RDONLY);
/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-basic.c38 fd1 = open("::alpha/bravo/charlie/delta/echo/foxtrot", O_RDONLY | O_PIPELINE, 0644);
45 fd1 = open("::alpha/banana", O_RDONLY | O_PIPELINE, 0644);
56 fd1 = open("::emptydir", O_RDONLY, 0644);
H A Dtest-sync.c32 fd = open("::dirname", O_RDONLY | O_DIRECTORY, 0644);
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));
263 fbl::unique_fd mnt_fd(open(kMountPath, O_RDONLY));
316 mnt_fd.reset(open(kMountPath, O_RDONLY));
330 fbl::unique_fd dir_fd(openat(mnt_fd.get(), dir_path, O_RDONLY));
381 mnt_fd.reset(open(kMountPath, O_RDONLY));
/fuchsia/zircon/third_party/ulib/musl/src/time/
H A D__map_file.c11 int fd = open(pathname, O_RDONLY | O_CLOEXEC | O_NONBLOCK);
/fuchsia/zircon/system/utest/devfs/
H A Dfdio-tests.cpp21 fbl::unique_fd fd(open("/dev/zero", O_RDONLY));
37 fbl::unique_fd fd(open("/dev/zero", 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);
33 int fd = openat(vdso_dir_fd, d->d_name, O_RDONLY);
/fuchsia/zircon/system/uapp/audio-codec/
H A Daudio-codec.c12 int fd = open(dev, O_RDONLY);
/fuchsia/zircon/system/uapp/lsdev/
H A Dlsdev.c21 int fd = open(argv[1], O_RDONLY);
/fuchsia/zircon/system/uapp/watch/
H A Dwatch.c34 if ((fd = open(argv[1], O_DIRECTORY | O_RDONLY)) < 0) {
/fuchsia/zircon/system/ulib/driver-info/
H A Ddriver-info-app.c31 if ((fd = open(argv[1], O_RDONLY)) >= 0) {
/fuchsia/zircon/system/utest/fs-host/
H A Dtest-basic.cpp27 fd1 = emu_open("::emptydir", O_RDONLY, 0644);
H A Dutil.cpp50 fbl::unique_fd disk(open(MOUNT_PATH, O_RDONLY));
/fuchsia/zircon/third_party/ulib/backtrace/
H A Dposix.c67 descriptor = open (filename, (int) (O_RDONLY | O_BINARY | O_CLOEXEC));
/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_DIRECTOR
[all...]
/fuchsia/zircon/system/uapp/backlight/
H A Dmain.c23 int fd = open("/dev/class/backlight/000", O_RDONLY);
/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));
/fuchsia/zircon/system/utest/vdso-variant/
H A Dvdso-variant.c16 int fd = open(VDSO_FILE, O_RDONLY);
/fuchsia/zircon/third_party/lib/acpica/source/os_specific/service_layers/
H A Dosunixmap.c117 fd = open (SYSTEM_MEMORY, O_RDONLY | O_BINARY);

Completed in 125 milliseconds

12345