Home
last modified time | relevance | path

Searched refs:O_RDWR (Results 1 – 25 of 913) sorted by relevance

12345678910>>...37

/freebsd/contrib/pjdfstest/tests/open/
H A D06.t27 expect 0 -u 65534 -g 65534 open ${n1} O_RDWR,
31 expect 0 -u 65533 -g 65534 open ${n1} O_RDWR,
35 expect 0 -u 65533 -g 65533 open ${n1} O_RDWR,
40 expect EACCES -u 65534 -g 65534 open ${n1} O_RDWR,
44 expect EACCES -u 65533 -g 65534 open ${n1} O_RDWR,
48 expect EACCES -u 65533 -g 65533 open ${n1} O_RDWR,
53 expect EACCES -u 65534 -g 65534 open ${n1} O_RDWR,
57 expect EACCES -u 65533 -g 65534 open ${n1} O_RDWR,
61 expect EACCES -u 65533 -g 65533 open ${n1} O_RDWR,
66 expect EACCES -u 65534 -g 65534 open ${n1} O_RDWR,
[all …]
H A D11.t28 expect 0 open ${n0} O_RDWR,O_APPEND
30 expect EPERM open ${n0} O_RDWR
38 expect EPERM open ${n0} O_RDWR,O_APPEND,O_TRUNC
47 expect 0 open ${n0} O_RDWR,O_APPEND
49 expect EPERM open ${n0} O_RDWR
53 expect EPERM open ${n0} O_RDWR,O_APPEND,O_TRUNC
H A D23.t15 expect "0|EINVAL" open ${n0} O_RDONLY,O_RDWR
16 expect "0|EINVAL" open ${n0} O_WRONLY,O_RDWR
17 expect "0|EINVAL" open ${n0} O_RDONLY,O_WRONLY,O_RDWR
H A D10.t28 expect EPERM open ${n0} O_RDWR
36 expect 0 open ${n0} O_RDWR
46 expect EPERM open ${n0} O_RDWR
54 expect 0 open ${n0} O_RDWR
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-openpty.c87 if ((ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY)) == -1) in openpty_streams()
104 if ((*aslave = open(pts, O_RDWR | O_NOCTTY)) == -1) { in openpty_streams()
142 if ((slave = _getpty(amaster, O_RDWR, 0622, 0)) == NULL) in openpty()
146 if ((*aslave = open(slave, O_RDWR | O_NOCTTY)) == -1) { in openpty()
169 if (junk_ptyfd == -1 && (fd = open(_PATH_TTY, O_RDWR|O_NOCTTY)) >= 0) { in openpty()
185 if ((*amaster = open("/dev/ptc", O_RDWR | O_NOCTTY)) == -1) in openpty()
189 if ((*aslave = open(ttname, O_RDWR | O_NOCTTY)) == -1) { in openpty()
212 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) { in openpty()
216 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) in openpty()
221 if ((*aslave = open(ttbuf, O_RDWR | O_NOCTTY)) == -1) { in openpty()
/freebsd/contrib/netbsd-tests/lib/libc/c063/
H A Dt_o_search.c82 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
87 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); in ATF_TC_BODY()
92 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) == -1); in ATF_TC_BODY()
112 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
117 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); in ATF_TC_BODY()
122 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); in ATF_TC_BODY()
127 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); in ATF_TC_BODY()
144 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
149 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); in ATF_TC_BODY()
154 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); in ATF_TC_BODY()
[all …]
H A Dt_linkat.c68 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
95 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
117 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
134 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
154 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
187 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
/freebsd/lib/libutil/tests/
H A Dflopen_test.c52 fd = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_create()
72 fd = open(fn, O_RDWR|O_CREAT, 0640); in test_flopen_open()
77 fd = flopen(fn, O_RDWR); in test_flopen_open()
99 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_self()
103 fd2 = flopen(fn, O_RDWR|O_NONBLOCK); in test_flopen_lock_self()
125 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_other()
131 fd2 = flopen(fn, O_RDWR|O_NONBLOCK); in test_flopen_lock_other()
157 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_lock_child()
169 if ((fd2 = flopen(fn, O_RDWR|O_NONBLOCK)) != -1) { in test_flopen_lock_child()
/freebsd/tools/regression/priv/
H A Dpriv_vfs_read_write.c147 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fowner()
154 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fowner()
161 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fowner()
168 asroot, injail, O_RDWR, 0, 0); in priv_vfs_readwrite_fowner()
180 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fgroup()
187 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fgroup()
194 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fgroup()
201 asroot, injail, O_RDWR, 0, 0); in priv_vfs_readwrite_fgroup()
213 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fother()
220 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fother()
[all …]
/freebsd/sys/security/audit/
H A Daudit_bsm_klib.c70 { O_RDWR, AUE_OPEN_RW },
71 { (O_RDWR | O_CREAT), AUE_OPEN_RWC },
72 { (O_RDWR | O_CREAT | O_TRUNC), AUE_OPEN_RWTC },
73 { (O_RDWR | O_TRUNC), AUE_OPEN_RWT },
85 { O_RDWR, AUE_OPENAT_RW },
86 { (O_RDWR | O_CREAT), AUE_OPENAT_RWC },
87 { (O_RDWR | O_CREAT | O_TRUNC), AUE_OPENAT_RWTC },
88 { (O_RDWR | O_TRUNC), AUE_OPENAT_RWT },
216 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY); in audit_flags_and_error_to_openevent()
232 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY); in audit_flags_and_error_to_openatevent()
/freebsd/contrib/netbsd-tests/fs/vfs/
H A Dt_io.c57 RL(fd = rump_sys_open("file", O_RDWR|O_CREAT|O_TRUNC, 0666)); in holywrite()
88 O_CREAT | O_RDWR | (seekcnt ? O_APPEND : 0))); in extendbody()
125 RL(fd = rump_sys_open("testi", O_CREAT | O_RDWR, 0666)); in overwritebody()
129 RL(fd = rump_sys_open("testi", O_RDWR)); in overwritebody()
164 RL(fd = rump_sys_open("file", O_RDWR|O_CREAT|O_TRUNC, 0666)); in shrinkfile()
181 RL(fd = rump_sys_open("file", O_RDWR|O_CREAT, 0666)); in read_after_unlink()
189 RL(fd = rump_sys_open("file", O_RDWR)); in read_after_unlink()
208 RL(fd = rump_sys_open("file", O_RDWR|O_CREAT, 0666)); in wrrd_after_unlink()
232 RL(fd = rump_sys_open("file", O_CREAT | O_RDWR, 0777)); in read_fault()
/freebsd/contrib/pjdfstest/tests/ftruncate/
H A D00.t20 expect 0 open ${n0} O_RDWR : ftruncate 0 1234567
27 expect 0 open ${n0} O_RDWR : ftruncate 0 23456
37 expect 0 open ${n0} O_RDWR : ftruncate 0 123
52 expect 0 open ${n0} O_CREAT,O_RDWR 0 : ftruncate 0 0
55 expect 0 -u 65534 open ${n0} O_CREAT,O_RDWR 0 : ftruncate 0 0
/freebsd/tools/regression/capsicum/syscalls/
H A Dcap_fcntls_limit.c59 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0()
63 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0()
83 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0()
87 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0()
106 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0()
110 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0()
114 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0()
295 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_recv_0()
299 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_recv_0()
319 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_recv_0()
[all …]
/freebsd/contrib/netbsd-tests/kernel/tty/
H A Dt_pr.c111 slave = rump_sys_open("/dev/ttyp1", O_RDWR|O_NONBLOCK); in ATF_TC_BODY()
114 master = rump_sys_open("/dev/ptyp1", O_RDWR); in ATF_TC_BODY()
139 master = rump_sys_open("/dev/ptyp1", O_RDWR); in ATF_TC_BODY()
142 slave = rump_sys_open("/dev/ttyp1", O_RDWR); in ATF_TC_BODY()
166 fd = rump_sys_open("/dev/ptyp1", O_RDWR); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/fs/ffs/
H A Dh_quota2_tests.c61 fd = rump_sys_open("test_fillup", O_CREAT | O_RDWR, 0644); in quota_test0()
94 fd = rump_sys_open("test_fillup", O_CREAT | O_RDWR, 0644); in quota_test1()
146 fd = rump_sys_open(buf, O_CREAT | O_RDWR, 0644); in quota_test2()
187 fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644); in quota_test3()
197 fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644); in quota_test3()
241 fd = rump_sys_open(FSTEST_MNTNAME "/le_snap", O_CREAT | O_RDWR, 0777); in quota_test4()
245 fssfd = rump_sys_open("/dev/rfss0", O_RDWR); in quota_test4()
263 fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644); in quota_test4()
317 O_EXCL| O_CREAT | O_RDWR, 0644); in quota_test5()
/freebsd/contrib/sendmail/libsm/
H A Dstdio.c72 oflags = O_RDWR;
75 oflags = O_RDWR | O_CREAT | O_TRUNC;
87 oflags = O_APPEND | O_RDWR | O_CREAT;
415 oflags = O_RDWR | O_CREAT;
427 oflags = O_APPEND | O_RDWR | O_CREAT;
442 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE)))
503 case O_RDWR:
/freebsd/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c790 (mode & O_ACCMODE) == O_RDWR) in check_write()
796 (mode & O_ACCMODE) == O_RDWR)) in check_write()
874 (mode & O_ACCMODE) == O_RDWR) in check_read()
880 (mode & O_ACCMODE) == O_RDWR)) in check_read()
913 (mode & O_ACCMODE) == O_RDWR) in check_mmap_read()
923 (mode & O_ACCMODE) == O_RDWR) in check_mmap_read()
959 (mode & O_ACCMODE) == O_RDWR) in check_mmap_write()
966 (mode & O_ACCMODE) == O_RDWR) in check_mmap_write()
1001 (mode & O_ACCMODE) == O_RDWR) in check_mmap_exec()
1043 (mode & O_ACCMODE) == O_RDWR) in check_mmap_write_private()
[all …]
/freebsd/tests/sys/fs/fusefs/
H A Dlocks.cc144 fd = open(FULLPATH, O_RDWR); in TEST_F()
165 fd = open(FULLPATH, O_RDWR); in TEST_F()
184 fd = open(FULLPATH, O_RDWR); in TEST_F()
203 fd = open(FULLPATH, O_RDWR); in TEST_F()
225 fd = open(FULLPATH, O_RDWR); in TEST_F()
275 fd = open(FULLPATH, O_RDWR); in TEST_F()
338 fd = open(FULLPATH, O_RDWR); in TEST_F()
395 fd = open(FULLPATH, O_RDWR); in TEST_F()
460 fd = open(FULLPATH, O_RDWR); in TEST_F()
501 fd = open(FULLPATH, O_RDWR); in TEST_F()
[all …]
H A Dfallocate.cc199 fd = open(FULLPATH, O_RDWR); in TEST_F()
244 fd = open(FULLPATH, O_RDWR); in TEST_F()
295 fd = open(FULLPATH, O_RDWR); in TEST_F()
330 fd = open(FULLPATH, O_RDWR); in TEST_F()
371 fd = open(FULLPATH, O_RDWR); in TEST_F()
399 fd = open(FULLPATH, O_RDWR); in TEST_F()
432 fd = open(FULLPATH, O_RDWR); in TEST_F()
472 fd = open(FULLPATH, O_RDWR); in TEST_P()
521 fd = open(FULLPATH, O_RDWR); in TEST_F()
558 fd = open(FULLPATH, O_RDWR); in TEST_F()
[all …]
/freebsd/lib/libc/tests/stdio/
H A Dfdopen_test.c79 runtest(_PATH_DEVNULL, O_RDWR, "r", true); in ATF_TC_BODY()
100 runtest(_PATH_DEVNULL, O_RDWR, "w", true); in ATF_TC_BODY()
121 runtest(_PATH_DEVNULL, O_RDWR, "a", true); in ATF_TC_BODY()
142 runtest(_PATH_DEVNULL, O_RDWR, "r+", true); in ATF_TC_BODY()
163 runtest(_PATH_DEVNULL, O_RDWR, "w+", true); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/lib/librumphijack/
H A Dh_client.c100 fd = open("/rump/dev/null", O_RDWR); in main()
124 if ((fd = open("/dev/null", O_RDWR)) == -1) in main()
127 fd = open("/dev/null", O_RDWR); in main()
132 if ((fd = open("/rump/dev/null", O_RDWR)) != 8) in main()
/freebsd/tools/regression/nfsmmap/test2/
H A Dtest2.c17 fd = open("test2.data", O_RDWR|O_CREAT, 0666); in main()
25 fd = open("test2.data", O_RDWR); in main()
38 fd2 = open("test2.scratch", O_RDWR|O_CREAT, 0666); in main()
/freebsd/tools/regression/nfsmmap/test1/
H A Dtest1.c17 fd = open("test1.data", O_RDWR|O_CREAT, 0666); in main()
25 fd = open("test1.data", O_RDWR); in main()
40 fd2 = open("test1.scratch", O_RDWR|O_CREAT, 0666); in main()
/freebsd/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c196 CHECK_RESULT(openat(O_CREATE | O_RDWR | O_APPEND), in try_file_ops()
216 CHECK_RESULT(openat(O_FSYNC | O_RDWR | O_APPEND), in try_file_ops()
228 CHECK_RESULT(openat(O_SYNC | O_RDWR | O_APPEND), in try_file_ops()
247 ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_RDWR); in try_file_ops()
248 CHECK_RESULT(openat(O_TRUNC | O_RDWR), in try_file_ops()
258 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR, 0600); in try_file_ops()
259 CHECK_RESULT(openat(O_CREATE | O_RDWR), in try_file_ops()
272 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR); in try_file_ops()
273 CHECK_RESULT(openat(O_FSYNC | O_RDWR), in try_file_ops()
280 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDWR); in try_file_ops()
[all …]
/freebsd/contrib/netbsd-tests/rump/rumpvfs/
H A Dt_etfs.c71 localfd = open("./testfile", O_RDWR | O_CREAT, 0666); in ATF_TC_BODY()
89 tfd = rump_sys_open(TESTPATH2, O_RDWR); in ATF_TC_BODY()
194 tfd = rump_sys_open(TESTPATH1, O_RDWR); in ATF_TC_BODY()
204 tfd = rump_sys_open(TESTPATH2, O_RDWR); in ATF_TC_BODY()
245 tfd = rump_sys_open(TESTPATH1, O_RDWR); in ATF_TC_BODY()
270 RL(open("hostfile", O_RDWR | O_CREAT, 0777)); in ATF_TC_BODY()

12345678910>>...37