Searched refs:O_APPEND (Results 1 - 25 of 90) sorted by relevance

1234

/freebsd-10-stable/contrib/pjdfstest/tests/open/
H A D11.t4 desc="open returns EPERM when the named file has its append-only flag set, the file is to be modified, and O_TRUNC is specified or O_APPEND is not specified"
26 expect 0 open ${n0} O_WRONLY,O_APPEND
27 expect 0 open ${n0} O_RDWR,O_APPEND
33 expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC
35 expect EPERM open ${n0} O_WRONLY,O_APPEND,O_TRUNC
37 expect EPERM open ${n0} O_RDWR,O_APPEND,O_TRUNC
45 expect 0 open ${n0} O_WRONLY,O_APPEND
46 expect 0 open ${n0} O_RDWR,O_APPEND
50 expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC
51 expect EPERM open ${n0} O_WRONLY,O_APPEND,O_TRUN
[all...]
/freebsd-10-stable/tools/regression/pjdfstest/tests/open/
H A D11.t4 desc="open returns EPERM when the named file has its append-only flag set, the file is to be modified, and O_TRUNC is specified or O_APPEND is not specified"
26 expect 0 open ${n0} O_WRONLY,O_APPEND
27 expect 0 open ${n0} O_RDWR,O_APPEND
33 expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC
35 expect EPERM open ${n0} O_WRONLY,O_APPEND,O_TRUNC
37 expect EPERM open ${n0} O_RDWR,O_APPEND,O_TRUNC
45 expect 0 open ${n0} O_WRONLY,O_APPEND
46 expect 0 open ${n0} O_RDWR,O_APPEND
50 expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC
51 expect EPERM open ${n0} O_WRONLY,O_APPEND,O_TRUN
[all...]
/freebsd-10-stable/lib/libc/tests/stdio/
H A Dmkostemp_test.c49 #define MISCFLAGS (O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC)
150 ATF_TC_WITHOUT_HEAD(O_APPEND); variable
151 ATF_TC_BODY(O_APPEND, tc)
154 test_one(O_APPEND);
161 test_one(O_APPEND|O_CLOEXEC);
180 ATF_TP_ADD_TC(tp, O_APPEND);
H A Dfopen_test.c60 wantedflags = O_RDWR | (*mode == 'a' ? O_APPEND : 0);
66 wantedflags = O_WRONLY | O_APPEND;
72 else if ((flags & (CORRECT_O_ACCMODE | O_APPEND)) != wantedflags)
/freebsd-10-stable/contrib/sendmail/libsm/
H A Dt-fopen.c27 out = sm_io_fopen("foo", O_WRONLY|O_APPEND|O_CREAT, 0666);
H A Dstdio.c84 oflags = O_APPEND | O_WRONLY | O_CREAT;
87 oflags = O_APPEND | O_RDWR | O_CREAT;
102 if (oflags & O_APPEND)
424 oflags = O_APPEND | O_WRONLY | O_CREAT;
427 oflags = O_APPEND | O_RDWR | O_CREAT;
448 if (oflags & O_APPEND)
/freebsd-10-stable/lib/libc/stdio/
H A Dfdopen.c91 * O_APPEND bit set, assert __SAPP so that __swrite() caller
94 if (fdflags & O_APPEND)
96 else if (oflags & O_APPEND)
H A Dfreopen.c105 if ((oflags ^ dflags) & O_APPEND) {
106 dflags &= ~O_APPEND;
107 dflags |= oflags & O_APPEND;
118 if (!(oflags & O_APPEND))
237 * When opening in append mode, even though we use O_APPEND,
244 if (oflags & O_APPEND) {
H A Dflags.c73 o = O_CREAT | O_APPEND;
H A Dfopen.c87 * When opening in append mode, even though we use O_APPEND,
94 if (oflags & O_APPEND) {
H A Dmktemp.c119 (oflags & ~(O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC |
/freebsd-10-stable/cddl/lib/libdtrace/
H A Dio.d93 inline int O_APPEND = 0x0008;
94 #pragma D binding "1.1" O_APPEND
/freebsd-10-stable/contrib/ntp/lib/isc/win32/include/isc/
H A Dstat.h63 #define O_APPEND _O_APPEND macro
/freebsd-10-stable/usr.bin/nohup/
H A Dnohup.c109 fd = open(p, O_RDWR | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR);
115 fd = open(p = path, O_RDWR | O_CREAT | O_APPEND,
/freebsd-10-stable/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c192 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND,
194 CHECK_RESULT(openat(O_CREATE | O_WRONLY | O_APPEND),
198 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR | O_APPEND, 0600);
199 CHECK_RESULT(openat(O_CREATE | O_RDWR | O_APPEND),
214 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND);
215 CHECK_RESULT(openat(O_FSYNC | O_WRONLY | O_APPEND),
218 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR | O_APPEND);
219 CHECK_RESULT(openat(O_FSYNC | O_RDWR | O_APPEND),
226 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND);
227 CHECK_RESULT(openat(O_SYNC | O_WRONLY | O_APPEND),
[all...]
/freebsd-10-stable/contrib/opie/libopie/
H A Dlogwtmp.c137 if (fd < 0 && (fd = open(_PATH_WTMP, O_WRONLY | O_APPEND, 0)) < 0)
167 if (fdx < 0 && (fdx = open(_PATH_WTMPX, O_WRONLY | O_APPEND, 0)) < 0)
/freebsd-10-stable/usr.sbin/pw/
H A Dpw_log.c58 fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600);
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/
H A Dtst.fds.c85 fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT |
/freebsd-10-stable/crypto/heimdal/appl/ftp/ftpd/
H A Dlogwtmp.c172 fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0);
175 fdx = open(WTMPX_FILE, O_WRONLY|O_APPEND, 0);
/freebsd-10-stable/sys/sys/
H A Dfcntl.h91 #define O_APPEND 0x0008 /* set append mode */ macro
166 #define FAPPEND O_APPEND /* kernel/compat */
/freebsd-10-stable/crypto/heimdal/appl/login/
H A Dutmpx_login.c59 if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
H A Dutmp_login.c160 if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
/freebsd-10-stable/usr.bin/tee/
H A Dtee.c96 if ((fd = open(*argv, append ? O_WRONLY|O_CREAT|O_APPEND :
/freebsd-10-stable/sys/i386/ibcs2/
H A Dibcs2_fcntl.c67 if (flags & IBCS2_O_APPEND) r |= O_APPEND;
145 if (flags & IBCS2_O_APPEND) r |= O_APPEND;
166 if (flags & O_APPEND) r |= IBCS2_O_APPEND;
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/read/
H A Dt_file.c66 fd = open(FILENAME, O_WRONLY|O_APPEND, 0644);

Completed in 197 milliseconds

1234