O_APPEND
if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0)
fcntl(fileno(tracefile), F_SETFL, flags | O_APPEND);
fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0);
fdx = open(WTMPX_FILE, O_WRONLY|O_APPEND, 0);
if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
out_fd = open(outfilename, O_WRONLY | O_APPEND | O_CREAT, 0666);
if ((i = open(wtmpf, O_WRONLY|O_APPEND)) >= 0) {
int f = open(wtmpf, O_WRONLY|O_APPEND);
f = open(wtmpf, O_WRONLY|O_APPEND);
if ((fd = open(wtmpf, O_WRONLY | O_APPEND)) >= 0) {
fd = open(fn, O_WRONLY|O_CREAT|O_APPEND, 0600);
ret = fcc_open(context, id, &fd, O_WRONLY | O_APPEND | O_BINARY | O_CLOEXEC, 0);
O_TRUNC | O_APPEND, 0666);
fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_APPEND, 0644);
fd = open(fname, O_WRONLY|O_APPEND, 0644);
append = (cp[4] == ':') ? O_APPEND : 0;
flags = writable ? (O_RDWR | O_APPEND) : O_RDONLY;
*fd = open(filename, O_WRONLY|O_CREAT|O_APPEND, 0600);
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) &&
fdno = open(keylogfile, O_WRONLY | O_CREAT | O_APPEND, 0600);
fd = _open(_PATH_UTX_LOG, O_CREAT|O_WRONLY|O_APPEND|O_CLOEXEC, 0644);
if (fdflags & O_APPEND)
else if (oflags & O_APPEND)
o = O_CREAT | O_APPEND;
if (oflags & O_APPEND) {
if ((oflags & O_APPEND) != 0)
if ((oflags ^ dflags) & O_APPEND) {
dflags &= ~O_APPEND;
dflags |= oflags & O_APPEND;
if (!(oflags & O_APPEND))
if (oflags & O_APPEND) {
(oflags & ~(O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC |
wantedflags = O_RDWR | (*mode == 'a' ? O_APPEND : 0);
wantedflags = O_WRONLY | O_APPEND;
else if ((flags & (CORRECT_O_ACCMODE | O_APPEND)) != wantedflags)
ATF_TC_WITHOUT_HEAD(O_APPEND);
ATF_TC_BODY(O_APPEND, tc)
test_one(O_APPEND);
test_one(O_APPEND|O_CLOEXEC);
ATF_TP_ADD_TC(tp, O_APPEND);
#define MISCFLAGS (O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC)
{ O_APPEND, PS_FST_FFLAG_APPEND },
fd = open(_PATH_INITLOG, O_WRONLY | O_APPEND | O_CREAT, 0644);
fd = open(fname, O_WRONLY|O_APPEND);
bsd_flags |= O_APPEND;
if (result & O_APPEND)
arg |= O_APPEND;
(ap->a_mode & (FWRITE | O_APPEND)) == FWRITE)
if (uflags & O_APPEND)
if (node->tn_flags & APPEND && (mode & (FWRITE | O_APPEND)) == FWRITE)
flags = FWRITE | O_APPEND;
if (!(flags & (O_APPEND | O_TRUNC)))
if (vp->v_type == VREG && (fp->f_flag & O_APPEND) != 0)
} else if ((fp->f_flag & O_APPEND) != 0 ||
if ((fmode & O_APPEND) && (fmode & FWRITE))
#define AUDIT_OPEN_FLAGS (FWRITE | O_APPEND)
#define AUDIT_CLOSE_FLAGS (FWRITE | O_APPEND)
#define FAPPEND O_APPEND /* kernel/compat */
(ap->a_mode & (FWRITE | O_APPEND)) == FWRITE)
file = openat(cap_dir, filename, O_WRONLY|O_APPEND);
rc = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND, 0600);
rc = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR | O_APPEND, 0600);
rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND);
rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR | O_APPEND);
rc = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND);
rc = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDWR | O_APPEND);
oflag = (O_RDWR|O_APPEND);
fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
*fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777);
fd = openat(pathfd, "", O_RDWR | O_EMPTY_PATH | O_APPEND);
fcntl(pathfd, F_SETFL, flags | O_APPEND));
test_ok(O_WRONLY | O_APPEND, O_WRONLY | O_APPEND);
expect_release(ino, getpid(), O_RDWR | O_APPEND, 0);
fd = open(FULLPATH, O_RDWR | O_APPEND);
fd = open(FULLPATH, O_RDWR | O_APPEND);
fd = open(FULLPATH, O_RDWR | O_APPEND);
fd = open(FULLPATH, O_WRONLY | O_APPEND);
ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND,
CHECK_RESULT(openat(O_CREATE | O_WRONLY | O_APPEND),
ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR | O_APPEND, 0600);
CHECK_RESULT(openat(O_CREATE | O_RDWR | O_APPEND),
ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND);
CHECK_RESULT(openat(O_FSYNC | O_WRONLY | O_APPEND),
ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR | O_APPEND);
CHECK_RESULT(openat(O_FSYNC | O_RDWR | O_APPEND),
ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND);
CHECK_RESULT(openat(O_SYNC | O_WRONLY | O_APPEND),
ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDWR | O_APPEND);
CHECK_RESULT(openat(O_SYNC | O_RDWR | O_APPEND),
weplog.fd = open(WEP_FILE, O_WRONLY | 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)
oflags |= O_APPEND;
LogFD = open(LOG_FILE, O_WRONLY|O_APPEND|O_CREAT, 0600);
return open(outfn, O_CREAT | O_WRONLY | O_APPEND | O_CLOEXEC, outfm);
open(conslog, O_WRONLY | O_CREAT | O_APPEND, DEFFILEMODE);
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_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC,
fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600);
static int logflags = O_WRONLY|O_APPEND; /* flags used to open log files */