Searched refs:O_RDWR (Results 26 - 50 of 129) sorted by relevance

123456

/fuchsia/zircon/system/utest/memfs/
H A Dmemfs-tests.cpp62 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 Dtest-maxfile.cpp46 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 Dtest-mmap.cpp35 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 Dtest-truncate.cpp30 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 Dtest-append.cpp32 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 Dtest-rename.c35 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 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-dot-dot.c81 ASSERT_LT(openat(foo_fd, "..", O_RDWR | O_CREAT), 0, "");
82 ASSERT_LT(openat(foo_fd, ".", O_RDWR | O_CREAT), 0, "");
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-watcher.cpp105 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 Dfs-management.cpp72 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 Dtest-truncate.cpp18 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 Dtest-sparse.cpp20 int fd = emu_open(filename, O_RDWR | O_CREAT, 0644);
37 fd = emu_open(filename, O_RDWR, 0644);
H A Dutil.cpp15 int r = open(MOUNT_PATH, O_RDWR | O_CREAT | O_EXCL, 0755);
/fuchsia/zircon/system/ulib/fs-management/
H A Dramdisk.cpp102 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 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/system/dev/nand/broker/test/
H A Dmain.cpp65 device_.reset(open(config_.path, O_RDWR));
71 ram_nand_.reset(open(path_, O_RDWR));
/fuchsia/zircon/system/uapp/backlight/
H A Dmain.c59 int fd = open("/dev/class/backlight/000", O_RDWR);
/fuchsia/zircon/system/uapp/chromeos-disk-setup/
H A Dchromeos-disk-setup.c25 int gpt_fd = open(dev_path, O_RDWR);
/fuchsia/zircon/system/utest/blobfs/
H A Dblobfs-test.h57 return open(ramdisk_path_, O_RDWR);
/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);
/fuchsia/zircon/system/utest/vdso-variant/helper/
H A Dvdso-variant-helper.c38 EXPECT_EQ(openat(vdso_dir_fd, d->d_name, O_RDWR), -1,

Completed in 73 milliseconds

123456