/freebsd/contrib/pjdfstest/tests/open/ |
H A D | 06.t | 26 expect 0 -u 65534 -g 65534 open ${n1} O_WRONLY, 30 expect 0 -u 65533 -g 65534 open ${n1} O_WRONLY, 34 expect 0 -u 65533 -g 65533 open ${n1} O_WRONLY, 39 expect EACCES -u 65534 -g 65534 open ${n1} O_WRONLY, 43 expect EACCES -u 65533 -g 65534 open ${n1} O_WRONLY, 47 expect EACCES -u 65533 -g 65533 open ${n1} O_WRONLY, 52 expect 0 -u 65534 -g 65534 open ${n1} O_WRONLY, 56 expect 0 -u 65533 -g 65534 open ${n1} O_WRONLY, 60 expect 0 -u 65533 -g 65533 open ${n1} O_WRONLY, 65 expect EACCES -u 65534 -g 65534 open ${n1} O_WRONLY, [all …]
|
H A D | 00.t | 25 expect 0 open ${n0} O_CREAT,O_WRONLY 0755 28 expect 0 open ${n0} O_CREAT,O_WRONLY 0151 31 expect 0 -U 077 open ${n0} O_CREAT,O_WRONLY 0151 34 expect 0 -U 070 open ${n0} O_CREAT,O_WRONLY 0345 37 expect 0 -U 0501 open ${n0} O_CREAT,O_WRONLY 0345 46 expect 0 -u 65535 -g 65535 open ${n0} O_CREAT,O_WRONLY 0644 49 expect 0 -u 65535 -g 65534 open ${n0} O_CREAT,O_WRONLY 0644 53 expect 0 -u 65534 -g 65533 open ${n0} O_CREAT,O_WRONLY 0644 61 expect 0 open ${n0} O_CREAT,O_WRONLY 0644 91 expect 0 open ${n0} O_WRONLY,O_TRUNC
|
H A D | 11.t | 27 expect 0 open ${n0} O_WRONLY,O_APPEND 29 expect EPERM open ${n0} O_WRONLY 36 expect EPERM open ${n0} O_WRONLY,O_APPEND,O_TRUNC 46 expect 0 open ${n0} O_WRONLY,O_APPEND 48 expect EPERM open ${n0} O_WRONLY 52 expect EPERM open ${n0} O_WRONLY,O_APPEND,O_TRUNC
|
H A D | 10.t | 27 expect EPERM open ${n0} O_WRONLY 35 expect 0 open ${n0} O_WRONLY 45 expect EPERM open ${n0} O_WRONLY 53 expect 0 open ${n0} O_WRONLY
|
H A D | 23.t | 16 expect "0|EINVAL" open ${n0} O_WRONLY,O_RDWR 17 expect "0|EINVAL" open ${n0} O_RDONLY,O_WRONLY,O_RDWR
|
H A D | 13.t | 19 expect EISDIR open ${n0} O_WRONLY 22 expect EISDIR open ${n0} O_WRONLY,O_TRUNC
|
H A D | 14.t | 22 expect 0 open ${n0}/${n1} O_WRONLY 26 expect EROFS open ${n0}/${n1} O_WRONLY
|
/freebsd/tools/regression/priv/ |
H A D | priv_vfs_read_write.c | 145 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fowner() 152 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fowner() 159 asroot, injail, O_WRONLY, 0, 0); in priv_vfs_readwrite_fowner() 166 asroot, injail, O_WRONLY, 0, 0); in priv_vfs_readwrite_fowner() 178 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fgroup() 185 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fgroup() 192 asroot, injail, O_WRONLY, 0, 0); in priv_vfs_readwrite_fgroup() 199 asroot, injail, O_WRONLY, 0, 0); in priv_vfs_readwrite_fgroup() 211 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fother() 225 asroot, injail, O_WRONLY, 0, 0); in priv_vfs_readwrite_fother() [all …]
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | open.cc | 230 test_ok(O_WRONLY | O_APPEND, O_WRONLY | O_APPEND); in TEST_F() 236 test_ok(O_WRONLY | O_CREAT, O_WRONLY); in TEST_F() 242 test_ok(O_WRONLY | O_DIRECT, O_WRONLY | O_DIRECT); in TEST_F() 248 test_ok(O_WRONLY | O_EXCL, O_WRONLY); in TEST_F() 259 test_ok(O_WRONLY | O_NOCTTY, O_WRONLY); in TEST_F() 270 test_ok(O_WRONLY | O_TRUNC, O_WRONLY | O_TRUNC); in TEST_F() 275 test_ok(O_WRONLY, O_WRONLY); in TEST_F()
|
H A D | flush.cc | 102 fd = open(FULLPATH, O_WRONLY); in TEST_F() 105 fd2 = open(FULLPATH, O_WRONLY); in TEST_F() 132 fd = open(FULLPATH, O_WRONLY); in TEST_F() 163 fd0 = open(FULLPATH0, O_WRONLY); in TEST_F() 166 fd1 = open(FULLPATH1, O_WRONLY); in TEST_F() 186 fd = open(FULLPATH, O_WRONLY); in TEST_F() 237 fd2 = open(FULLPATH, O_WRONLY); in TEST_F()
|
H A D | release.cc | 115 expect_release(ino, getpid(), O_WRONLY, EIO); in TEST_F() 117 fd = open(FULLPATH, O_WRONLY); in TEST_F() 165 expect_release(ino, getpid(), O_WRONLY, 0); in TEST_F() 166 fd2 = open(FULLPATH, O_WRONLY); in TEST_F()
|
/freebsd/sys/security/audit/ |
H A D | audit_bsm_klib.c | 74 { O_WRONLY, AUE_OPEN_W }, 75 { (O_WRONLY | O_CREAT), AUE_OPEN_WC }, 76 { (O_WRONLY | O_CREAT | O_TRUNC), AUE_OPEN_WTC }, 77 { (O_WRONLY | O_TRUNC), AUE_OPEN_WT }, 89 { O_WRONLY, AUE_OPENAT_W }, 90 { (O_WRONLY | O_CREAT), AUE_OPENAT_WC }, 91 { (O_WRONLY | O_CREAT | O_TRUNC), AUE_OPENAT_WTC }, 92 { (O_WRONLY | O_TRUNC), AUE_OPENAT_WT }, 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/lib/libc/tests/stdio/ |
H A D | fdopen_test.c | 72 runtest(_PATH_DEVNULL, O_WRONLY, "r", false); in ATF_TC_BODY() 93 runtest(_PATH_DEVNULL, O_WRONLY, "w", true); in ATF_TC_BODY() 114 runtest(_PATH_DEVNULL, O_WRONLY, "a", true); in ATF_TC_BODY() 135 runtest(_PATH_DEVNULL, O_WRONLY, "r+", false); in ATF_TC_BODY() 156 runtest(_PATH_DEVNULL, O_WRONLY, "w+", false); in ATF_TC_BODY()
|
/freebsd/tools/regression/security/cap_test/ |
H A D | cap_test_capabilities.c | 191 CHECK_RESULT(openat(O_CREATE | O_WRONLY | O_APPEND), in try_file_ops() 212 CHECK_RESULT(openat(O_FSYNC | O_WRONLY | O_APPEND), in try_file_ops() 224 CHECK_RESULT(openat(O_SYNC | O_WRONLY | O_APPEND), in try_file_ops() 243 ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_WRONLY); in try_file_ops() 244 CHECK_RESULT(openat(O_TRUNC | O_WRONLY), in try_file_ops() 253 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY, 0600); in try_file_ops() 254 CHECK_RESULT(openat(O_CREATE | O_WRONLY), in try_file_ops() 268 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY); in try_file_ops() 269 CHECK_RESULT(openat(O_FSYNC | O_WRONLY), in try_file_ops() 276 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY); in try_file_ops() [all …]
|
/freebsd/contrib/sendmail/libsm/ |
H A D | stdio.c | 81 oflags = O_WRONLY | O_CREAT | O_TRUNC; 84 oflags = O_APPEND | O_WRONLY | O_CREAT; 421 oflags = O_WRONLY | O_CREAT | O_TRUNC; 424 oflags = O_APPEND | O_WRONLY | O_CREAT; 500 case O_WRONLY:
|
/freebsd/tests/sys/audit/ |
H A D | open.c | 164 OPEN_AT_TC_DEFINE(write, "write", O_WRONLY, "fw") 165 OPEN_AT_TC_DEFINE(write_creat, "write,creat", O_WRONLY | O_CREAT, "fw") 166 OPEN_AT_TC_DEFINE(write_trunc, "write,trunc", O_WRONLY | O_TRUNC, "fw") 167 OPEN_AT_TC_DEFINE(write_creat_trunc, "write,creat,trunc", O_WRONLY | O_CREAT
|
/freebsd/lib/libc/stdio/ |
H A D | flags.c | 62 m = O_WRONLY; in __sflags() 68 m = O_WRONLY; in __sflags()
|
/freebsd/contrib/libfido2/examples/ |
H A D | util.c | 57 if ((fd = open(path, O_WRONLY | O_CREAT, 0600)) < 0) { in write_blob() 181 if ((fd = open(path, O_WRONLY | O_CREAT, 0644)) < 0) { in write_es256_pubkey() 238 if ((fd = open(path, O_WRONLY | O_CREAT, 0644)) < 0) { in write_es384_pubkey() 327 if ((fd = open(path, O_WRONLY | O_CREAT, 0644)) < 0) { in write_rs256_pubkey() 408 if ((fd = open(path, O_WRONLY | O_CREAT, 0644)) < 0) { in write_eddsa_pubkey()
|
/freebsd/contrib/netbsd-tests/lib/libc/gen/posix_spawn/ |
H A D | t_fileactions.c | 113 CHECKFILE, O_WRONLY|O_CREAT, 0600); in ATF_TC_BODY() 139 CHECKFILE, O_WRONLY|O_APPEND, 0); in ATF_TC_BODY() 165 CHECKFILE, O_WRONLY, 0); in ATF_TC_BODY() 322 fd2 = open("/dev/null", O_WRONLY, O_CLOEXEC); in ATF_TC_BODY() 325 fd3 = open("/dev/null", O_WRONLY); in ATF_TC_BODY() 406 TESTFILE, O_WRONLY | O_CREAT, 0600); in t_spawn_chdir_impl()
|
/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, 507 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate() 522 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate() 538 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate() 551 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate() 565 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate() 573 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate() 789 if ((mode & O_ACCMODE) == O_WRONLY || in check_write() 795 if (!((mode & O_ACCMODE) == O_WRONLY || in check_write() 958 if ((mode & O_ACCMODE) == O_WRONLY || in check_mmap_write() [all …]
|
/freebsd/bin/sh/ |
H A D | redir.c | 189 if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0) in openredirect() 192 if ((f = open(fname, O_WRONLY, 0666)) < 0) in openredirect() 207 if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0) in openredirect() 212 if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0) in openredirect()
|
/freebsd/tests/sys/fifo/ |
H A D | fifo_kqueue.c | 53 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY() 154 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY() 233 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY() 287 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY() 340 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY() 397 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-misc.c | 133 int ret, oflags = O_WRONLY; in utimensat() 170 int ret, oflags = O_WRONLY; in fchownat() 201 int ret, oflags = O_WRONLY; in fchmodat() 228 fd = open(path, O_WRONLY); in truncate()
|
/freebsd/contrib/netbsd-tests/fs/union/ |
H A D | t_pr.c | 80 fd = rump_sys_open("/mp/null", O_WRONLY | O_CREAT | O_TRUNC); in ATF_TC_BODY() 114 fd = rump_sys_open("/mp/null", O_WRONLY | O_CREAT | O_APPEND); in ATF_TC_BODY()
|
/freebsd/contrib/pjdfstest/tests/ftruncate/ |
H A D | 00.t | 22 expect 0 open ${n0} O_WRONLY : ftruncate 0 567 29 expect 0 open ${n0} O_WRONLY : ftruncate 0 1
|