Symbol: O_WRONLY
bin/cp/utils.c
158
to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
bin/cp/utils.c
160
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
bin/cp/utils.c
169
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
bin/csh/csh.c
903
if ((fp = open(short2str(hfile), O_WRONLY | O_CREAT | O_TRUNC,
bin/csh/sem.c
580
(fd = open(tmp, O_WRONLY | O_APPEND)) >= 0);
bin/csh/sem.c
582
(fd = open(tmp, O_WRONLY)) >= 0)
bin/csh/sem.c
593
if ((fd = open(tmp, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
bin/dd/args.c
464
{ "wronly", O_WRONLY, C_OFLAG },
bin/dd/dd.c
228
out.fd = ddop_open(out, out.name, O_WRONLY | OFLAGS,
bin/ksh/exec.c
1144
flags = O_WRONLY | O_APPEND | O_CREAT;
bin/ksh/exec.c
1148
flags = O_WRONLY | O_CREAT | O_TRUNC;
bin/ksh/history.c
756
if ((fd = open(hname, O_WRONLY | O_CREAT | O_TRUNC | O_EXLOCK, 0600)) != -1) {
bin/ksh/io.c
158
O_WRONLY|O_APPEND|O_CREAT, 0600,
bin/ksh/io.c
329
|| ((mode & W_OK) && fl != O_WRONLY)))
bin/ksh/io.c
332
*emsgp = (fl == O_WRONLY) ?
bin/ksh/sh.h
28
# define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
bin/ksh/shf.c
150
case O_WRONLY: sflags |= SHF_WR; break;
bin/ksh/shf.c
72
: ((oflags & O_ACCMODE) == O_WRONLY ? SHF_WR
bin/ksh/shf.c
97
case O_WRONLY: sflags |= SHF_WR; break;
bin/mt/mt.c
166
flags = comp->c_ronly ? O_RDONLY : O_WRONLY;
bin/mv/mv.c
287
open(to, O_CREAT | O_TRUNC | O_WRONLY, sbp->st_mode)) < 0) {
bin/pax/ar_io.c
80
#define AR_MODE (O_WRONLY | O_CREAT | O_TRUNC) /* mode for archive */
bin/rcp/rcp.c
650
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
bin/sh/histedit.c
473
n = open_history_file(name, O_WRONLY|O_CREAT|O_APPEND|O_CLOEXEC);
bin/sh/histedit.c
540
fd = open_history_file(file, O_WRONLY|O_CREAT|O_TRUNC);
bin/sh/redir.c
411
if ((f = open(fname, O_WRONLY)) == -1) {
bin/sh/redir.c
412
if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL,
bin/sh/redir.c
432
if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
bin/sh/redir.c
438
if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0)
bin/sh/redir.c
937
#ifndef O_WRONLY
bin/sh/redir.c
976
#define IGNFLAGS (O_ACCMODE|O_RDONLY|O_WRONLY|O_RDWR|O_SHLOCK|O_EXLOCK| \
bin/sh/show.c
148
fd = open(s, O_WRONLY|O_APPEND|O_CREAT, 0666);
common/dist/zlib/examples/gun.c
572
outfile = open(outname, O_CREAT | O_TRUNC | O_WRONLY, 0666);
common/dist/zlib/examples/gzlog.c
1016
fd = open(log->path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
common/dist/zlib/examples/gzlog.c
955
fd = open(log->path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
common/dist/zlib/examples/gzlog.c
965
fd = open(log->path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
common/dist/zlib/gzlib.c
238
(O_WRONLY | O_CREAT |
crypto/dist/ipsec-tools/src/racoon/dump.c
97
fd = open(path, O_WRONLY|O_CREAT|O_APPEND, 0600);
crypto/dist/ipsec-tools/src/racoon/plainrsa-gen.c
256
fd = open(fname, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW, S_IRUSR | S_IWUSR);
distrib/utils/ssh/ssh.c
486
child_newfd(1, ofile, O_WRONLY|O_CREAT);
distrib/utils/ssh/ssh.c
488
child_newfd(2, efile, O_WRONLY|O_CREAT);
lib/libc/compat-43/creat.c
51
return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
lib/libc/db/btree/bt_open.c
201
case O_WRONLY:
lib/libc/db/hash/hash.c
107
if ((flags & O_ACCMODE) == O_WRONLY) {
lib/libc/db/hash/ndbm.c
76
if ((flags & O_ACCMODE) == O_WRONLY) {
lib/libc/db/hash/ndbm.c
77
flags &= ~O_WRONLY;
lib/libc/gen/utmpx.c
346
fd = open(file, O_WRONLY|O_APPEND|O_SHLOCK|O_CLOEXEC);
lib/libc/gen/utmpx.c
349
if ((fd = open(file, O_CREAT|O_WRONLY|O_EXLOCK|O_CLOEXEC, 0644)) == -1)
lib/libc/gen/xsyslog.c
355
O_WRONLY | O_NONBLOCK | O_CLOEXEC, 0)) >= 0) {
lib/libc/gmon/gmon.c
445
#define OPEN_FLAGS (O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC)
lib/libc/stdio/flags.c
74
m = O_WRONLY;
lib/libc/stdio/flags.c
80
m = O_WRONLY;
lib/libc/stdio/vdprintf.c
86
if (tmp != O_RDWR && tmp != O_WRONLY) {
lib/libc/sys/adjtime.c
79
__clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0);
lib/libc/sys/clock_settime.c
81
__clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0);
lib/libc/sys/ntp_adjtime.c
89
__clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0);
lib/libc/sys/settimeofday.c
80
__clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0);
lib/libc/time/zic.c
1651
int oflags = O_WRONLY | O_BINARY | O_CREAT | O_EXCL;
lib/libedit/history.c
893
if ((i = open(fname, O_WRONLY|O_CREAT|O_TRUNC,
lib/libnvmm/libnvmm.c
186
nvmm_fd = open("/dev/nvmm", O_WRONLY | O_CLOEXEC);
lib/libossaudio/oss4_mixer.c
109
if ((newfd = open(tmpai->devnode, O_WRONLY)) < 0) {
lib/libossaudio/oss4_mixer.c
600
(tmpfd = open(devname, O_WRONLY)) != -1) {
lib/libpuffs/null.c
103
fd = open(path, O_WRONLY);
lib/libpuffs/null.c
113
fd = open(path, O_WRONLY);
lib/librefuse/refuse.c
601
fi.flags = O_WRONLY | O_CREAT | O_EXCL;
lib/librmt/rmtlib.c
835
return rmtopen(path, O_WRONLY | O_CREAT, mode);
lib/librmt/rmtlib.c
837
return open(path, O_CREAT | O_TRUNC | O_WRONLY, mode);
lib/librumpuser/rumpuser_daemonize.c
63
if ((fd = open(path, O_WRONLY|O_CREAT)) == -1)
lib/librumpuser/rumpuser_daemonize.c
69
if ((fd = open(path, O_WRONLY|O_CREAT)) == -1)
lib/librumpuser/rumpuser_file.c
196
flags = O_WRONLY;
lib/libutil/compat/compat_login.c
69
if (tty > 0 && (fd = open(_PATH_UTMP, O_WRONLY|O_CREAT, 0644)) >= 0) {
lib/libutil/compat/compat_login.c
74
if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
lib/libutil/login.c
61
if (tty > 0 && (fd = open(_PATH_UTMP, O_WRONLY|O_CREAT, 0644)) >= 0) {
lib/libutil/login.c
66
if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
lib/libutil/logwtmp.c
64
if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) < 0)
lib/libutil/passwd.c
124
fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, 0600);
lib/libutil/passwd.c
127
fd = open(filename, O_WRONLY|O_CREAT|O_EXCL,
lib/libutil/pidlock.c
88
if ((f = open(tempfile, O_WRONLY|O_CREAT|O_TRUNC, 0600)) == -1)
lib/libutil/ttymsg.c
111
if ((fd = open(device, O_WRONLY|O_NONBLOCK, 0)) < 0) {
libexec/atrun/atrun.c
273
O_WRONLY | O_CREAT | O_EXCL, S_IWUSR | S_IRUSR)) == -1)
libexec/ftpd/ftpd.c
768
xferlogfd = open(xferlogname, O_WRONLY | O_APPEND | O_CREAT,
libexec/ftpd/logwtmp.c
113
if ((fdx = open(wf, O_WRONLY|O_APPEND, 0)) == -1)
libexec/ftpd/logwtmp.c
77
if ((fd = open(wf, O_WRONLY|O_APPEND, 0)) == -1)
libexec/mail.local/mail.local.c
223
if((lfd = open(lpath, O_CREAT|O_WRONLY|O_EXCL,
libexec/mail.local/mail.local.c
241
if ((mbfd = open(path, O_APPEND|O_WRONLY|O_EXLOCK|O_NOFOLLOW,
libexec/mail.local/mail.local.c
245
(mbfd = open(path, O_APPEND|O_CREAT|O_WRONLY|O_EXLOCK|O_EXCL,
libexec/makewhatis/makewhatis.c
378
outfd = open(whatisdb_new, O_WRONLY|O_CREAT|O_EXCL,
libexec/makewhatis/makewhatis.c
784
((devnull = open(_PATH_DEVNULL, O_WRONLY, 0)) < 0))
libexec/tftpd/tftpd.c
895
fd = open(filename, mode == RRQ ? O_RDONLY : O_WRONLY | trunc | create,
regress/sys/kern/kqueue/vnode/write.c
51
fd = open(argv[1], O_WRONLY);
regress/sys/kern/unfdpass/unfdpass.c
150
if ((fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) == -1)
sbin/dump/snapshot.c
122
fd = open(fss.fss_bstore, O_CREAT|O_EXCL|O_WRONLY, 0600);
sbin/dump/tape.c
672
pipeout ? 1 : open(tape, O_WRONLY|O_CREAT, 0666))) < 0)
sbin/dump/tape.c
675
open(tape, O_WRONLY|O_CREAT, 0666))) < 0)
sbin/fsck_ext2fs/setup.c
136
if (nflag || (fswritefd = open(dev, O_WRONLY)) < 0) {
sbin/fsck_ffs/setup.c
118
if (nflag || (fswritefd = open(dev, O_WRONLY)) < 0) {
sbin/fsdb/fsdb.c
1759
wrinfo.fd = open(argv[1], O_WRONLY | O_TRUNC | O_CREAT, 0644);
sbin/fsdb/fsdb.c
572
wrinfo.fd = open(argv[1], O_WRONLY | O_TRUNC | O_CREAT, 0644);
sbin/init/init.c
407
fd = open(_PATH_CONSOLE, O_WRONLY);
sbin/newfs/newfs.c
518
fso = open(special, O_WRONLY, 0);
sbin/newfs_ext2fs/newfs_ext2fs.c
260
fso = open(special, O_WRONLY, 0);
sbin/nvmectl/wdc.c
125
fd2 = open(tmpl, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sbin/restore/dirs.c
723
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
sbin/restore/tape.c
792
if (!Nflag && (ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC,
sbin/rndctl/rndctl.c
267
if ((fd_seed = open(tmp, O_CREAT|O_TRUNC|O_WRONLY, 0600)) == -1)
sbin/rndctl/rndctl.c
309
if ((fd_new = open(tmp, O_CREAT|O_TRUNC|O_WRONLY, 0600)) == -1) {
sbin/rndctl/rndctl.c
388
if ((fd_random = open(_PATH_URANDOM, O_WRONLY)) == -1)
sbin/route/route.c
210
sock = prog_open("/dev/null", O_WRONLY, 0);
sbin/savecore/savecore.c
929
fd = open(file, O_WRONLY | O_CREAT | O_TRUNC, mode);
sbin/shutdown/shutdown.c
558
if ((fastfd = open(_PATH_FASTBOOT, O_WRONLY|O_CREAT|O_TRUNC,
sbin/shutdown/shutdown.c
580
if ((logfd = open(_PATH_NOLOGIN, O_WRONLY|O_CREAT|O_TRUNC,
sbin/wsconsctl/wsconsctl.c
163
fd = open(file, O_WRONLY);
share/examples/refuse/fanoutfs/fanoutfs.c
174
if ((fdto = open(to, O_WRONLY | O_CREAT | O_EXCL, st.st_mode & 07777)) < 0) {
share/examples/refuse/fanoutfs/fanoutfs.c
319
if ((fd = open(name, O_WRONLY, 0666)) < 0) {
share/examples/refuse/ian/libfetch/ftp.c
1139
oflag = O_WRONLY;
share/examples/refuse/ian/libfetch/ftp.c
505
if (io->cconn == NULL || io->dconn == NULL || io->dir == O_WRONLY) {
share/examples/refuse/icfs/icfs.c
202
if ((fd = open(name, O_WRONLY, 0666)) < 0) {
sys/arch/alpha/stand/mkbootimage/mkbootimage.c
155
} else if ((outfd = open(outfile, O_WRONLY|O_CREAT, 0666)) == -1)
sys/arch/alpha/stand/setnetbootinfo/setnetbootinfo.c
232
if ((fd = open(outfilename, O_WRONLY | O_CREAT, 0666)) == -1)
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
460
ofd = open(argv[1], O_CREAT|O_WRONLY, 0644);
sys/arch/atari/stand/installboot/installboot.c
267
if ((fd = open(devnm, O_WRONLY)) < 0)
sys/arch/atari/stand/installboot/installboot.c
338
if ((fd = open(devnm, O_WRONLY)) < 0)
sys/arch/hp300/stand/mkboot/mkboot.c
152
if ((to = open(argv[0], O_WRONLY | O_TRUNC | O_CREAT, 0644)) == -1)
sys/arch/macppc/stand/mkboothfs/mkboothfs.c
84
if ((ofd = open(boothfs, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1)
sys/arch/mipsco/stand/installboot/installboot.c
220
if ((fd = open(disk, O_WRONLY)) == -1)
sys/arch/mipsco/stand/installboot/installboot.c
271
if ((vfd = open(disk, O_WRONLY)) == -1)
sys/arch/mvme68k/stand/wrtvid/wrtvid.c
168
if ((fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC, 0644)) < 0) {
sys/arch/sgimips/stand/undist/undist.c
880
outfd = createpath(dst, O_WRONLY | O_CREAT, ent->mode, 0755);
sys/arch/x68k/stand/installboot/installboot.c
235
fd = open(target, O_WRONLY);
sys/arch/x68k/stand/newdisk/newdisk.c
185
fd = open(dev, O_WRONLY);
sys/compat/common/vfs_syscalls_43.c
311
SCARG(&nuap, flags) = O_WRONLY | O_CREAT | O_TRUNC;
sys/compat/linux/common/linux_file.c
102
res |= cvtto_bsd_mask(lflags, LINUX_O_WRONLY, O_WRONLY);
sys/compat/linux/common/linux_file.c
128
res |= cvtto_linux_mask(bflags, O_WRONLY, LINUX_O_WRONLY);
sys/compat/linux/common/linux_file.c
187
SCARG(&oa, flags) = O_CREAT | O_TRUNC | O_WRONLY;
sys/compat/linux32/common/linux32_unistd.c
533
SCARG(&ua, flags) = O_CREAT | O_TRUNC | O_WRONLY;
sys/compat/netbsd32/netbsd32_compat_43.c
113
SCARG(&ua, flags) = O_WRONLY | O_CREAT | O_TRUNC;
sys/compat/sunos/sunos_misc.c
142
SCARG(&ouap, flags) = O_WRONLY | O_CREAT | O_TRUNC;
sys/compat/sunos32/sunos32_misc.c
219
SCARG(&ua, flags) = O_WRONLY | O_CREAT | O_TRUNC;
sys/compat/ultrix/ultrix_pathname.c
87
SCARG(&ap, flags) = O_WRONLY | O_CREAT | O_TRUNC;
sys/dev/microcode/ral/build.c
38
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/rum/build.c
38
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/run/build.c
38
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/zyd/build.c
37
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/nvmm/nvmm.c
1146
if (OFLAGS(flags) & O_WRONLY) {
sys/fs/union/union_subr.c
894
int fmode = FFLAGS(O_WRONLY|O_CREAT|O_TRUNC|O_EXCL);
sys/fs/unionfs/unionfs_subr.c
610
fmode = FFLAGS(O_WRONLY | O_CREAT | O_TRUNC | O_EXCL);
sys/rump/dev/lib/libugenhc/ugenhc.c
803
oflags = O_WRONLY;
sys/sys/timerfd.h
44
#define TFD_TIMER_ABSTIME O_WRONLY
tests/dev/audio/audiotest.c
1268
return O_WRONLY;
tests/dev/audio/audiotest.c
1331
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
1441
DEF(open_mode_WRONLY) { test_open_mode(O_WRONLY); }
tests/dev/audio/audiotest.c
1672
DEF(open_audio_WRONLY) { test_open("audio", O_WRONLY); }
tests/dev/audio/audiotest.c
1675
DEF(open_sound_WRONLY) { test_open("sound", O_WRONLY); }
tests/dev/audio/audiotest.c
1678
DEF(open_audioctl_WRONLY) { test_open("audioctl", O_WRONLY); }
tests/dev/audio/audiotest.c
1896
DEF(open_simul_RDONLY_WRONLY) { test_open_simul(O_RDONLY, O_WRONLY); }
tests/dev/audio/audiotest.c
1898
DEF(open_simul_WRONLY_RDONLY) { test_open_simul(O_WRONLY, O_RDONLY); }
tests/dev/audio/audiotest.c
1899
DEF(open_simul_WRONLY_WRONLY) { test_open_simul(O_WRONLY, O_WRONLY); }
tests/dev/audio/audiotest.c
1900
DEF(open_simul_WRONLY_RDWR) { test_open_simul(O_WRONLY, O_RDWR); }
tests/dev/audio/audiotest.c
1902
DEF(open_simul_RDWR_WRONLY) { test_open_simul(O_RDWR, O_WRONLY); }
tests/dev/audio/audiotest.c
2047
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
2079
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
2183
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
2297
DEF(rdwr_fallback_WRONLY) { test_rdwr_fallback(O_WRONLY, true, false); }
tests/dev/audio/audiotest.c
2418
DEF(rdwr_two_RDONLY_WRONLY) { test_rdwr_two(O_RDONLY, O_WRONLY); }
tests/dev/audio/audiotest.c
2420
DEF(rdwr_two_WRONLY_RDONLY) { test_rdwr_two(O_WRONLY, O_RDONLY); }
tests/dev/audio/audiotest.c
2421
DEF(rdwr_two_WRONLY_WRONLY) { test_rdwr_two(O_WRONLY, O_WRONLY); }
tests/dev/audio/audiotest.c
2422
DEF(rdwr_two_WRONLY_RDWR) { test_rdwr_two(O_WRONLY, O_RDWR); }
tests/dev/audio/audiotest.c
2424
DEF(rdwr_two_RDWR_WRONLY) { test_rdwr_two(O_RDWR, O_WRONLY); }
tests/dev/audio/audiotest.c
2454
fd0 = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
2505
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
2538
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
2684
DEF(mmap_mode_WRONLY_NONE) { test_mmap_mode(O_WRONLY, PROT_NONE); }
tests/dev/audio/audiotest.c
2685
DEF(mmap_mode_WRONLY_READ) { test_mmap_mode(O_WRONLY, PROT_READ); }
tests/dev/audio/audiotest.c
2686
DEF(mmap_mode_WRONLY_WRITE) { test_mmap_mode(O_WRONLY, PROT_WRITE); }
tests/dev/audio/audiotest.c
2687
DEF(mmap_mode_WRONLY_READWRITE) { test_mmap_mode(O_WRONLY, PROT_READWRITE); }
tests/dev/audio/audiotest.c
2729
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
2815
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
2873
fd0 = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
2880
fd1 = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
2975
DEF(poll_mode_WRONLY_IN) { test_poll_mode(O_WRONLY, IN, 0); }
tests/dev/audio/audiotest.c
2976
DEF(poll_mode_WRONLY_OUT) { test_poll_mode(O_WRONLY, OUT, OUT); }
tests/dev/audio/audiotest.c
2977
DEF(poll_mode_WRONLY_INOUT) { test_poll_mode(O_WRONLY, IN|OUT, OUT); }
tests/dev/audio/audiotest.c
3001
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
3031
fd = OPEN(devaudio, O_WRONLY | O_NONBLOCK);
tests/dev/audio/audiotest.c
3084
fd = OPEN(devaudio, O_WRONLY | O_NONBLOCK);
tests/dev/audio/audiotest.c
3152
fd = OPEN(devaudio, O_WRONLY | O_NONBLOCK);
tests/dev/audio/audiotest.c
3278
fd[0] = OPEN(devaudio, O_WRONLY | O_NONBLOCK);
tests/dev/audio/audiotest.c
3280
fd[1] = OPEN(devaudio, O_WRONLY | O_NONBLOCK);
tests/dev/audio/audiotest.c
3489
fd[play] = OPEN(devaudio, O_WRONLY | O_NONBLOCK);
tests/dev/audio/audiotest.c
3607
test_kqueue_mode(O_WRONLY, EVFILT_READ, 0);
tests/dev/audio/audiotest.c
3611
test_kqueue_mode(O_WRONLY, EVFILT_WRITE, 1);
tests/dev/audio/audiotest.c
3637
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
3685
fd = OPEN(devaudio, O_WRONLY | O_NONBLOCK);
tests/dev/audio/audiotest.c
3751
fd = OPEN(devaudio, O_WRONLY | O_NONBLOCK);
tests/dev/audio/audiotest.c
3827
fd = OPEN(devaudio, O_WRONLY | O_NONBLOCK);
tests/dev/audio/audiotest.c
3955
fd[0] = OPEN(devaudio, O_WRONLY | O_NONBLOCK);
tests/dev/audio/audiotest.c
3957
fd[1] = OPEN(devaudio, O_WRONLY | O_NONBLOCK);
tests/dev/audio/audiotest.c
4130
data->fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
4189
fd0 = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
4193
fd1 = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
4202
fd1 = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
4235
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
4343
fd1 = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
4345
fd2 = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
4449
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
4505
if (openmode == O_WRONLY && hw_canplay() == 0) {
tests/dev/audio/audiotest.c
4606
DEF(AUDIO_SETFD_WRONLY) { test_AUDIO_SETFD_xxONLY(O_WRONLY); }
tests/dev/audio/audiotest.c
4891
canread = (openmode != O_WRONLY);
tests/dev/audio/audiotest.c
4966
DEF(AUDIO_SETINFO_mode_WRONLY_0) { f(O_WRONLY, 0); }
tests/dev/audio/audiotest.c
4967
DEF(AUDIO_SETINFO_mode_WRONLY_1) { f(O_WRONLY, 1); }
tests/dev/audio/audiotest.c
4968
DEF(AUDIO_SETINFO_mode_WRONLY_2) { f(O_WRONLY, 2); }
tests/dev/audio/audiotest.c
4969
DEF(AUDIO_SETINFO_mode_WRONLY_3) { f(O_WRONLY, 3); }
tests/dev/audio/audiotest.c
4970
DEF(AUDIO_SETINFO_mode_WRONLY_4) { f(O_WRONLY, 4); }
tests/dev/audio/audiotest.c
4971
DEF(AUDIO_SETINFO_mode_WRONLY_5) { f(O_WRONLY, 5); }
tests/dev/audio/audiotest.c
4972
DEF(AUDIO_SETINFO_mode_WRONLY_6) { f(O_WRONLY, 6); }
tests/dev/audio/audiotest.c
4973
DEF(AUDIO_SETINFO_mode_WRONLY_7) { f(O_WRONLY, 7); }
tests/dev/audio/audiotest.c
4974
DEF(AUDIO_SETINFO_mode_WRONLY_8) { f(O_WRONLY, 8); }
tests/dev/audio/audiotest.c
5097
DEF(AUDIO_SETINFO_params_set_WRONLY_0) { f(O_WRONLY, 0, 0); }
tests/dev/audio/audiotest.c
5098
DEF(AUDIO_SETINFO_params_set_WRONLY_1) { f(O_WRONLY, 0, 1); }
tests/dev/audio/audiotest.c
5099
DEF(AUDIO_SETINFO_params_set_WRONLY_2) { f(O_WRONLY, 1, 0); }
tests/dev/audio/audiotest.c
5100
DEF(AUDIO_SETINFO_params_set_WRONLY_3) { f(O_WRONLY, 1, 1); }
tests/dev/audio/audiotest.c
5131
fd0 = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
5234
if (mode != O_WRONLY)
tests/dev/audio/audiotest.c
5245
if (mode != O_WRONLY)
tests/dev/audio/audiotest.c
5345
if (mode != O_WRONLY)
tests/dev/audio/audiotest.c
5356
if (mode != O_WRONLY)
tests/dev/audio/audiotest.c
5481
if (openmode != O_WRONLY)
tests/dev/audio/audiotest.c
5493
DEF(AUDIO_SETINFO_pause_WRONLY_0) { test_AUDIO_SETINFO_pause(O_WRONLY, 0, 0); }
tests/dev/audio/audiotest.c
5494
DEF(AUDIO_SETINFO_pause_WRONLY_1) { test_AUDIO_SETINFO_pause(O_WRONLY, 0, 1); }
tests/dev/audio/audiotest.c
5495
DEF(AUDIO_SETINFO_pause_WRONLY_2) { test_AUDIO_SETINFO_pause(O_WRONLY, 1, 0); }
tests/dev/audio/audiotest.c
5496
DEF(AUDIO_SETINFO_pause_WRONLY_3) { test_AUDIO_SETINFO_pause(O_WRONLY, 1, 1); }
tests/dev/audio/audiotest.c
5548
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
5895
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
5939
fd = OPEN(devaudio, O_WRONLY);
tests/dev/audio/audiotest.c
6209
getenc_check_encodings(O_WRONLY, expected);
tests/dev/audio/audiotest.c
6282
DEF(AUDIO_ERROR_WRONLY) { test_AUDIO_ERROR(O_WRONLY); }
tests/dev/audio/audiotest.c
6369
DEF(AUDIO_GETIOFFS_one_WRONLY) { test_AUDIO_GETIOFFS_one(O_WRONLY); }
tests/dev/audio/audiotest.c
6491
DEF(AUDIO_GETOOFFS_one_WRONLY) { test_AUDIO_GETOOFFS_one(O_WRONLY); }
tests/dev/audio/audiotest.c
6615
DEF(AUDIO_GETOOFFS_wrap_WRONLY) { test_AUDIO_GETOOFFS_wrap(O_WRONLY); }
tests/dev/audio/audiotest.c
6742
DEF(AUDIO_GETOOFFS_flush_WRONLY) { test_AUDIO_GETOOFFS_flush(O_WRONLY); }
tests/dev/audio/audiotest.c
6829
DEF(AUDIO_GETOOFFS_set_WRONLY) { test_AUDIO_GETOOFFS_set(O_WRONLY); }
tests/dev/audio/audiotest.c
6844
if (hw_canplay() == 0 && fmode == O_WRONLY) {
tests/dev/audio/audiotest.c
6866
DEF(audioctl_open_1_RDONLY_RWONLY) { test_audioctl_open_1(O_RDONLY, O_WRONLY); }
tests/dev/audio/audiotest.c
6868
DEF(audioctl_open_1_WRONLY_RDONLY) { test_audioctl_open_1(O_WRONLY, O_RDONLY); }
tests/dev/audio/audiotest.c
6869
DEF(audioctl_open_1_WRONLY_RWONLY) { test_audioctl_open_1(O_WRONLY, O_WRONLY); }
tests/dev/audio/audiotest.c
6870
DEF(audioctl_open_1_WRONLY_RDWR) { test_audioctl_open_1(O_WRONLY, O_RDWR); }
tests/dev/audio/audiotest.c
6872
DEF(audioctl_open_1_RDWR_RWONLY) { test_audioctl_open_1(O_RDWR, O_WRONLY); }
tests/dev/audio/audiotest.c
6887
if (hw_canplay() == 0 && fmode == O_WRONLY) {
tests/dev/audio/audiotest.c
6909
DEF(audioctl_open_2_RDONLY_RWONLY) { test_audioctl_open_2(O_RDONLY, O_WRONLY); }
tests/dev/audio/audiotest.c
6911
DEF(audioctl_open_2_WRONLY_RDONLY) { test_audioctl_open_2(O_WRONLY, O_RDONLY); }
tests/dev/audio/audiotest.c
6912
DEF(audioctl_open_2_WRONLY_RWONLY) { test_audioctl_open_2(O_WRONLY, O_WRONLY); }
tests/dev/audio/audiotest.c
6913
DEF(audioctl_open_2_WRONLY_RDWR) { test_audioctl_open_2(O_WRONLY, O_RDWR); }
tests/dev/audio/audiotest.c
6915
DEF(audioctl_open_2_RDWR_RWONLY) { test_audioctl_open_2(O_RDWR, O_WRONLY); }
tests/dev/audio/audiotest.c
7087
DEF(audioctl_rw_WRONLY) { test_audioctl_rw(O_WRONLY); }
tests/dev/audio/audiotest.c
7104
fd = OPEN(devaudioctl, O_WRONLY);
tests/dev/audio/audiotest.c
7132
fd = OPEN(devaudioctl, O_WRONLY);
tests/fs/ffs/t_fifos.c
37
fd = rump_sys_open("sheep", O_WRONLY);
tests/fs/ffs/t_fifos.c
52
fd = rump_sys_open("pigs", O_WRONLY);
tests/fs/fifofs/t_fifo.c
122
if ((fd = open(FIFO_FILE_PATH, O_WRONLY, 0)) == -1)
tests/fs/fifofs/t_fifo.c
45
fd = open(FIFO_FILE_PATH, O_WRONLY, 0);
tests/fs/lfs/util.c
65
int flags = O_CREAT|O_WRONLY;
tests/fs/union/t_pr.c
189
fd = rump_sys_open("/mp/null", O_WRONLY | O_CREAT | O_TRUNC, 0600);
tests/fs/union/t_pr.c
223
fd = rump_sys_open("/mp/null", O_WRONLY | O_CREAT | O_APPEND, 0600);
tests/fs/vfs/t_mtime_otrunc.c
54
int f = rump_sys_open(LOCKFILE, O_WRONLY|O_CREAT|O_TRUNC, 0666);
tests/fs/vfs/t_mtime_write.c
54
int f = rump_sys_open(LOCKFILE, O_WRONLY|O_CREAT, 0666);
tests/fs/vfs/t_renamerace.c
51
O_WRONLY|O_CREAT|O_TRUNC, 0666);
tests/fs/vfs/t_ro.c
115
ATF_REQUIRE_ERRNO(expected, rump_sys_open(AFILE, O_WRONLY) == -1);
tests/kernel/kqueue/read/t_fifo.c
127
ATF_REQUIRE((wfd = open(fifo_path, O_WRONLY | O_NONBLOCK)) >= 0);
tests/kernel/kqueue/read/t_fifo.c
85
ATF_REQUIRE((wfd = open(fifo_path, O_WRONLY | O_NONBLOCK)) >= 0);
tests/kernel/kqueue/read/t_file.c
66
fd = open(FILENAME, O_WRONLY|O_APPEND, 0644);
tests/kernel/kqueue/t_vnode.c
63
fd = open(file, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR);
tests/kernel/kqueue/write/t_fifo.c
85
ATF_REQUIRE((wfd = open(fifo_path, O_WRONLY | O_NONBLOCK)) >= 0);
tests/kernel/t_lua.c
121
RL(fd = open(path, O_WRONLY|O_CREAT));
tests/kernel/t_lua.c
140
RL(fd = open(_PATH_DEV_LUA, O_WRONLY));
tests/kernel/t_lua.c
207
if (open(_PATH_DEV_LUA, O_WRONLY) != -1) {
tests/kernel/t_sysv.c
109
output = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0600);
tests/lib/libc/db/h_db.c
129
O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
tests/lib/libc/gen/posix_spawn/t_fileactions.c
119
CHECKFILE, O_WRONLY|O_APPEND, 0));
tests/lib/libc/gen/posix_spawn/t_fileactions.c
147
CHECKFILE, O_WRONLY, 0));
tests/lib/libc/gen/posix_spawn/t_fileactions.c
290
RL(fd2 = open("/dev/null", O_WRONLY, O_CLOEXEC));
tests/lib/libc/gen/posix_spawn/t_fileactions.c
293
RL(fd3 = open("/dev/null", O_WRONLY));
tests/lib/libc/gen/posix_spawn/t_fileactions.c
342
O_WRONLY, 0));
tests/lib/libc/gen/posix_spawn/t_fileactions.c
385
O_WRONLY, 0));
tests/lib/libc/gen/posix_spawn/t_fileactions.c
91
CHECKFILE, O_WRONLY|O_CREAT, 0600));
tests/lib/libc/gen/posix_spawn/t_spawn.c
236
FILENAME, O_WRONLY, 0));
tests/lib/libc/gen/posix_spawn/t_spawn.c
452
RL(fd = open(FILENAME, O_WRONLY | O_CREAT | O_TRUNC, 0644));
tests/lib/libc/kevent_nullmnt/h_nullmnt.c
47
write_file = open(argv[2], O_WRONLY, O_APPEND);
tests/lib/libc/sys/t_dup.c
55
int mode[3] = { O_RDONLY, O_WRONLY, O_RDWR };
tests/lib/libc/sys/t_getrusage.c
140
fd = open(DUMP_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0222);
tests/lib/libc/sys/t_mkfifo.c
190
ATF_REQUIRE_ERRNO(ENXIO, open(path, O_WRONLY | O_NONBLOCK) == -1);
tests/lib/libc/sys/t_mmap.c
306
fd = open(path, O_WRONLY | O_CREAT, 0700);
tests/lib/libc/sys/t_poll.c
284
RL(wfd = open(fifo_path, O_WRONLY | O_NONBLOCK));
tests/lib/libc/sys/t_poll.c
411
RL(wfd = open(fifo_path, O_WRONLY));
tests/lib/libc/sys/t_poll.c
434
RL(wfd = open(fifo_path, O_WRONLY));
tests/lib/libc/sys/t_poll.c
463
RL(wfd = open(fifo_path, O_WRONLY));
tests/lib/libc/sys/t_poll.c
934
RL(*pp = open(fifo_path, O_WRONLY));
tests/lib/libc/sys/t_poll.c
958
RL(p1 = open(fifo_path, O_WRONLY));
tests/lib/libc/sys/t_stat.c
213
fd[i] = open(path, O_WRONLY | O_CREAT, 0600);
tests/lib/libc/sys/t_stat.c
291
fd = open(path, O_WRONLY | O_CREAT, 0600);
tests/lib/libc/sys/t_stat.c
380
fd = open(path, O_WRONLY | O_CREAT, 0600);
tests/lib/libc/sys/t_write.c
176
fd = open(path, O_WRONLY | O_CREAT, 0600);
tests/lib/libcurses/director/testlang_parse.y
937
check_fd = open(check_file, O_WRONLY | O_CREAT, 0644);
tests/lib/libossaudio/t_ossaudio.c
348
if ((fd = open("/dev/audio", O_WRONLY)) == -1)
tests/lib/libossaudio/t_ossaudio.c
403
if ((fd = open(dev, O_WRONLY)) == -1) {
tests/lib/libossaudio/t_ossaudio.c
50
if ((fd = open("/dev/audio", O_WRONLY)) == -1)
tests/lib/libposix/t_rename.c
57
REQUIRE_LIBC(open("t1", O_CREAT | O_TRUNC | O_WRONLY, 0600), -1);
tests/net/tcp/t_tcp_connect_port.c
112
fd = open(SYSCTLBAKFILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL,
usr.bin/at/at.c
211
if ((lockdes = open(_PATH_LOCKFILE, O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR)) < 0)
usr.bin/at/at.c
253
if ((fdes = open(atfile, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR)) == -1)
usr.bin/audio/ctl/ctl.c
367
fd = open(file, O_WRONLY);
usr.bin/audio/ctl/ctl.c
372
fd = open(file, O_WRONLY);
usr.bin/audio/play/play.c
181
audiofd = open(device, O_WRONLY);
usr.bin/audio/play/play.c
184
audiofd = open(device, O_WRONLY);
usr.bin/audio/record/record.c
224
ti.outfd = open(*argv, O_CREAT|(aflag ? O_APPEND : O_TRUNC)|O_WRONLY, 0666);
usr.bin/audiocfg/audiodev.c
305
adev->fd = open(adev->path, O_WRONLY);
usr.bin/bthset/bthset.c
459
mx = open(mixer, O_WRONLY, 0);
usr.bin/bthset/bthset.c
582
fd = open(pidfile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
usr.bin/cdplay/cdplay.c
1402
da.afd = open(da.auname, O_WRONLY);
usr.bin/elf2aout/elf2aout.c
396
if ((outfile = open(argv[1], O_WRONLY | O_CREAT, 0777)) < 0)
usr.bin/elf2ecoff/elf2ecoff.c
391
if ((outfile = open(argv[1], O_WRONLY | O_CREAT, 0777)) < 0)
usr.bin/gencat/gencat.c
175
ofd = open(catfile, O_WRONLY | O_CREAT | O_EXCL, 0666);
usr.bin/gzip/gzip.c
1381
out = open(outfile, O_WRONLY | O_CREAT | O_EXCL, 0600);
usr.bin/gzip/gzip.c
1570
zfd = open(outfile, O_WRONLY|O_CREAT|O_EXCL, 0600);
usr.bin/ktrace/ktrace.c
232
if ((fd = open(outfile, O_CREAT | O_WRONLY |
usr.bin/mail/dotlock.c
85
O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_SYNC|O_CLOEXEC, 0);
usr.bin/mail/lex.c
266
if ((i = open(name, O_WRONLY)) < 0)
usr.bin/mail/mime_detach.c
126
flags = (detach_ctl.overwrite ? 0 : O_EXCL) | O_CREAT | O_TRUNC | O_WRONLY;
usr.bin/make/filemon/filemon_ktrace.c
820
else if ((flags & O_WRONLY) == O_WRONLY)
usr.bin/make/filemon/filemon_ktrace.c
850
else if ((flags & O_WRONLY) == O_WRONLY)
usr.bin/make/filemon/filemon_ktrace.c
860
else if ((flags & O_WRONLY) == O_WRONLY)
usr.bin/midiplay/midiplay.c
783
fd = open(file, O_WRONLY);
usr.bin/midirecord/midirecord.c
195
int mode = O_CREAT|(aflag ? O_APPEND : O_TRUNC)|O_WRONLY;
usr.bin/midirecord/midirecord.c
207
int mode = O_CREAT|(aflag ? O_APPEND : O_TRUNC)|O_WRONLY;
usr.bin/mkdep/mkdep.c
233
aflag = O_WRONLY | O_APPEND | O_CREAT | O_TRUNC;
usr.bin/mkubootimage/mkubootimage.c
581
image_fd = open(dest, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr.bin/patch/inp.c
398
if ((tifd = open(TMPINNAME, O_EXCL | O_CREAT | O_WRONLY, 0666)) < 0)
usr.bin/patch/util.c
175
tofd = open(to, O_CREAT|O_TRUNC|O_WRONLY, 0666);
usr.bin/sed/compile.c
294
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/compile.c
770
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/process.c
246
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/process.c
484
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, DEFFILEMODE)) == -1)
usr.bin/split/split.c
367
if ((ofd = open(fname, O_WRONLY | O_CREAT | O_TRUNC, DEFFILEMODE)) < 0)
usr.bin/tcopy/tcopy.c
130
op == COPY ? O_WRONLY : O_RDWR, DEFFILEMODE)) < 0) {
usr.bin/tee/tee.c
101
if ((fd = open(*argv, append ? O_WRONLY|O_CREAT|O_APPEND :
usr.bin/tee/tee.c
102
O_WRONLY|O_CREAT|O_TRUNC, DEFFILEMODE)) < 0) {
usr.bin/tip/aculib/dn11.c
59
if ((dn = open(acu, O_WRONLY)) < 0) {
usr.bin/touch/touch.c
188
O_WRONLY | O_CREAT, DEFFILEMODE);
usr.bin/vndcompress/vndcompress.c
446
oflags = (O_WRONLY | O_TRUNC | O_CREAT);
usr.bin/vndcompress/vnduncompress.c
73
(O_WRONLY | O_CREAT | O_TRUNC), 0777);
usr.bin/write/term_chk.c
77
fd = open(path, O_WRONLY, 0);
usr.bin/xinstall/xinstall.c
754
O_CREAT | O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR)) < 0)
usr.bin/xlint/xlint/xlint.c
529
if ((ofd = open(dest, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1) {
usr.sbin/acpitools/acpidump/acpi.c
4651
fd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, mode);
usr.sbin/acpitools/acpidump/acpi.c
4695
fd = open(tmpstr, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
usr.sbin/apmd/apmd.c
235
spkrfd = open(_PATH_DEV_SPEAKER, O_WRONLY);
usr.sbin/bta2dpd/bta2dpd/bta2dpd.c
900
int flags = O_WRONLY | O_CREAT;
usr.sbin/btdevctl/btdevctl.c
240
fd = open(BTHUB_PATH, O_WRONLY, 0);
usr.sbin/bthcid/config.c
184
fd = open(new_key_file, O_WRONLY|O_TRUNC|O_CREAT|O_EXLOCK, 0600);
usr.sbin/dev_mkdb/dev_mkdb.c
77
fd = open(db_name_tmp, O_CREAT|O_EXCL|O_WRONLY, FILE_PERMISSION);
usr.sbin/edquota/edquota.c
315
if ((fd = open(qup->qfname, O_WRONLY)) < 0) {
usr.sbin/extattrctl/extattrctl.c
108
flags = O_CREAT | O_WRONLY | O_TRUNC | O_EXCL;
usr.sbin/fssconfig/fssconfig.c
168
fd = prog_open(fss.fss_bstore, O_CREAT|O_TRUNC|O_WRONLY, 0600);
usr.sbin/fwctl/fwdv.c
109
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
usr.sbin/fwctl/fwmpegts.c
157
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
usr.sbin/lockstat/main.c
259
fd = open(outf, O_WRONLY | O_CREAT | O_TRUNC, 0600);
usr.sbin/lpr/lpc/cmds.c
144
if ((fd = open(line, O_WRONLY|O_CREAT, 0760)) < 0)
usr.sbin/lpr/lpc/cmds.c
194
fd = open(statfile, O_WRONLY|O_CREAT, 0664);
usr.sbin/lpr/lpc/cmds.c
470
if ((fd = open(line, O_WRONLY|O_CREAT, 0670)) < 0)
usr.sbin/lpr/lpc/cmds.c
545
if ((fd = open(line, O_WRONLY|O_CREAT, 0770)) < 0)
usr.sbin/lpr/lpc/cmds.c
559
fd = open(line, O_WRONLY|O_CREAT, 0664);
usr.sbin/lpr/lpc/cmds.c
841
if ((fd = open(line, O_WRONLY|O_CREAT, 0760)) < 0)
usr.sbin/lpr/lpd/lpd.c
242
lfd = open(_PATH_MASTERLOCK, O_WRONLY|O_CREAT, 0644);
usr.sbin/lpr/lpd/printjob.c
1444
pfd = open(LP, RW ? O_RDWR : O_WRONLY);
usr.sbin/lpr/lpd/printjob.c
158
if ((fd = open(LF, O_WRONLY|O_APPEND, 0664)) < 0) {
usr.sbin/lpr/lpd/printjob.c
160
fd = open(_PATH_DEVNULL, O_WRONLY);
usr.sbin/lpr/lpd/printjob.c
1630
fd = open(ST, O_WRONLY|O_CREAT, 0664);
usr.sbin/lpr/lpd/printjob.c
185
lfd = open(LO, O_WRONLY|O_CREAT, 0644);
usr.sbin/lpr/lpd/printjob.c
734
n = open(tempfile, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0664);
usr.sbin/lpr/lpd/printjob.c
899
pfd = open(tempremote, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0664);
usr.sbin/lpr/lpd/recvjob.c
219
fd = open(file, O_CREAT|O_EXCL|O_WRONLY, FILMOD);
usr.sbin/lpr/lpd/recvjob.c
93
if ((fd = open(LF, O_WRONLY|O_APPEND, 0664)) < 0) {
usr.sbin/lpr/lpd/recvjob.c
95
fd = open(_PATH_DEVNULL, O_WRONLY);
usr.sbin/lpr/lpr/lpr.c
542
f = open(n, O_WRONLY | O_EXCL | O_CREAT, FILMOD);
usr.sbin/mdsetimage/mdsetimage.c
160
if ((fsfd = open(fsfile, O_WRONLY|O_CREAT, 0777)) == -1)
usr.sbin/memswitch/memswitch.c
398
sramfd = open(PATH_RAMFILE, O_WRONLY);
usr.sbin/memswitch/memswitch.c
422
fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr.sbin/moused/moused.c
860
if ((rodent.cfd = open(wsm, O_WRONLY, 0)) == -1)
usr.sbin/ndbootd/ndbootd.c
496
if ((fd = open(NDBOOTD_PID_FILE, O_WRONLY | O_CREAT | O_TRUNC, 0644)) >= 0) {
usr.sbin/npf/npfctl/npf_build.c
151
if ((fd = open(outfile, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1) {
usr.sbin/pcictl/pcictl.c
102
O_WRONLY },
usr.sbin/pf/pfs/pfs.c
132
wfd = open(filename, O_WRONLY|O_TRUNC|O_CREAT, 0600);
usr.sbin/pwd_mkdb/pwd_mkdb.c
399
if ((tfd = open(oldpwdfile, O_WRONLY | O_CREAT | O_EXCL,
usr.sbin/pwd_mkdb/pwd_mkdb.c
645
if ((to_fd = open(to, O_WRONLY | O_CREAT | O_EXCL, mode)) < 0) {
usr.sbin/rpcbind/warmstart.c
81
fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR);
usr.sbin/rwhod/rwhod.c
307
whod = open(path, O_WRONLY | O_CREAT, 0644);
usr.sbin/services_mkdb/output_cdb.c
55
if ((cdbw_fd = open(tname, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1) {
usr.sbin/sliplogin/sliplogin.c
344
if ((fd = open(_PATH_DEVNULL, O_WRONLY)) != 1) {
usr.sbin/sysinst/arch/mac68k/md.c
379
if ((fd = open(dev_name, O_WRONLY, 0)) < 0) {
usr.sbin/sysinst/arch/shark/md.c
212
fd = opendisk(disk, O_WRONLY, diskpath, diskpathlen, 0);
usr.sbin/sysinst/mbr.c
686
fd = opendisk(disk, secsize == 512 ? O_WRONLY : O_RDWR,
usr.sbin/sysinst/wskbd.c
104
fd = open("/dev/wskbd0", O_WRONLY);
usr.sbin/syslogd/syslogd.c
1935
f->f_file = open(ctty, O_WRONLY | O_NDELAY, 0);
usr.sbin/syslogd/syslogd.c
2527
O_WRONLY|O_APPEND|O_NONBLOCK, 0);
usr.sbin/syslogd/syslogd.c
2563
open(f->f_un.f_fname, O_WRONLY|O_NONBLOCK, 0);
usr.sbin/syslogd/syslogd.c
4000
if ((f->f_file = open(p, O_WRONLY|O_APPEND|O_NONBLOCK, 0)) < 0)
usr.sbin/tprof/tprof.c
449
outfd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
usr.sbin/wsmuxctl/wsmuxctl.c
101
rfd = open(buf, O_WRONLY, 0);
usr.sbin/wsmuxctl/wsmuxctl.c
160
wsfd = open(wsdev, O_WRONLY, 0);
usr.sbin/wsmuxctl/wsmuxctl.c
165
wsfd = open(wsdev, O_WRONLY, 0);