O_APPEND
if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0)
fcntl(fileno(tracefile), F_SETFL, flags | O_APPEND);
if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0600)) == -1) {
if ((fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0)) < 0) {
if ((fd = open(WTMPX_FILE, O_WRONLY|O_APPEND, 0)) < 0) {
if ((fd = open(_PATH_BTMP, O_WRONLY | O_APPEND)) < 0) {
if ((handle_to_flags(write_handle) & O_APPEND) == 0 &&
flags |= O_APPEND;
if (!(handle_to_flags(handle) & O_APPEND) &&
fd = _open(file, O_WRONLY|O_APPEND|O_SHLOCK|O_CLOEXEC);
if ((oflags & O_APPEND) && !(fdflags & O_APPEND))
o = O_CREAT | O_APPEND;
cookie->cur = (oflags & O_APPEND) ? cookie->eob : cookie->head;
if (oflags & O_APPEND)
if ((oflags & O_APPEND) != 0)
dflags &= ~O_APPEND;
dflags |= oflags & O_APPEND;
if (!(oflags & O_APPEND))
if (oflags & O_APPEND)
if ((oflags ^ dflags) & O_APPEND) {
if ((oflags & ~(O_APPEND | O_DIRECT | O_SHLOCK |
mbox = open_locked(fn, O_WRONLY|O_APPEND);
statfd = open(thishost->statfile, O_WRONLY|O_APPEND);
statfd = open(_PATH_FTPDSTATFILE, O_WRONLY|O_APPEND);
if ((fd = open(wopt, O_RDWR|O_CREAT|O_APPEND, 0666)) < 0) {
cmd->logfd = open(cmd->logfile, O_WRONLY|O_CREAT|O_APPEND, 0640);
fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0640);
if (mode & (O_CREAT | O_APPEND | O_TRUNC))
error = vn_open(&nd, NULL, FWRITE | O_APPEND, 0);
FWRITE | O_APPEND, NULL);
(void) vn_close(savacctp, FWRITE | O_APPEND, NULL);
(void) vn_close(acctp, FWRITE | O_APPEND, NULL);
if (((nflags ^ oflags) & O_APPEND) && (oflags & FAPPENDONLY))
if (fmode & O_APPEND)
((fp->f_flag & O_APPEND) || (flags & O_FAPPEND))) {
#define FAPPEND O_APPEND /* kernel/compat */
((fp->f_flag & O_APPEND) || (flags & O_FAPPEND))) {
(ap->a_mode & (FWRITE | O_APPEND)) == FWRITE)
(mode & (FWRITE | O_APPEND)) == FWRITE) {
weplog.fd = open(WEP_FILE, O_WRONLY | O_APPEND);
fdlog = open(pkg->logfile, O_RDWR|O_CREAT|O_APPEND, 0644);
fd = open(lkpath, O_RDWR | O_CREAT | O_APPEND, 0644);
(void)dlogfd(i, O_RDWR|O_CREAT|O_TRUNC|O_APPEND);
fd = dlogfd(DLOG_ALL, O_RDWR|O_CREAT|O_APPEND);
fd = dlogfd(which, O_RDWR|O_CREAT|O_APPEND);
return(dlogfd(DLOG_ALL, O_RDWR|O_CREAT|O_APPEND));
fd = open(fname, O_RDWR|O_EXCL|O_CREAT|O_APPEND);
fd = open(p = path, O_RDWR | O_CREAT | O_APPEND,
fd = open(p, O_RDWR | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR);
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, DEFFILEMODE)) == -1)
flags = O_WRONLY|O_CREAT|O_APPEND;
LogFD = open(LOG_FILE, O_WRONLY|O_APPEND|O_CREAT, 0600);
outfd = open(outfn, O_CREAT | O_WRONLY | O_APPEND | O_CLOEXEC, 0600);
O_APPEND |
statfile = open(statfname, O_WRONLY|O_APPEND, 0664);
if (open(pp->log_file, O_WRONLY|O_APPEND, LOG_FILE_MODE) < 0) {
if (open(pp->log_file, O_WRONLY|O_APPEND, 0664) < 0) {
O_RDWR|O_CREAT|O_APPEND|O_NONBLOCK|O_NOFOLLOW,
int fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600);
static int logflags = O_WRONLY|O_APPEND; /* flags used to open log files */