Home
last modified time | relevance | path

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

12345678910>>...15

/freebsd-12-stable/contrib/pjdfstest/tests/open/
D06.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 …]
D00.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
D11.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
D10.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
D23.t16 expect "0|EINVAL" open ${n0} O_WRONLY,O_RDWR
17 expect "0|EINVAL" open ${n0} O_RDONLY,O_WRONLY,O_RDWR
D13.t19 expect EISDIR open ${n0} O_WRONLY
22 expect EISDIR open ${n0} O_WRONLY,O_TRUNC
D14.t22 expect 0 open ${n0}/${n1} O_WRONLY
26 expect EROFS open ${n0}/${n1} O_WRONLY
/freebsd-12-stable/tests/sys/fs/fusefs/
Dopen.cc224 test_ok(O_WRONLY | O_APPEND, O_WRONLY | O_APPEND); in TEST_F()
230 test_ok(O_WRONLY | O_CREAT, O_WRONLY); in TEST_F()
236 test_ok(O_WRONLY | O_DIRECT, O_WRONLY | O_DIRECT); in TEST_F()
242 test_ok(O_WRONLY | O_EXCL, O_WRONLY); in TEST_F()
253 test_ok(O_WRONLY | O_NOCTTY, O_WRONLY); in TEST_F()
264 test_ok(O_WRONLY | O_TRUNC, O_WRONLY | O_TRUNC); in TEST_F()
269 test_ok(O_WRONLY, O_WRONLY); in TEST_F()
Dflush.cc104 fd = open(FULLPATH, O_WRONLY); in TEST_F()
107 fd2 = open(FULLPATH, O_WRONLY); in TEST_F()
134 fd = open(FULLPATH, O_WRONLY); in TEST_F()
165 fd0 = open(FULLPATH0, O_WRONLY); in TEST_F()
168 fd1 = open(FULLPATH1, O_WRONLY); in TEST_F()
188 fd = open(FULLPATH, O_WRONLY); in TEST_F()
239 fd2 = open(FULLPATH, O_WRONLY); in TEST_F()
Drelease.cc117 expect_release(ino, getpid(), O_WRONLY, EIO); in TEST_F()
119 fd = open(FULLPATH, O_WRONLY); in TEST_F()
167 expect_release(ino, getpid(), O_WRONLY, 0); in TEST_F()
168 fd2 = open(FULLPATH, O_WRONLY); in TEST_F()
/freebsd-12-stable/tools/regression/priv/
Dpriv_vfs_read_write.c147 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fowner()
154 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fowner()
161 asroot, injail, O_WRONLY, 0, 0); in priv_vfs_readwrite_fowner()
168 asroot, injail, O_WRONLY, 0, 0); in priv_vfs_readwrite_fowner()
180 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fgroup()
187 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fgroup()
194 asroot, injail, O_WRONLY, 0, 0); in priv_vfs_readwrite_fgroup()
201 asroot, injail, O_WRONLY, 0, 0); in priv_vfs_readwrite_fgroup()
213 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fother()
220 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fother()
[all …]
/freebsd-12-stable/sys/security/audit/
Daudit_bsm_klib.c77 { O_WRONLY, AUE_OPEN_W },
78 { (O_WRONLY | O_CREAT), AUE_OPEN_WC },
79 { (O_WRONLY | O_CREAT | O_TRUNC), AUE_OPEN_WTC },
80 { (O_WRONLY | O_TRUNC), AUE_OPEN_WT },
92 { O_WRONLY, AUE_OPENAT_W },
93 { (O_WRONLY | O_CREAT), AUE_OPENAT_WC },
94 { (O_WRONLY | O_CREAT | O_TRUNC), AUE_OPENAT_WTC },
95 { (O_WRONLY | O_TRUNC), AUE_OPENAT_WT },
220 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY); in audit_flags_and_error_to_openevent()
236 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY); in audit_flags_and_error_to_openatevent()
/freebsd-12-stable/lib/libc/tests/stdio/
Dfdopen_test.c75 runtest(_PATH_DEVNULL, O_WRONLY, "r", false); in ATF_TC_BODY()
96 runtest(_PATH_DEVNULL, O_WRONLY, "w", true); in ATF_TC_BODY()
117 runtest(_PATH_DEVNULL, O_WRONLY, "a", true); in ATF_TC_BODY()
138 runtest(_PATH_DEVNULL, O_WRONLY, "r+", false); in ATF_TC_BODY()
159 runtest(_PATH_DEVNULL, O_WRONLY, "w+", false); in ATF_TC_BODY()
/freebsd-12-stable/tools/regression/security/cap_test/
Dcap_test_capabilities.c192 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND, in try_file_ops()
194 CHECK_RESULT(openat(O_CREATE | O_WRONLY | O_APPEND), in try_file_ops()
214 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND); in try_file_ops()
215 CHECK_RESULT(openat(O_FSYNC | O_WRONLY | O_APPEND), in try_file_ops()
226 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND); in try_file_ops()
227 CHECK_RESULT(openat(O_SYNC | O_WRONLY | O_APPEND), in try_file_ops()
246 ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_WRONLY); in try_file_ops()
247 CHECK_RESULT(openat(O_TRUNC | O_WRONLY), in try_file_ops()
256 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY, 0600); in try_file_ops()
257 CHECK_RESULT(openat(O_CREATE | O_WRONLY), in try_file_ops()
[all …]
/freebsd-12-stable/contrib/sendmail/libsm/
Dstdio.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-12-stable/contrib/binutils/bfd/
Dsysdep.h94 #ifndef O_WRONLY
95 #define O_WRONLY 1 macro
101 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
/freebsd-12-stable/tests/sys/audit/
Dopen.c166 OPEN_AT_TC_DEFINE(write, "write", O_WRONLY, "fw")
167 OPEN_AT_TC_DEFINE(write_creat, "write,creat", O_WRONLY | O_CREAT, "fw")
168 OPEN_AT_TC_DEFINE(write_trunc, "write,trunc", O_WRONLY | O_TRUNC, "fw")
169 OPEN_AT_TC_DEFINE(write_creat_trunc, "write,creat,trunc", O_WRONLY | O_CREAT
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
Dt_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()
315 fd2 = open("/dev/null", O_WRONLY, O_CLOEXEC); in ATF_TC_BODY()
318 fd3 = open("/dev/null", O_WRONLY); in ATF_TC_BODY()
/freebsd-12-stable/tools/regression/security/open_to_operation/
Dopen_to_operation.c120 static const int file_modes[] = { O_RDONLY, O_WRONLY, O_RDWR,
121 O_RDONLY | O_TRUNC, O_WRONLY | O_TRUNC, O_RDWR | O_TRUNC };
510 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate()
525 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate()
541 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate()
554 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate()
568 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate()
576 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate()
792 if ((mode & O_ACCMODE) == O_WRONLY || in check_write()
798 if (!((mode & O_ACCMODE) == O_WRONLY || in check_write()
[all …]
/freebsd-12-stable/lib/libc/stdio/
Dflags.c68 m = O_WRONLY; in __sflags()
74 m = O_WRONLY; in __sflags()
/freebsd-12-stable/tests/sys/fifo/
Dfifo_kqueue.c56 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY()
157 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY()
236 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY()
290 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY()
343 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY()
400 O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0); in ATF_TC_BODY()
/freebsd-12-stable/bin/sh/
Dredir.c197 if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0) in openredirect()
200 if ((f = open(fname, O_WRONLY, 0666)) < 0) in openredirect()
215 if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0) in openredirect()
220 if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0) in openredirect()
/freebsd-12-stable/crypto/openssh/openbsd-compat/
Dbsd-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-12-stable/sys/i386/ibcs2/
Dibcs2_fcntl.c66 if (flags & IBCS2_O_WRONLY) r |= O_WRONLY;
144 if (flags & IBCS2_O_WRONLY) r |= O_WRONLY;
165 if (flags & O_WRONLY) r |= IBCS2_O_WRONLY;
236 O_WRONLY | O_CREAT | O_TRUNC, uap->mode);
/freebsd-12-stable/contrib/file/src/
Dseccomp.c259 SCMP_CMP(1, SCMP_CMP_MASKED_EQ, O_WRONLY | O_RDWR, 0)) == -1) in enable_sandbox_full()
263 SCMP_CMP(1, SCMP_CMP_MASKED_EQ, O_WRONLY, O_WRONLY)) == -1) in enable_sandbox_full()

12345678910>>...15