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

1234

/freebsd-9.3-release/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-9.3-release/tools/regression/lib/libc/stdio/
H A Dtest-fopen.c68 wantedflags = O_RDWR | (*mode == 'a' ? O_APPEND : 0);
74 wantedflags = O_WRONLY | O_APPEND;
79 else if ((flags & (CORRECT_O_ACCMODE | O_APPEND)) == wantedflags)
/freebsd-9.3-release/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-9.3-release/lib/libc/stdio/
H A Dfdopen.c92 * O_APPEND bit set, assert __SAPP so that __swrite() caller
95 if ((oflags & O_APPEND) && !(fdflags & O_APPEND))
H A Dfreopen.c106 if ((oflags ^ dflags) & O_APPEND) {
107 dflags &= ~O_APPEND;
108 dflags |= oflags & O_APPEND;
119 if (!(oflags & O_APPEND))
229 * When opening in append mode, even though we use O_APPEND,
236 if (oflags & O_APPEND)
H A Dflags.c75 o = O_CREAT | O_APPEND;
H A Dfopen.c89 * When opening in append mode, even though we use O_APPEND,
96 if (oflags & O_APPEND)
/freebsd-9.3-release/contrib/lukemftpd/src/
H A Dlogwtmp.c77 if ((fd = open(wf, O_WRONLY|O_APPEND, 0)) == -1)
92 if (fd < 0 && (fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) < 0)
113 if ((fd = open(wf, O_WRONLY|O_APPEND, 0)) == -1)
/freebsd-9.3-release/cddl/lib/libdtrace/
H A Dio.d93 inline int O_APPEND = 0x0008;
94 #pragma D binding "1.1" O_APPEND
/freebsd-9.3-release/usr.sbin/pw/
H A Dpw_log.c43 int fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600);
/freebsd-9.3-release/contrib/ntp/lib/isc/win32/include/isc/
H A Dstat.h63 #define O_APPEND _O_APPEND macro
/freebsd-9.3-release/crypto/heimdal/appl/ftp/ftpd/
H A Dlogwtmp.c126 fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0);
128 fdx = open(WTMPX_FILE, O_WRONLY|O_APPEND, 0);
/freebsd-9.3-release/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-9.3-release/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-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/
H A Dtst.fds.c83 fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT | O_DSYNC |
/freebsd-9.3-release/sys/sys/
H A Dfcntl.h91 #define O_APPEND 0x0008 /* set append mode */ macro
167 #define FAPPEND O_APPEND /* kernel/compat */
/freebsd-9.3-release/crypto/heimdal/appl/login/
H A Dutmpx_login.c59 if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
H A Dutmp_login.c157 if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
/freebsd-9.3-release/usr.bin/tee/
H A Dtee.c96 if ((fd = open(*argv, append ? O_WRONLY|O_CREAT|O_APPEND :
/freebsd-9.3-release/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-9.3-release/contrib/cvs/src/
H A Drun.c163 mode_out |= ((flags & RUN_STDOUT_APPEND) ? O_APPEND : O_TRUNC);
164 mode_err |= ((flags & RUN_STDERR_APPEND) ? O_APPEND : O_TRUNC);
/freebsd-9.3-release/contrib/gdb/gdb/
H A Dinflow.c476 if (flags & O_APPEND)
477 printf_filtered (" | O_APPEND");
478 flags &= ~O_APPEND;
/freebsd-9.3-release/contrib/less/
H A Ddefines.ds396 #define O_APPEND _O_APPEND
H A Dless.h246 #if defined(O_WRONLY) && defined(O_APPEND)
247 #define OPEN_APPEND (O_APPEND|O_WRONLY)

Completed in 301 milliseconds

1234