/freebsd/contrib/pjdfstest/tests/open/ |
H A D | 06.t | 27 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 D | 11.t | 28 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 D | 10.t | 28 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
|
H A D | 23.t | 15 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
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-openpty.c | 87 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 D | t_o_search.c | 82 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 D | t_linkat.c | 68 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 D | flopen_test.c | 52 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 D | priv_vfs_read_write.c | 147 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 D | audit_bsm_klib.c | 70 { 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 D | t_io.c | 57 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/tools/regression/capsicum/syscalls/ |
H A D | cap_fcntls_limit.c | 58 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 60 CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK)); in fcntl_tests_0() 62 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 82 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 84 CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK)); in fcntl_tests_0() 86 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 105 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 109 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 113 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 294 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_recv_0() [all...] |
/freebsd/contrib/pjdfstest/tests/ftruncate/ |
H A D | 00.t | 20 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/contrib/netbsd-tests/fs/ffs/ |
H A D | h_quota2_tests.c | 61 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/netbsd-tests/kernel/tty/ |
H A D | t_pr.c | 111 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/sendmail/libsm/ |
H A D | stdio.c | 72 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 D | open_to_operation.c | 117 static const int file_modes[] = { O_RDONLY, O_WRONLY, O_RDWR, 118 O_RDONLY | O_TRUNC, O_WRONLY | O_TRUNC, O_RDWR | O_TRUNC }; 508 ((mode & O_ACCMODE) == O_RDWR)) in check_ftruncate() 523 ((mode & O_ACCMODE) == O_RDWR)) { in check_ftruncate() 539 ((mode & O_ACCMODE) == O_RDWR)) in check_ftruncate() 552 ((mode & O_ACCMODE) == O_RDWR)) { in check_ftruncate() 566 ((mode & O_ACCMODE) == O_RDWR)) in check_ftruncate() 574 ((mode & O_ACCMODE) == O_RDWR)) in check_ftruncate() 699 ((mode & O_ACCMODE) == O_RDWR)) in check_sendfile() 707 ((mode & O_ACCMODE) == O_RDWR)) in check_sendfile() [all …]
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | locks.cc | 144 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 D | fallocate.cc | 199 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() 354 fd = open(FULLPATH, O_RDWR); in TEST_F() 381 fd = open(FULLPATH, O_RDWR); in TEST_F() 422 fd = open(FULLPATH, O_RDWR); in TEST_F() 450 fd = open(FULLPATH, O_RDWR); in TEST_F() 483 fd = open(FULLPATH, O_RDWR); in TEST_F() 523 fd = open(FULLPATH, O_RDWR); in TEST_P() 572 fd = open(FULLPATH, O_RDWR); in TEST_F() [all …]
|
/freebsd/lib/libc/tests/stdio/ |
H A D | fdopen_test.c | 79 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/tools/regression/security/cap_test/ |
H A D | cap_test_capabilities.c | 195 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR | O_APPEND, 0600); in try_file_ops() 196 CHECK_RESULT(openat(O_CREATE | O_RDWR | O_APPEND), in try_file_ops() 215 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR | O_APPEND); in try_file_ops() 216 CHECK_RESULT(openat(O_FSYNC | O_RDWR | O_APPEND), in try_file_ops() 227 ret = openat(dfd_cap, "cap_fsync", O_SYNC | 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() [all …]
|
/freebsd/contrib/netbsd-tests/lib/librumphijack/ |
H A D | h_client.c | 100 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/contrib/netbsd-tests/rump/rumpvfs/ |
H A D | t_etfs.c | 71 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()
|
/freebsd/libexec/tftpd/tests/ |
H A D | functional.c | 502 fd = open("small.txt", O_RDWR | O_CREAT, 0644); 520 fd = open("small.txt", O_RDWR | O_CREAT, 0644); 548 fd = open("medium.txt", O_RDWR | O_CREAT, 0644); 578 fd = open("medium.txt", O_RDWR | O_CREAT, 0644); 636 fd = open("medium.txt", O_RDWR | O_CREAT, 0644); 661 fd = open("medium.txt", O_RDWR | O_CREAT, 0644); 687 fd = open("unix.txt", O_RDWR | O_CREAT, 0644); 743 fd = open("small.txt", O_RDWR | O_CREAT, 0644); 768 fd = open("rfc7440.txt", O_RDWR | O_CREAT, 0644); 873 fd = open("medium.txt", O_RDWR | O_CREAT, 0666); [all …]
|
/freebsd/tools/regression/nfsmmap/test2/ |
H A D | test2.c | 17 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()
|