O_WRONLY
case O_WRONLY:
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
if ((fd2 = hc_open(&DstHost, path, O_WRONLY|O_CREAT|O_EXCL, 0600)) < 0) {
fd2 = hc_open(&DstHost, path, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600);
if ((flags & (O_WRONLY | O_RDWR)) == 0 && hc->version >= 4) {
if (flags & (O_WRONLY | O_RDWR | O_CREAT | O_TRUNC)) {
out.fd = open(out.name, O_WRONLY | OFLAGS, DEFFILEMODE);
open(to, O_CREAT | O_EXCL | O_TRUNC | O_WRONLY, 0)) < 0) {
#define AR_MODE (O_WRONLY | O_CREAT | O_TRUNC) /* mode for archive */
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC,
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL,
if ((fd = open(file, O_WRONLY, 0)) == -1)
if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0)
if ((f = open(fname, O_WRONLY, 0666)) < 0)
if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0)
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0644)) == -1)
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 ((ofd = open(np, O_WRONLY|O_CREAT, mode)) == -1) {
local_fd = open(local_path, O_WRONLY | O_CREAT |
flags = O_WRONLY;
if ((wfd = open(wfile, O_WRONLY|O_CREAT|O_TRUNC,
if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)) == -1)
if ((fd = open(nstatefile, O_CREAT|O_WRONLY|O_EXCL, 0600)) == -1) {
fd = open(_PATH_TTY, O_WRONLY);
if ((tty = open(_PATH_TTY, O_WRONLY)) >= 0) {
if ((fd = open(fname, O_WRONLY | O_TRUNC | O_CREAT, 0660)) == -1)
spkr = open(snddev, O_WRONLY, 0);
if ((line = open(device, O_WRONLY | O_NONBLOCK)) == -1) {
case O_WRONLY:
if ((flags & O_ACCMODE) == O_WRONLY) {
O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
return(_open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
if ((flags & O_ACCMODE) == O_WRONLY) {
(fd = _open(_PATH_CONSOLE, O_WRONLY|O_NONBLOCK|O_CLOEXEC, 0)) >= 0) {
fd = _open(file, O_WRONLY|O_APPEND|O_SHLOCK|O_CLOEXEC);
if ((fd = _open(file, O_CREAT|O_WRONLY|O_EXLOCK|O_CLOEXEC, 0644)) == -1)
fd = _open(outname, O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0666);
log = _open("gmon.log", O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0664);
m = O_WRONLY;
m = O_WRONLY;
oflag = O_WRONLY;
if (io->cconn == NULL || io->dconn == NULL || io->dir == O_WRONLY) {
nvmm_fd = open("/dev/nvmm", O_WRONLY | O_CLOEXEC);
int ret, oflags = O_WRONLY;
int ret, oflags = O_WRONLY;
int ret, oflags = O_WRONLY;
fd = open(path, O_WRONLY);
if ((fd = open(dev, O_WRONLY)) < 0) {
if ((fd = open(dev, O_WRONLY)) < 0) {
if ((fd = open(file, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR)) < 0) {
O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NONBLOCK, mode);
if ((tmpfd = open(lcktmpname, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC,
O_WRONLY | O_CREAT | O_EXCL, S_IWUSR | S_IRUSR)) < 0)
mbox = open_locked(fn, O_WRONLY|O_APPEND);
fd = open(flushfn, O_CREAT|O_WRONLY|O_TRUNC, 0660);
statfd = open(thishost->statfile, O_WRONLY|O_APPEND);
statfd = open(_PATH_FTPDSTATFILE, O_WRONLY|O_APPEND);
fd = open(filename, mode == RRQ ? O_RDONLY : O_WRONLY|O_TRUNC);
pipeout ? 1 : open(tape, O_WRONLY|O_CREAT, 0666))) < 0)
open(tape, O_WRONLY|O_CREAT, 0666))) < 0)
if (nflag || (fswritefd = open(dev, O_WRONLY)) < 0) {
fso = open(device, O_WRONLY);
fso = open(special, O_WRONLY);
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC,
s = open(_PATH_DEVNULL, O_WRONLY, 0);
fdinfo = open(buf, O_WRONLY | O_CREAT | O_TRUNC, 0600);
if ((logfd = open(_PATH_NOLOGIN, O_WRONLY|O_CREAT|O_TRUNC,
cmd->logfd = open(cmd->logfile, O_WRONLY|O_CREAT|O_APPEND, 0640);
fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0640);
if ((fdo = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0666)) == -1)
if (mode == O_WRONLY)
if (OFLAGS(flags) & O_WRONLY) {
if (OFLAGS(flags) & O_WRONLY) {
fp->f_flag = O_CREAT|O_WRONLY|O_NOFOLLOW;
error = fp_open(buf, O_WRONLY|O_CREAT|O_TRUNC|O_NOFOLLOW, 0600, &fp);
if ((oflag & O_ACCMODE) == (O_WRONLY | O_RDWR)) {
if (!oclo_dup3("dup3(): O_CLOFORK|O_WRONLY", O_CLOFORK | O_WRONLY)) {
if (!oclo_pipe2("pipe2(): O_CLOFORK|O_WRONLY", O_CLOFORK | O_WRONLY)) {
fd = open_path(&f, O_WRONLY);
fd = open_path(&f, O_WRONLY);
fd = open_path(&f, O_WRONLY);
fd = open_path(&f, O_WRONLY);
O_CREAT | O_TRUNC | O_WRONLY | O_EXCL, 0644)) != -1)
O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1) {
int fh = open(tmp_file, O_CREAT | O_TRUNC | O_WRONLY, 0666);
fd = open(p->fname, O_WRONLY | O_CREAT, 0644);
fd = open(KEY_FILE, O_WRONLY | O_CREAT | 0644);
weplog.fd = open(WEP_FILE, O_WRONLY | O_APPEND);
weplog.fd = open(WEP_FILE, O_WRONLY | O_CREAT,
fd = open(PRGA_FILE, O_WRONLY | O_CREAT,
fd = open(path, O_WRONLY | O_CREAT, 0644);
if ((lockdes = open(LFILE, O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR)) < 0)
if ((fdes = creat(atfile, O_WRONLY)) == -1)
fd = open(ROOTKEY, O_WRONLY|O_TRUNC|O_CREAT, 0);
if ((ofd = open(catfile, O_WRONLY | O_TRUNC | O_CREAT, 0666)) < 0)
out = open(outfile, O_WRONLY | O_CREAT | O_EXCL, 0600);
zfd = open(outfile, O_WRONLY|O_CREAT|O_EXCL, 0600);
if ((fd = open(tracefile, O_CREAT | O_WRONLY, DEFFILEMODE)) < 0)
if ((fd = open(tracefile, O_CREAT | O_EXCL | O_WRONLY,
if ((i = open(Tflag, O_CREAT | O_TRUNC | O_WRONLY,
close(open(mbox, O_CREAT | O_TRUNC | O_WRONLY, 0600));
close(open(mailname, O_CREAT | O_TRUNC | O_WRONLY, 0600));
if ((tifd = open(TMPINNAME, O_EXCL | O_CREAT | O_WRONLY, 0666)) < 0)
tofd = open(to, O_CREAT|O_TRUNC|O_WRONLY, 0666);
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)
op == COPY ? O_WRONLY : O_RDWR, DEFFILEMODE)) < 0)
flags = O_WRONLY|O_CREAT|O_APPEND;
flags = O_WRONLY|O_CREAT|O_TRUNC;
O_WRONLY | O_CREAT, DEFFILEMODE);
oflags = O_WRONLY;
oflags = O_WRONLY | O_CREAT;
fd = open(buf, O_WRONLY);
fp = open(pidfile, O_WRONLY|O_CREAT, S_IRUSR|S_IRGRP|S_IROTH);
flags = O_WRONLY | O_CREAT | O_EXCL;
if ((fd = open(device, O_WRONLY|O_NONBLOCK, 0)) < 0) {
fd = open(fname, O_WRONLY | flags, 0666);
fd = open(dev, op == OP_READ ? O_RDONLY : O_WRONLY);
LogFD = open(LOG_FILE, O_WRONLY|O_APPEND|O_CREAT, 0600);
outfd = open(outfn, O_CREAT | O_WRONLY | O_APPEND | O_CLOEXEC, 0600);
O_WRONLY |
if ((fd = open(qup->qfname, O_WRONLY)) < 0) {
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
fd = open(ROOTKEY, O_WRONLY|O_TRUNC|O_CREAT, 0);
fd = open(lfname, O_WRONLY|O_CREAT, newbits);
statfile = open(statfname, O_WRONLY|O_APPEND, 0664);
newfd = open(tfname2, O_WRONLY|O_CREAT|O_TRUNC, 0660);
fd = open(statfile, O_WRONLY|O_CREAT|O_EXLOCK, STAT_FILE_MODE);
lfd = open(_PATH_MASTERLOCK, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK,
errfd = open(tempstderr, O_WRONLY|O_TRUNC, 0664);
if (open(pp->log_file, O_WRONLY|O_APPEND, LOG_FILE_MODE) < 0) {
open(_PATH_DEVNULL, O_WRONLY);
pfd = open(pp->lp, pp->rw ? O_RDWR : O_WRONLY);
lfd = open(pp->lock_file, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK,
fd = open(pp->status_file, O_WRONLY|O_CREAT|O_EXLOCK, STAT_FILE_MODE);
n = open(tempstderr, O_WRONLY|O_TRUNC, 0664);
if (open(pp->log_file, O_WRONLY|O_APPEND, 0664) < 0) {
open(_PATH_DEVNULL, O_WRONLY);
fd = open(file, O_CREAT|O_EXCL|O_WRONLY, FILMOD);
f = open(n, O_WRONLY | O_EXCL | O_CREAT, FILMOD);
if ((fd = open(device, O_WRONLY)) < 0)
fd = open(out, O_WRONLY | O_CREAT | O_TRUNC, 0666);
fd = open("/dev/dsp", O_WRONLY);
if ((fd = ID0open(_PATH_RESCONF, O_WRONLY|O_TRUNC, 0644)) != -1) {
int fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600);
O_WRONLY|O_CREAT|O_EXCL, PERM_INSECURE)) < 0)
if ((to_fd = open(to, O_WRONLY|O_CREAT|O_EXCL, mode)) < 0)
whod = open(path, O_WRONLY | O_CREAT, 0644);
if ((fd = open(_PATH_DEVNULL, O_WRONLY)) != 1) {
static int logflags = O_WRONLY|O_APPEND; /* flags used to open log files */
f->f_file = open(ctty, O_WRONLY | O_NONBLOCK, 0);
O_WRONLY | O_CREAT | O_TRUNC,
fd2 = open(path_localtime, O_CREAT | O_EXCL | O_WRONLY,
p->wfd = open(w_arg, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR);
O_WRONLY, S_IRUSR | S_IWUSR);