Home
last modified time | relevance | path

Searched refs:O_WRONLY (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/freebsd-13-stable/contrib/pjdfstest/tests/open/
HD06.t26 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 …]
HD00.t25 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
HD11.t27 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
HD10.t27 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
HD23.t16 expect "0|EINVAL" open ${n0} O_WRONLY,O_RDWR
17 expect "0|EINVAL" open ${n0} O_RDONLY,O_WRONLY,O_RDWR
HD13.t19 expect EISDIR open ${n0} O_WRONLY
22 expect EISDIR open ${n0} O_WRONLY,O_TRUNC
HD14.t22 expect 0 open ${n0}/${n1} O_WRONLY
26 expect EROFS open ${n0}/${n1} O_WRONLY
/freebsd-13-stable/tests/sys/fs/fusefs/
HDopen.cc222 test_ok(O_WRONLY | O_APPEND, O_WRONLY | O_APPEND); in TEST_F()
228 test_ok(O_WRONLY | O_CREAT, O_WRONLY); in TEST_F()
234 test_ok(O_WRONLY | O_DIRECT, O_WRONLY | O_DIRECT); in TEST_F()
240 test_ok(O_WRONLY | O_EXCL, O_WRONLY); in TEST_F()
251 test_ok(O_WRONLY | O_NOCTTY, O_WRONLY); in TEST_F()
262 test_ok(O_WRONLY | O_TRUNC, O_WRONLY | O_TRUNC); in TEST_F()
267 test_ok(O_WRONLY, O_WRONLY); in TEST_F()
HDflush.cc102 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()
HDrelease.cc115 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-13-stable/tools/regression/priv/
HDpriv_vfs_read_write.c145 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()
218 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fother()
[all …]
/freebsd-13-stable/sys/security/audit/
HDaudit_bsm_klib.c75 { O_WRONLY, AUE_OPEN_W },
76 { (O_WRONLY | O_CREAT), AUE_OPEN_WC },
77 { (O_WRONLY | O_CREAT | O_TRUNC), AUE_OPEN_WTC },
78 { (O_WRONLY | O_TRUNC), AUE_OPEN_WT },
90 { O_WRONLY, AUE_OPENAT_W },
91 { (O_WRONLY | O_CREAT), AUE_OPENAT_WC },
92 { (O_WRONLY | O_CREAT | O_TRUNC), AUE_OPENAT_WTC },
93 { (O_WRONLY | O_TRUNC), AUE_OPENAT_WT },
218 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY); in audit_flags_and_error_to_openevent()
234 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY); in audit_flags_and_error_to_openatevent()
/freebsd-13-stable/lib/libc/tests/stdio/
HDfdopen_test.c73 runtest(_PATH_DEVNULL, O_WRONLY, "r", false); in ATF_TC_BODY()
94 runtest(_PATH_DEVNULL, O_WRONLY, "w", true); in ATF_TC_BODY()
115 runtest(_PATH_DEVNULL, O_WRONLY, "a", true); in ATF_TC_BODY()
136 runtest(_PATH_DEVNULL, O_WRONLY, "r+", false); in ATF_TC_BODY()
157 runtest(_PATH_DEVNULL, O_WRONLY, "w+", false); in ATF_TC_BODY()
/freebsd-13-stable/tools/regression/security/cap_test/
HDcap_test_capabilities.c190 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND, in try_file_ops()
192 CHECK_RESULT(openat(O_CREATE | O_WRONLY | O_APPEND), in try_file_ops()
212 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND); in try_file_ops()
213 CHECK_RESULT(openat(O_FSYNC | O_WRONLY | O_APPEND), in try_file_ops()
224 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND); in try_file_ops()
225 CHECK_RESULT(openat(O_SYNC | O_WRONLY | O_APPEND), in try_file_ops()
244 ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_WRONLY); in try_file_ops()
245 CHECK_RESULT(openat(O_TRUNC | O_WRONLY), in try_file_ops()
254 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY, 0600); in try_file_ops()
255 CHECK_RESULT(openat(O_CREATE | O_WRONLY), in try_file_ops()
[all …]
/freebsd-13-stable/contrib/sendmail/libsm/
HDstdio.c81 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-13-stable/tests/sys/audit/
HDopen.c164 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-13-stable/contrib/libfido2/examples/
HDutil.c57 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-13-stable/lib/libc/stdio/
HDflags.c66 m = O_WRONLY; in __sflags()
72 m = O_WRONLY; in __sflags()
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
HDt_fileactions.c113 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-13-stable/contrib/file/src/
HDseccomp.c175 SCMP_CMP(1, SCMP_CMP_MASKED_EQ, O_WRONLY | O_RDWR, 0)) == -1) in enable_sandbox()
179 SCMP_CMP(1, SCMP_CMP_MASKED_EQ, O_WRONLY, O_WRONLY)) == -1) in enable_sandbox()
/freebsd-13-stable/tools/regression/security/open_to_operation/
HDopen_to_operation.c118 static const int file_modes[] = { O_RDONLY, O_WRONLY, O_RDWR,
119 O_RDONLY | O_TRUNC, O_WRONLY | O_TRUNC, O_RDWR | O_TRUNC };
508 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate()
523 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate()
539 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate()
552 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate()
566 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate()
574 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate()
790 if ((mode & O_ACCMODE) == O_WRONLY || in check_write()
796 if (!((mode & O_ACCMODE) == O_WRONLY || in check_write()
[all …]
/freebsd-13-stable/bin/sh/
HDredir.c195 if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0) in openredirect()
198 if ((f = open(fname, O_WRONLY, 0666)) < 0) in openredirect()
213 if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0) in openredirect()
218 if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0) in openredirect()
/freebsd-13-stable/tests/sys/fifo/
HDfifo_kqueue.c54 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY()
155 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY()
234 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY()
288 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY()
341 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY()
398 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY()
/freebsd-13-stable/crypto/openssh/openbsd-compat/
HDbsd-misc.c133 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-13-stable/contrib/netbsd-tests/fs/union/
HDt_pr.c80 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()

12345678910>>...15