Searched refs:open (Results 51 - 75 of 240) sorted by relevance

12345678910

/fuchsia/zircon/system/utest/blobfs/
H A Dblobfs.cpp237 fbl::unique_fd fd(open(ramdisk_path_, O_RDWR));
238 ASSERT_TRUE(fd, "[FAILED]: Could not open test disk");
250 fbl::unique_fd fvm_fd(open(fvm_path_, O_RDWR));
251 ASSERT_GE(fvm_fd.get(), 0, "[FAILED]: Could not open FVM driver");
345 ASSERT_NONNULL(dir, "Unable to open FVM dir");
414 fbl::unique_fd fd(open(mount_path, O_RDONLY | O_DIRECTORY));
436 fbl::unique_fd fd(open(ramdisk_path_, flags));
437 ASSERT_TRUE(fd.get(), "Could not open ramdisk");
493 // Creates an open blob with the provided Merkle tree + Data, and
496 fbl::unique_fd fd(open(inf
[all...]
H A Dblobfs-test.h57 return open(ramdisk_path_, O_RDWR);
/fuchsia/zircon/system/utest/fs/
H A Dtest-overflow.c51 int fd = open(name_largest, O_RDWR | O_CREAT | O_EXCL, 0644);
71 ASSERT_EQ(open(name_too_large, O_RDWR | O_CREAT | O_EXCL, 0644), -1, "");
117 int fd = open("::file", O_CREAT | O_RDWR | O_EXCL, 0644);
H A Dtest-fcntl.cpp21 int fd = open("::file", O_APPEND | O_RDWR | O_CREAT, 0644);
65 int fd = open("::file", O_APPEND | O_RDWR | O_CREAT, 0644);
H A Dtest-resize.cpp44 int fd = open(fname, O_CREAT | O_RDWR | O_EXCL);
88 int fd = open(fname, O_CREAT | O_RDWR | O_EXCL);
H A Dtest-sparse.cpp23 int fd = open("::my_file", O_RDWR | O_CREAT, 0644);
41 fd = open("::my_file", O_RDWR, 0644);
H A Dtest-rw.cpp30 fbl::unique_fd fd(open(filename, O_RDWR | O_CREAT, 0644));
77 fbl::unique_fd fd(open(filename, O_RDWR | O_CREAT, 0644));
H A Dtest-clone.cpp23 int fd = open("::file", O_RDWR | O_CREAT, 0644);
H A Dtest-persist.cpp51 int fd = open(paths[i], O_RDWR | O_CREAT | O_EXCL, 0644);
123 int fd = open(files[i], O_RDWR | O_CREAT, 0644);
136 int fd = open(files[i], O_RDONLY, 0644);
199 int fd = open("::a/target", O_RDWR | O_CREAT);
H A Dtest-realpath.cpp49 int fd = open(kName, O_RDWR | O_CREAT, 0644);
91 int fd = open(kNameFile, O_RDWR | O_CREAT, 0644);
/fuchsia/zircon/system/utest/fuzz-utils/
H A Dpath.cpp229 fbl::unique_fd fd(open(fixture.path("foo/ba/r").c_str(), O_RDWR));
231 fd.reset(open(fixture.path("foo/ba/s").c_str(), O_RDWR));
235 fd.reset(open(fixture.path("foo/ba/r").c_str(), O_RDWR));
237 fd.reset(open(fixture.path("foo/ba/s").c_str(), O_RDWR));
241 fd.reset(open(fixture.path("foo/ba/r").c_str(), O_RDWR));
243 fd.reset(open(fixture.path("foo/ba/s").c_str(), O_RDWR));
/fuchsia/zircon/third_party/uapp/dash/src/
H A Dredir.c177 if ((f = open(fname, O_RDONLY)) < 0)
182 if ((f = open(fname, O_RDWR|O_CREAT, 0666)) < 0)
190 if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0)
193 if ((f = open(fname, O_WRONLY, 0666)) < 0)
209 if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
214 if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0)
238 sh_error("cannot open %s: %s", fname, errmsg(errno, E_OPEN));
390 * the original file dscriptor is not open.
/fuchsia/zircon/system/dev/nand/broker/test/
H A Dmain.cpp65 device_.reset(open(config_.path, O_RDWR));
71 ram_nand_.reset(open(path_, O_RDWR));
144 printf("Unable to open the nand device\n");
/fuchsia/zircon/system/utest/namespace/
H A Dnamespace-test.c43 int fd = open(NS[n].remote, O_RDONLY | O_DIRECTORY);
76 int fd = open("fake/tmp/newfile", O_CREAT | O_RDWR | O_EXCL);
/fuchsia/zircon/system/uapp/chromeos-disk-setup/
H A Dchromeos-disk-setup.c25 int gpt_fd = open(dev_path, O_RDWR);
27 fprintf(stderr, "Failed to open block device.\n");
/fuchsia/zircon/system/uapp/lz4/
H A Dmain.c33 infd = open(infile, O_RDONLY);
35 fprintf(stderr, "could not open %s: %s\n", infile, strerror(errno));
39 outfd = open(outfile, WR_NEWFILE, PERM_644);
41 fprintf(stderr, "could not open %s: %s\n", outfile, strerror(errno));
129 infd = open(infile, O_RDONLY);
131 fprintf(stderr, "could not open %s: %s\n", infile, strerror(errno));
135 outfd = open(outfile, WR_NEWFILE, PERM_644);
137 fprintf(stderr, "could not open %s: %s\n", outfile, strerror(errno));
/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/msd/
H A Dmsd.c65 fd = open("/dev/class/pci/004/00:14:00/xhci_usb/usb_bus/usb-dev-002/usb_mass_storage", O_RDWR);
67 printf("msd_test: cannot open '%d'\n", fd);
/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);
20 ASSERT_GE(vdso_dir_fd, 0, "open of vdso directory failed");
32 // Test that we can open for read.
37 // Test that we cannot open for write.
/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);
120 fprintf (stderr, "Cannot open %s\n", SYSTEM_MEMORY);
/fuchsia/zircon/third_party/ulib/jemalloc/test/unit/
H A Dprof_accum.c18 fd = open("/dev/null", O_WRONLY);
19 assert_d_ne(fd, -1, "Unexpected open() failure");
H A Dprof_gdump.c16 fd = open("/dev/null", O_WRONLY);
17 assert_d_ne(fd, -1, "Unexpected open() failure");
/fuchsia/zircon/system/uapp/namespace/
H A Dnamespace.c26 int fd = open(path, O_RDONLY);
66 int fd = open(src, O_RDONLY | O_DIRECTORY);
68 fprintf(stderr, "error: cannot open '%s'\n", src);
/fuchsia/zircon/system/utest/driver-tests/
H A Dmain.c38 fd = open(devpath, O_RDWR);
46 printf("driver-tests: failed to open %s\n", devpath);
119 int fd = open(TEST_CONTROL_DEVICE, O_RDWR);
140 printf("driver-tests: failed to open %s\n", DRIVER_TEST_DIR);

Completed in 196 milliseconds

12345678910