/fuchsia/zircon/system/utest/blobfs/ |
H A D | blobfs.cpp | 237 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 D | blobfs-test.h | 57 return open(ramdisk_path_, O_RDWR);
|
/fuchsia/zircon/system/utest/fs/ |
H A D | test-overflow.c | 51 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 D | test-fcntl.cpp | 21 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 D | test-resize.cpp | 44 int fd = open(fname, O_CREAT | O_RDWR | O_EXCL); 88 int fd = open(fname, O_CREAT | O_RDWR | O_EXCL);
|
H A D | test-sparse.cpp | 23 int fd = open("::my_file", O_RDWR | O_CREAT, 0644); 41 fd = open("::my_file", O_RDWR, 0644);
|
H A D | test-rw.cpp | 30 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 D | test-clone.cpp | 23 int fd = open("::file", O_RDWR | O_CREAT, 0644);
|
H A D | test-persist.cpp | 51 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 D | test-realpath.cpp | 49 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 D | path.cpp | 229 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 D | redir.c | 177 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 D | main.cpp | 65 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 D | namespace-test.c | 43 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 D | chromeos-disk-setup.c | 25 int gpt_fd = open(dev_path, O_RDWR); 27 fprintf(stderr, "Failed to open block device.\n");
|
/fuchsia/zircon/system/uapp/lz4/ |
H A D | main.c | 33 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 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));
|
/fuchsia/zircon/system/utest/msd/ |
H A D | msd.c | 65 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 D | vdso-variant-helper.c | 19 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 D | vdso-variant.c | 16 int fd = open(VDSO_FILE, O_RDONLY);
|
/fuchsia/zircon/third_party/lib/acpica/source/os_specific/service_layers/ |
H A D | osunixmap.c | 117 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 D | prof_accum.c | 18 fd = open("/dev/null", O_WRONLY); 19 assert_d_ne(fd, -1, "Unexpected open() failure");
|
H A D | prof_gdump.c | 16 fd = open("/dev/null", O_WRONLY); 17 assert_d_ne(fd, -1, "Unexpected open() failure");
|
/fuchsia/zircon/system/uapp/namespace/ |
H A D | namespace.c | 26 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 D | main.c | 38 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);
|