/fuchsia/zircon/system/utest/memfs/ |
H A D | memfs-tests.cpp | 62 fd = openat(dirfd(d), filename, O_CREAT | O_RDWR); 113 fbl::unique_fd fd = fbl::unique_fd(openat(dirfd(d), filename, O_CREAT | O_RDWR)); 132 int fd_another = openat(dirfd(d), filename_another, O_CREAT | O_RDWR); 157 fd = fbl::unique_fd(openat(dirfd(d), filename, O_CREAT | O_RDWR)); 186 fd = openat(dirfd(d), filename, O_CREAT | O_RDWR); 244 int fd = openat(dirfd(d), "foo", O_CREAT | O_RDWR); 250 if ((fd = openat(dirfd(d), "foo", O_RDWR)) < 0) { 269 ASSERT_LT(openat(dirfd(d), "foo", O_CREAT | O_RDWR), 0); local
|
/fuchsia/zircon/system/utest/fs/ |
H A D | test-maxfile.cpp | 46 int fd = open("::bigfile", O_CREAT | O_RDWR, 0644); 106 fd = open("::bigfile", O_RDWR, 0644); 147 int fda = open("::bigfile-A", O_CREAT | O_RDWR, 0644); 148 int fdb = open("::bigfile-B", O_CREAT | O_RDWR, 0644); 202 fda = open("::bigfile-A", O_RDWR, 0644); 203 fdb = open("::bigfile-B", O_RDWR, 0644);
|
H A D | test-mmap.cpp | 35 int fd = open(kFilename, O_RDWR | O_CREAT | O_EXCL); 59 int fd = open(kFilename, O_RDWR | O_CREAT | O_EXCL); 95 int fd = open(kFilename, O_RDWR | O_CREAT | O_EXCL); 147 int fd = open(kFilename, O_RDWR | O_CREAT | O_EXCL); 182 int fd = open(kFilename, O_RDWR | O_CREAT | O_EXCL); 193 int fd2 = open(kFilename, O_RDWR); 242 int fd = open(kFilename, O_RDWR | O_CREAT | O_EXCL); 303 fd = open("::myfile", O_RDWR | O_CREAT | O_EXCL); 376 fbl::unique_fd fd(open("::mmap_truncate", O_CREAT | O_RDWR)); 418 fbl::unique_fd fd(open("::mmap_truncate_extend", O_CREAT | O_RDWR)); [all...] |
H A D | test-truncate.cpp | 30 int fd = open(filename, O_RDWR, 0644); 55 int fd = open(filename, O_RDWR | O_CREAT, 0644); 61 int fd2 = open(filename, O_RDWR | O_TRUNC, 0644); 129 int fd = open(filename, O_RDWR, 0644); 137 fd = open(filename, O_RDWR, 0644); 147 fd = open(filename, O_RDWR, 0644); 203 int fd = open(filename, O_RDWR | O_CREAT, 0644); 269 int fd = open("::truncate-sparse", O_CREAT | O_RDWR); 292 int fd = open("::truncate_errno", O_RDWR | O_CREAT | O_EXCL);
|
H A D | test-append.cpp | 32 int fd = open("::alpha", O_RDWR | O_CREAT, 0644); 55 fd = open("::alpha", O_RDWR | O_CREAT | O_APPEND, 0644); 112 ASSERT_EQ(fcntl(fd.get(), F_GETFL), O_APPEND | O_RDWR); 118 ASSERT_EQ(fcntl(fd.get(), F_GETFL), O_RDWR); 126 fbl::unique_fd fd(open("::append_clone", O_RDWR | O_CREAT | O_APPEND));
|
H A D | test-rename.c | 35 int fd = open("::bravo", O_RDWR | O_CREAT | O_EXCL, 0644); 48 fd = open("::alpha/charlie", O_RDWR | O_CREAT | O_EXCL, 0644); 60 fd = open("::alpha/charlie", O_RDWR | O_CREAT | O_EXCL, 0644); 99 int fd = open("::dir_before_move/file", O_RDWR | O_CREAT, 0644); 234 int fd = openat(barfd, "filename", O_CREAT | O_RDWR | O_EXCL);
|
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-dot-dot.c | 81 ASSERT_LT(openat(foo_fd, "..", O_RDWR | O_CREAT), 0, ""); 82 ASSERT_LT(openat(foo_fd, ".", O_RDWR | O_CREAT), 0, "");
|
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-watcher.cpp | 105 int fd = open("::dir/foo", O_RDWR | O_CREAT); 145 int fd = open("::dir/foo", O_RDWR | O_CREAT); 148 fd = open("::dir/bar", O_RDWR | O_CREAT); 174 fd = open("::dir/baz", O_RDWR | O_CREAT); 239 int fd = openat(dirfd(dir), "foo", O_CREAT | O_RDWR | O_EXCL);
|
/fuchsia/zircon/system/utest/fs-management/ |
H A D | fs-management.cpp | 72 int fd = open(ramdisk_path, O_RDWR); 104 int fd = open(ramdisk_path, O_RDWR); 127 int fd = open(ramdisk_path, O_RDWR); 156 int fd = open(ramdisk_path, O_RDWR); 172 fd = open(ramdisk_path, O_RDWR); 176 mountfd = open(mount_path, O_CREAT | O_RDWR); 187 fd = open(ramdisk_path, O_RDWR); 199 fd = open(ramdisk_path, O_RDWR); 206 fd = open(ramdisk_path, O_RDWR); 265 int ramdiskfd = open(ramdisk_path, O_RDWR); [all...] |
/fuchsia/zircon/system/utest/fs-host/ |
H A D | test-truncate.cpp | 18 int fd = emu_open(filename, O_RDWR, 0644); 43 int fd = emu_open(filename, O_RDWR | O_CREAT, 0644); 49 int fd2 = emu_open(filename, O_RDWR | O_TRUNC, 0644); 87 int fd = emu_open(filename, O_RDWR, 0644); 95 fd = emu_open(filename, O_RDWR, 0644); 149 int fd = emu_open(filename, O_RDWR | O_CREAT, 0644);
|
H A D | test-sparse.cpp | 20 int fd = emu_open(filename, O_RDWR | O_CREAT, 0644); 37 fd = emu_open(filename, O_RDWR, 0644);
|
H A D | util.cpp | 15 int r = open(MOUNT_PATH, O_RDWR | O_CREAT | O_EXCL, 0755);
|
/fuchsia/zircon/system/ulib/fs-management/ |
H A D | ramdisk.cpp | 102 int fd = open(RAMCTL_PATH, O_RDWR); 179 fbl::unique_fd fd(open(ramdisk_path, O_RDWR)); 194 fbl::unique_fd fd(open(ramdisk_path, O_RDWR)); 210 fbl::unique_fd fd(open(ramdisk_path, O_RDWR)); 223 fbl::unique_fd ramdisk(open(ramdisk_path, O_RDWR));
|
/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/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));
|
/fuchsia/zircon/system/uapp/backlight/ |
H A D | main.c | 59 int fd = open("/dev/class/backlight/000", O_RDWR);
|
/fuchsia/zircon/system/uapp/chromeos-disk-setup/ |
H A D | chromeos-disk-setup.c | 25 int gpt_fd = open(dev_path, O_RDWR);
|
/fuchsia/zircon/system/utest/blobfs/ |
H A D | blobfs-test.h | 57 return open(ramdisk_path_, O_RDWR);
|
/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);
|
/fuchsia/zircon/system/utest/vdso-variant/helper/ |
H A D | vdso-variant-helper.c | 38 EXPECT_EQ(openat(vdso_dir_fd, d->d_name, O_RDWR), -1,
|