Searched refs:O_RDWR (Results 1 - 25 of 129) sorted by relevance

123456

/fuchsia/zircon/system/utest/fs-host/
H A Dtest-basic.cpp14 int fd1 = emu_open("::alpha/bravo/charlie/delta/echo/foxtrot", O_RDWR | O_CREAT, 0644);
16 int fd2 = emu_open("::alpha/bravo/charlie/delta/echo/foxtrot", O_RDWR, 0644);
22 fd1 = emu_open("::file.txt", O_CREAT | O_RDWR, 0644);
H A Dtest-directory.cpp47 int fd = emu_open(path, O_RDWR | O_CREAT | O_EXCL, 0644);
68 int fd = emu_open("::a/file1", O_RDWR | O_CREAT | O_EXCL, 0644);
72 fd = emu_open("::a/file2", O_RDWR | O_CREAT | O_EXCL, 0644);
H A Dtest-maxfile.cpp17 int fd = emu_open("::bigfile", O_CREAT | O_RDWR, 0644);
70 fd = emu_open("::bigfile", O_RDWR, 0644);
/fuchsia/zircon/third_party/ulib/musl/src/misc/
H A Dopenpty.c13 m = open("/dev/ptmx", O_RDWR | O_NOCTTY);
23 if ((s = open(name, O_RDWR | O_NOCTTY)) < 0)
/fuchsia/zircon/third_party/ulib/musl/src/stdio/
H A D__fmodeflags.c7 flags = O_RDWR;
H A Dtmpfile.c19 fd = open(s, O_RDWR | O_CREAT | O_EXCL, 0600);
/fuchsia/zircon/system/utest/fs/
H A Dtest-fcntl.cpp21 int fd = open("::file", O_APPEND | O_RDWR | O_CREAT, 0644);
38 ASSERT_EQ(flags & O_ACCMODE, O_RDWR, "Access mode flags did not match");
47 ASSERT_EQ(flags & O_ACCMODE, O_RDWR, "Access mode flags did not match");
65 int fd = open("::file", O_APPEND | O_RDWR | O_CREAT, 0644);
80 ASSERT_EQ(flags & O_ACCMODE, O_RDWR, "Access mode flags did not match");
H A Dtest-unlink.cpp26 int fd = open(paths[i], O_RDWR | O_CREAT | O_EXCL, 0644);
64 int fd = open(path, O_RDWR | O_CREAT | O_EXCL, 0644);
76 ASSERT_EQ(open(path, O_RDWR, 0644), -1);
85 int fd1 = open(path, O_RDWR | O_CREAT | O_EXCL, 0644);
87 int fd2 = open(path, O_RDWR, 0644);
100 ASSERT_EQ(open(path, O_RDWR, 0644), -1);
110 int fd = open(filename, O_RDWR | O_CREAT | O_EXCL, 0644);
H A Dtest-basic.c27 int fd1 = open("::alpha/bravo/charlie/delta/echo/foxtrot", O_RDWR | O_CREAT, 0644);
29 int fd2 = open("::alpha/bravo/charlie/delta/echo/foxtrot", O_RDWR, 0644);
50 fd1 = open("::file.txt", O_CREAT | O_RDWR, 0644);
77 int fd = open("::foobar", O_CREAT | O_RDWR);
H A Dtest-access.cpp29 int fd = open(filename, O_RDWR | O_CREAT, 0644);
65 int fd = open(filename, O_RDWR | O_CREAT, 0644);
97 int fd = open(filename, O_RDWR | O_CREAT, 0644);
117 int fd = open(filename, O_RDWR, 0644);
143 fd = open(filename, O_CREAT | O_RDWR | O_PATH);
149 fd = open(filename, O_CREAT | O_RDWR);
155 fd = open(filename, O_RDWR | O_PATH);
174 fd = open(filename, O_RDWR | O_CREAT | O_EXCL | O_TRUNC | O_PATH);
H A Dtest-directory.cpp38 int fd = open(path, O_RDWR | O_CREAT | O_EXCL, 0644);
45 ASSERT_EQ(open(path, O_RDWR | O_CREAT | O_EXCL, 0644), -1);
66 int fd = open(path, O_RDWR | O_CREAT | O_EXCL, 0644);
95 int fd = open(path, O_RDWR | O_CREAT | O_EXCL, 0644);
127 int fd = open(files[i], O_RDWR | O_CREAT | O_EXCL, 0644);
240 int fd = open("::a", O_RDWR | O_CREAT | O_EXCL, 0644);
246 fd = open("::a", O_RDWR | O_CREAT | O_EXCL, 0644);
249 ASSERT_EQ(open("::a/", O_RDWR, 0644), -1);
276 int fd = open("::a/file1", O_RDWR | O_CREAT | O_EXCL, 0644);
280 fd = open("::a/file2", O_RDWR | O_CREA
[all...]
H A Dtest-minfs.cpp104 int fd = open(path, O_CREAT | O_RDWR);
168 fbl::unique_fd fd(open(path, O_CREAT | O_RDWR));
174 fd.reset(open(path, O_CREAT | O_RDWR | O_EXCL));
238 fbl::unique_fd fd(openat(dir_fd, path, O_CREAT | O_RDWR));
266 fbl::unique_fd big_fd(openat(mnt_fd.get(), big_path, O_CREAT | O_RDWR));
269 fbl::unique_fd med_fd(openat(mnt_fd.get(), med_path, O_CREAT | O_RDWR));
272 fbl::unique_fd sml_fd(openat(mnt_fd.get(), sml_path, O_CREAT | O_RDWR));
318 big_fd.reset(openat(mnt_fd.get(), big_path, O_RDWR));
320 sml_fd.reset(openat(mnt_fd.get(), sml_path, O_RDWR));
369 fbl::unique_fd tmp_fd(openat(dir_fd.get(), "new_file", O_CREAT | O_RDWR));
[all...]
H A Dtest-sync.c21 int fd = open("::alpha", O_RDWR | O_CREAT | O_EXCL, 0644);
H A Dtest-link.c41 int fd = open(oldpath, O_RDWR | O_CREAT | O_EXCL, 0644);
93 int fd = open("::dira/file", O_RDWR | O_CREAT | O_EXCL, 0644);
194 int fd = open("::dir/dir_child", O_RDWR | O_CREAT | O_EXCL, 0644);
198 int fd2 = open("::dir_parent_alt/dir_semi_parent/dir_child_a", O_RDWR | O_CREAT | O_EXCL, 0644);
240 int fd = open(oldpath, O_RDWR | O_CREAT | O_EXCL, 0644);
252 int fd2 = open(newpath, O_RDWR, 0644);
263 fd = open(newpath, O_RDWR, 0644);
296 int fd = open(oldpath, O_RDWR | O_CREAT | O_EXCL, 0644);
/fuchsia/zircon/system/utest/sysinfo/
H A Dmain.cpp20 int fd = open(SYSINFO_PATH, O_RDWR);
46 int fd = open(SYSINFO_PATH, O_RDWR);
66 int fd = open(SYSINFO_PATH, O_RDWR);
/fuchsia/zircon/system/uapp/psutils/
H A Dresources.c17 int fd = open("/dev/misc/sysinfo", O_RDWR);
/fuchsia/zircon/system/uapp/suspendtest/
H A Dsuspendtest.c19 int fd = open(path, O_RDWR);
/fuchsia/zircon/system/uapp/traceme/
H A Dtraceme.c18 if ((fd = open("/dev/misc/ktrace", O_RDWR)) < 0) {
/fuchsia/zircon/system/dev/nand/ram-nand/test/
H A Dram-nand-ctl.cpp34 device_.reset(open(path_, O_RDWR));
65 fbl::unique_fd found(open(device.path(), O_RDWR));
/fuchsia/zircon/system/ulib/fs-management/
H A Dram-nand.cpp23 fbl::unique_fd control(open(base_path, O_RDWR));
45 fbl::unique_fd ram_nand(open(ram_nand_path, O_RDWR));
/fuchsia/zircon/system/uapp/tpmctl/
H A Dtpmctl.c52 int fd = open("/dev/class/tpm/000", O_RDWR);
/fuchsia/zircon/system/uapp/xdc-test/
H A Dxdc-device.cpp23 int fd = openat(dirfd(d), de->d_name, O_RDWR);
/fuchsia/zircon/third_party/ulib/musl/src/legacy/
H A Dgetpass.c14 if ((fd = open("/dev/tty", O_RDWR | O_NOCTTY | O_CLOEXEC)) < 0)
/fuchsia/zircon/third_party/ulib/musl/src/temp/
H A Dmkostemps.c21 if ((fd = open(template, flags | O_RDWR | O_CREAT | O_EXCL, 0600)) >= 0)
/fuchsia/zircon/system/uapp/serial-test/
H A Dserial-test.c42 fd = open(path, O_RDWR);
83 fd = open(path, O_RDWR);

Completed in 169 milliseconds

123456