bin/cp/utils.c
103
to_fd = open(to.p_path, O_WRONLY | O_TRUNC);
bin/cp/utils.c
105
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
bin/csh/csh.c
848
if ((fd = open(short2str(hfile), O_WRONLY | O_CREAT | O_TRUNC,
bin/csh/sem.c
564
(fd = open(tmp, O_WRONLY | O_APPEND)) >= 0);
bin/csh/sem.c
571
if ((fd = open(tmp, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1)
bin/dd/dd.c
122
out.fd = open(out.name, O_WRONLY | OFLAGS, DEFFILEMODE);
bin/ksh/exec.c
1074
flags = O_WRONLY | O_APPEND | O_CREAT;
bin/ksh/exec.c
1078
flags = O_WRONLY | O_CREAT | O_TRUNC;
bin/ksh/io.c
174
O_WRONLY|O_APPEND|O_CREAT, 0600, SHF_WR|SHF_MAPHI);
bin/ksh/io.c
334
((mode & W_OK) && fl != O_WRONLY))) {
bin/ksh/io.c
336
*emsgp = (fl == O_WRONLY) ?
bin/ksh/shf.c
149
case O_WRONLY:
bin/ksh/shf.c
69
((oflags & O_ACCMODE) == O_WRONLY ? SHF_WR : SHF_RDWR);
bin/ksh/shf.c
92
case O_WRONLY:
bin/mt/mt.c
218
flags = comp->c_ronly ? O_RDONLY : O_WRONLY | O_CREAT;
bin/mv/cp.c
447
to_fd = open(to.p_path, O_WRONLY | O_TRUNC);
bin/mv/cp.c
449
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
bin/mv/mv.c
283
if ((to_fd = open(to, O_CREAT | O_TRUNC | O_WRONLY, 0600)) == -1) {
bin/pax/ar_io.c
60
#define AR_MODE (O_WRONLY | O_CREAT | O_TRUNC) /* mode for archive */
bin/pax/file_subs.c
106
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC,
bin/pax/file_subs.c
88
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_EXCL,
bin/pax/tables.c
679
fd = open(path0, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, 0600);
bin/rm/rm.c
313
if ((fd = open(file, O_WRONLY|O_NONBLOCK|O_NOFOLLOW)) == -1)
games/backgammon/common_source/save.c
102
O_CREAT | O_TRUNC | O_WRONLY,
games/backgammon/common_source/save.c
89
O_CREAT | O_TRUNC | O_WRONLY,
games/hack/hack.bones.c
134
if((fd = open(bones, O_CREAT | O_TRUNC | O_WRONLY, FMASK)) == -1) return;
games/hack/hack.do.c
197
fd = open(lock, O_CREAT | O_TRUNC | O_WRONLY, FMASK);
games/hack/hack.save.c
104
if((fd = open(SAVEF, O_CREAT | O_TRUNC | O_WRONLY, FMASK)) == -1) {
games/hack/hack.save.c
196
if((nfd = open(lock, O_CREAT | O_TRUNC | O_WRONLY, FMASK)) == -1)
games/hack/hack.unix.c
246
fd = open(lock, O_CREAT | O_TRUNC | O_WRONLY, FMASK);
games/hunt/huntd/driver.c
1074
if ((tty = open(_PATH_TTY, O_WRONLY)) >= 0) {
games/mille/save.c
111
if ((outf = open(buf, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1) {
games/phantasia/setup.c
123
if ((fd = open(path, O_CREAT | O_TRUNC | O_WRONLY, 0660)) == -1)
lib/libc/compat-43/creat.c
36
return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
lib/libc/db/btree/bt_open.c
188
case O_WRONLY:
lib/libc/db/btree/bt_open.c
203
case O_WRONLY:
lib/libc/db/hash/hash.c
100
if ((flags & O_ACCMODE) == O_WRONLY) {
lib/libc/db/hash/ndbm.c
71
if ((flags & O_ACCMODE) == O_WRONLY) {
lib/libc/db/hash/ndbm.c
72
flags &= ~O_WRONLY;
lib/libc/gmon/gmon.c
375
log = open("gmon.log", O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0664);
lib/libc/stdio/flags.c
60
m = O_WRONLY;
lib/libc/stdio/flags.c
66
m = O_WRONLY;
lib/libcrypto/rand/randfile.c
108
fd = open(file, O_WRONLY|O_CREAT|O_CLOEXEC, 0600);
lib/libkvm/kvm.c
215
if (flag != O_RDONLY && flag != O_WRONLY && flag != O_RDWR) {
lib/libsndio/mio_rmidi.c
95
flags = (mode & MIO_OUT) ? O_WRONLY : O_RDONLY;
lib/libsndio/sio_sun.c
300
flags = (mode & SIO_PLAY) ? O_WRONLY : O_RDONLY;
lib/libsndio/sioctl_sun.c
363
flags = (mode & SIOCTL_WRITE) ? O_WRONLY : O_RDONLY;
lib/libutil/login.c
68
if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND|O_CLOEXEC)) >= 0) {
lib/libutil/logwtmp.c
49
if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND|O_CLOEXEC)) == -1)
lib/libutil/passwd.c
103
fd = open(pw_lck, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0600);
lib/libutil/passwd.c
106
fd = open(pw_lck, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0600);
lib/libutil/uucplock.c
73
tmpfd = open(lcktmpname, O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0664);
lib/libz/gzlib.c
238
(O_WRONLY | O_CREAT |
libexec/comsat/comsat.c
271
fd = open(tty, O_WRONLY);
libexec/ftpd/ftpd.c
970
if ((statfd = open(_PATH_FTPDSTATFILE, O_WRONLY|O_APPEND)) == -1)
libexec/ftpd/logwtmp.c
63
if (fd < 0 && (fd = open(_PATH_WTMP, O_WRONLY|O_APPEND)) == -1)
libexec/mail.local/locking.c
75
if ((lfd = open(lpath, O_CREAT|O_WRONLY|O_EXCL,
libexec/mail.local/mail.local.c
189
if ((mbfd = open(path, O_APPEND|O_CREAT|O_EXCL|O_WRONLY|O_EXLOCK,
libexec/mail.local/mail.local.c
215
if ((mbfd = open(path, O_APPEND|O_WRONLY|O_EXLOCK,
libexec/tradcpp/output.c
54
outputfd = open(mode.output_file, O_WRONLY|O_CREAT|O_TRUNC,
regress/lib/libc/db/dbtest.c
104
O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
regress/lib/libc/sys/t_dup.c
56
int mode[3] = { O_RDONLY, O_WRONLY, O_RDWR };
regress/lib/libc/sys/t_getrusage.c
142
fd = open(DUMP_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0222);
regress/lib/libc/sys/t_mkfifo.c
191
ATF_REQUIRE_ERRNO(ENXIO, open(path, O_WRONLY | O_NONBLOCK) == -1);
regress/lib/libc/sys/t_mmap.c
314
fd = open(path, O_WRONLY | O_CREAT, 0700);
regress/lib/libc/sys/t_stat.c
214
fd[i] = open(path, O_WRONLY | O_CREAT, 0600);
regress/lib/libc/sys/t_stat.c
292
fd = open(path, O_WRONLY | O_CREAT, 0600);
regress/lib/libc/sys/t_stat.c
381
fd = open(path, O_WRONLY | O_CREAT, 0600);
regress/lib/libc/sys/t_write.c
174
fd = open(path, O_WRONLY | O_CREAT, 0600);
regress/lib/libc/telldir/utils.c
26
if ((fd = open(file, O_CREAT | O_WRONLY, 0600)) == -1)
regress/lib/libpthread/blocked_fifo/blocked_fifo.c
59
CHECKe(fd = open(FIFO, O_WRONLY));
regress/lib/libpthread/blocked_fifo/blocked_fifo.c
81
CHECKe(fd = open(FIFO, O_WRONLY));
regress/lib/libpthread/poll/poll.c
66
CHECKe(null = open(_PATH_DEV "null", O_WRONLY));
regress/lib/libsndio/fd/fd.c
301
recfd = open(recpath, O_CREAT | O_WRONLY | O_TRUNC, 0666);
regress/sys/ffs/fstest.c
110
{ O_WRONLY, "O_WRONLY" },
regress/sys/fifofs/fifotest.c
171
fd = open(fifo, O_WRONLY | flags);
regress/sys/kern/access/access.c
97
if ((fd = open(filename, O_WRONLY|O_CREAT, 600)) < 0)
regress/sys/kern/fchown/fchown.c
32
fd = open(path, O_WRONLY);
regress/sys/kern/mmap3/mmaptest.c
50
fd = open("test.out", O_WRONLY|O_CREAT|O_TRUNC, 0600);
regress/sys/kern/open/open.c
32
fd = open(path, O_WRONLY | O_TRUNC | O_SHLOCK);
regress/sys/kern/pledge/generic/main.c
92
if ((fd = open("/dev/null", O_WRONLY)) == -1)
regress/sys/kern/poll/poll_iocond.c
190
child_fd = open(TEST_FIFO_NAME, O_WRONLY);
regress/sys/kern/select/select_iocond.c
191
child_fd = open(TEST_FIFO_NAME, O_WRONLY);
regress/sys/kern/unfdpass/unfdpass.c
105
if ((fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) == -1)
regress/sys/kern/unveil-unmount/unveil-unlink.c
37
fd = open(path, O_WRONLY|O_CREAT, 0755);
regress/sys/kern/unveil/access.c
38
UV_SHOULD_SUCCEED(((fd = open(filename, O_WRONLY|O_CREAT, 0700)) == -1), "open");
regress/sys/nfs/mmap-sysctl-copyin.c
41
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0777)) == -1)
regress/sys/uvm/mmap_4g/mmap_4g.c
29
fd = open(file, O_WRONLY | O_CREAT | O_TRUNC, 0666);
regress/usr.bin/mandoc/db/makeinodes/makeinodes.c
52
if ((fd = open("1", O_WRONLY | O_CREAT | O_EXCL, 0644)) == -1)
regress/usr.bin/mandoc/db/makeinodes/makeinodes.c
58
if ((fd = open("2", O_WRONLY | O_CREAT | O_EXCL, 0644)) == -1)
regress/usr.bin/mandoc/db/makeinodes/makeinodes.c
65
if ((fd = open("3", O_WRONLY | O_CREAT | O_EXCL, 0644)) == -1)
regress/usr.sbin/rpki-client/test-http.c
159
if ((outfd = open(file, O_WRONLY|O_CREAT|O_TRUNC, 0666)) == -1)
regress/usr.sbin/syslogd/ttylog.c
154
if ((fd = open("/dev/console", O_WRONLY)) == -1)
sbin/dump/tape.c
662
while ((tapefd = (host ? rmtopen(tape, O_WRONLY|O_CREAT) :
sbin/dump/tape.c
663
pipeout ? 1 : open(tape, O_WRONLY|O_CREAT, 0666))) == -1)
sbin/dump/tape.c
666
open(tape, O_WRONLY|O_CREAT, 0666))) == -1)
sbin/fsck_ext2fs/setup.c
104
if (nflag || (fswritefd = opendev(dev, O_WRONLY, 0, NULL)) == -1) {
sbin/fsck_ffs/setup.c
132
if (nflag || (fswritefd = opendev(dev, O_WRONLY, 0, NULL)) == -1) {
sbin/fsck_ffs/utilities.c
643
info_fd = open(_PATH_TTY, O_WRONLY);
sbin/growfs/growfs.c
1758
fso = open(device, O_WRONLY);
sbin/ipsecctl/ike.c
894
if ((fd = open(fifo, O_WRONLY)) == -1)
sbin/isakmpd/monitor.c
251
flags = (mode[1] == '+' ? O_RDWR : O_WRONLY) | O_CREAT |
sbin/isakmpd/monitor.c
255
flags = (mode[1] == '+' ? O_RDWR : O_WRONLY) | O_CREAT |
sbin/kbd/kbd_wscons.c
162
fd = open(device, O_WRONLY);
sbin/kbd/kbd_wscons.c
271
fd = open(device, O_WRONLY);
sbin/newfs/newfs.c
379
fso = opendev(special, O_WRONLY, 0, &realdev);
sbin/restore/dirs.c
646
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1) {
sbin/restore/tape.c
640
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC,
sbin/route/route.c
243
s = open(_PATH_DEVNULL, O_WRONLY);
sbin/savecore/savecore.c
442
ofd = open(path, O_WRONLY | O_CREAT | O_TRUNC,
sbin/savecore/savecore.c
517
ofd = open(path, O_WRONLY | O_CREAT | O_TRUNC,
sbin/savecore/zopen.c
528
if ((fd = open(name, (*mode=='r'? O_RDONLY:O_WRONLY|O_CREAT),
sbin/shutdown/shutdown.c
585
if ((fastfd = open(_PATH_FASTBOOT, O_WRONLY|O_CREAT|O_TRUNC,
sbin/shutdown/shutdown.c
606
if ((logfd = open(_PATH_NOLOGIN, O_WRONLY|O_CREAT|O_TRUNC,
sbin/wsconsctl/wsconsctl.c
123
((devfd = open(device, O_WRONLY)) == -1 &&
sbin/wsconsctl/wsconsctl.c
173
((devfd = open(device, O_WRONLY)) == -1 &&
sys/arch/alpha/stand/setnetbootinfo/setnetbootinfo.c
234
if ((fd = open(outfilename, O_WRONLY | O_CREAT, 0666)) == -1)
sys/arch/amd64/stand/rdboot/rdboot.c
154
fd = open(DEVRANDOM, O_WRONLY);
sys/arch/amd64/stand/rdboot/rdboot.c
71
kexecfd = open("/dev/kexec", O_WRONLY);
sys/arch/octeon/stand/rdboot/rdboot.c
155
fd = open(DEVRANDOM, O_WRONLY);
sys/arch/octeon/stand/rdboot/rdboot.c
70
octbootfd = open("/dev/octboot", O_WRONLY);
sys/arch/powerpc64/stand/rdboot/rdboot.c
153
fd = open(DEVRANDOM, O_WRONLY);
sys/arch/powerpc64/stand/rdboot/rdboot.c
70
kexecfd = open("/dev/kexec", O_WRONLY);
sys/dev/microcode/afb/build.c
37
fd = open(AFB_FW_NAME, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/atmel/build.c
40
fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/bnx/build.c
128
fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/cirruslogic/build.c
34
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/fxp/build.c
49
fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/kue/build.c
59
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/neomagic/build.c
37
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/ral/build.c
37
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/rsu/build.c
37
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/rtwn/build.c
37
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/rum/build.c
37
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/tht/build.c
37
fd = open(THT_FW_NAME, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/tigon/build.c
89
fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/tusb3410/build.c
35
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/typhoon/build.c
46
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/urtwn/build.c
37
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/yds/build.c
75
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/zydas/build.c
37
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/pci/maestro.c
996
if ((OFLAGS(flags) & O_ACCMODE) != O_WRONLY)
sys/miscfs/fuse/fuse_vnops.c
950
flags = O_WRONLY;
usr.bin/at/at.c
171
fd = open(atfile, O_WRONLY | O_CREAT | O_EXCL, S_IRUSR);
usr.bin/aucat/afile.c
867
O_WRONLY | O_TRUNC | O_CREAT, 0666);
usr.bin/audioctl/audioctl.c
312
fd = open(path, O_WRONLY);
usr.bin/calendar/io.c
366
fderr = open(_PATH_DEVNULL, O_WRONLY);
usr.bin/compress/main.c
525
fd = open(out, O_WRONLY, S_IWUSR);
usr.bin/compress/main.c
536
fd = open(out, O_WRONLY|O_CREAT|O_TRUNC, S_IWUSR);
usr.bin/ctfconv/generate.c
414
fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
usr.bin/cvs/buf.c
216
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1) {
usr.bin/cvs/client.c
771
if ((fd = open(fpath, O_CREAT | O_WRONLY | O_TRUNC)) == -1)
usr.bin/cvs/client.c
850
if ((fd = open(fpath, O_CREAT | O_WRONLY | O_TRUNC)) == -1)
usr.bin/cvs/file.c
1096
if ((dst = open(to, O_CREAT|O_TRUNC|O_WRONLY,
usr.bin/cvs/history.c
166
if ((fd = open(fpath, O_WRONLY|O_APPEND)) == -1) {
usr.bin/cvs/init.c
153
if ((fd = open(path, O_WRONLY | O_CREAT | O_EXCL, 0444)) == -1)
usr.bin/cvs/repository.c
85
if ((i = open(fpath, O_WRONLY|O_CREAT|O_TRUNC, 0755)) == -1) {
usr.bin/cvs/server.c
420
if ((fd = open(fpath, O_WRONLY | O_CREAT | O_TRUNC)) == -1)
usr.bin/cvs/util.c
548
if ((fd = open(buf, O_WRONLY|O_CREAT|O_EXCL, 0666 & ~cvs_umask))
usr.bin/ftp/fetch.c
1015
out = open(savefile, O_CREAT | O_WRONLY | O_APPEND,
usr.bin/ftp/fetch.c
1019
out = open(savefile, O_CREAT | O_WRONLY | O_TRUNC,
usr.bin/ftp/fetch.c
225
out = open(savefile, O_CREAT | O_WRONLY | O_TRUNC, 0666);
usr.bin/gencat/gencat.c
163
if ((ofd = open(catfile, O_WRONLY | O_TRUNC | O_CREAT, 0666)) == -1)
usr.bin/indent/indent.c
1311
bakchn = open(bakfile, O_CREAT | O_TRUNC | O_WRONLY, 0600);
usr.bin/ktrace/ktrace.c
180
if ((fd = open(tracefile, O_CREAT | O_WRONLY, DEFFILEMODE)) == -1)
usr.bin/ktrace/ktrace.c
188
if ((fd = open(tracefile, O_CREAT | O_EXCL | O_WRONLY,
usr.bin/less/edit.c
643
logfile = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0644);
usr.bin/less/edit.c
649
logfile = open(filename, O_WRONLY | O_APPEND);
usr.bin/mail/lex.c
111
if ((i = open(name, O_WRONLY)) == -1)
usr.bin/mail/quit.c
225
if ((fdx = open(mbox, O_CREAT | O_TRUNC | O_WRONLY, 0600)) != -1)
usr.bin/mail/v7.local.c
77
fd = open(mailname, O_CREAT | O_TRUNC | O_WRONLY, 0600);
usr.bin/mandoc/term_tag.c
117
tfd = open(tagfilename, O_WRONLY | O_CREAT | O_EXCL, 0644);
usr.bin/mandoc/term_tag.c
98
ofd = open(outfilename, O_WRONLY | O_CREAT | O_EXCL, 0644);
usr.bin/mg/fileio.c
398
if ((ofd = open(toname, O_WRONLY|O_CREAT|O_TRUNC, fmode)) == -1) {
usr.bin/midicat/midicat.c
102
ofd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
usr.bin/mixerctl/mixerctl.c
293
if ((fd = open(file, O_WRONLY)) == -1)
usr.bin/patch/inp.c
162
if ((fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0666)) != -1)
usr.bin/patch/inp.c
288
if ((tifd = open(TMPINNAME, O_EXCL | O_CREAT | O_WRONLY, 0666)) == -1)
usr.bin/patch/util.c
157
tofd = open(to, O_CREAT|O_TRUNC|O_WRONLY, 0666);
usr.bin/pctr/pctr.c
357
fd = open(_PATH_PCTR, O_WRONLY);
usr.bin/rcs/buf.c
281
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1) {
usr.bin/rcs/co.c
472
if ((fd = open(dst, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1)
usr.bin/rsync/copy.c
82
O_WRONLY | O_NOFOLLOW | O_TRUNC | O_CREAT | O_EXCL,
usr.bin/sed/compile.c
271
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/compile.c
598
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/process.c
227
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/process.c
428
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, DEFFILEMODE)) == -1)
usr.bin/signify/signify.c
107
(oflags & O_WRONLY) ? "writing" : "reading");
usr.bin/signify/signify.c
246
fd = xopen(filename, O_CREAT|oflags|O_NOFOLLOW|O_WRONLY, mode);
usr.bin/signify/signify.c
449
fd = xopen(sigfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
usr.bin/signify/signify.c
583
fd = xopen(msgfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
usr.bin/signify/signify.c
97
if ((oflags & O_WRONLY))
usr.bin/signify/zsig.c
224
fdout = xopen(msgfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
usr.bin/signify/zsig.c
294
fdout = xopen(sigfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
usr.bin/ssh/authfile.c
491
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0644)) == -1)
usr.bin/ssh/log.c
287
if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0600)) == -1) {
usr.bin/ssh/scp.c
1832
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) == -1) {
usr.bin/ssh/sftp-client.c
1626
local_fd = open(local_path, O_WRONLY | O_CREAT |
usr.bin/ssh/sftp-server.c
255
flags = O_WRONLY;
usr.bin/ssh/ssh-keygen.c
2570
if ((wfd = open(wfile, O_WRONLY|O_CREAT|O_TRUNC,
usr.bin/ssh/sshbuf-io.c
102
if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)) == -1)
usr.bin/ssh/sshpty.c
112
fd = open(_PATH_TTY, O_WRONLY);
usr.bin/tee/tee.c
102
if ((fd = open(*argv, O_WRONLY | O_CREAT |
usr.bin/tftp/main.c
456
fd = open(cp, O_CREAT | O_TRUNC | O_WRONLY, 0644);
usr.bin/tftp/main.c
468
fd = open(cp, O_CREAT | O_TRUNC | O_WRONLY, 0644);
usr.bin/tmux/client.c
85
if ((lockfd = open(lockfile, O_WRONLY|O_CREAT, 0600)) == -1) {
usr.bin/tmux/cmd-pipe-pane.c
145
null_fd = open(_PATH_DEVNULL, O_WRONLY);
usr.bin/tmux/file.c
582
const int flags = O_NONBLOCK|O_WRONLY|O_CREAT;
usr.bin/tmux/tty.c
94
tty_log_fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
usr.bin/touch/touch.c
139
fd = open(*argv, O_WRONLY | O_CREAT, DEFFILEMODE);
usr.bin/uudecode/uudecode.c
268
flags = O_WRONLY|O_CREAT|O_EXCL|O_NOFOLLOW;
usr.bin/vi/common/exf.c
1108
if ((wfd = open(wfname, flags | O_WRONLY, S_IRUSR | S_IWUSR)) < 0 ||
usr.bin/vi/common/exf.c
819
oflags = O_CREAT | O_WRONLY |
usr.bin/vi/ex/ex_mkexrc.c
64
if ((fd = open(fname, O_CREAT | O_TRUNC | O_WRONLY,
usr.bin/wall/ttymsg.c
90
if ((fd = open(device, O_WRONLY|O_NONBLOCK)) == -1) {
usr.bin/write/write.c
237
fd = open(path, O_WRONLY);
usr.sbin/acme-client/chngproc.c
120
fd = open(fs[fsz - 1], O_WRONLY|O_CREAT|O_TRUNC, 0444);
usr.sbin/acpidump/acpidump.c
375
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, mode);
usr.sbin/apmd/apmd.c
329
fd = open("/etc/random.seed", O_WRONLY);
usr.sbin/bgpd/mrt.c
1141
O_WRONLY|O_NONBLOCK|O_CREAT|O_TRUNC|O_CLOEXEC, 0644);
usr.sbin/config/exec_elf.c
143
if ((fd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0700)) == -1)
usr.sbin/crunchgen/mangle.c
96
key_fd = open(filename, O_WRONLY|O_TRUNC|O_CREAT, 0666);
usr.sbin/dhcpd/db.c
199
db_fd = open(path_dhcpd_db, O_WRONLY|O_CREAT, 0640);
usr.sbin/edquota/edquota.c
330
if ((fd = open(qup->qfname, O_WRONLY)) == -1) {
usr.sbin/hostapd/llc.c
50
iapp->i_raw = hostapd_bpf_open(O_WRONLY);
usr.sbin/httpd/logger.c
186
if ((fd = open(path, O_WRONLY|O_APPEND|O_CREAT, 0644)) == -1) {
usr.sbin/ikectl/ikeca.c
604
if ((ofd = open(dst, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1) {
usr.sbin/ikectl/ikeca.c
633
if ((ofd = open(dst, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1)
usr.sbin/ikectl/ikeca.c
814
if ((fd = open(dst, O_WRONLY|O_CREAT, 0644)) == -1)
usr.sbin/ikectl/ikeca.c
963
if ((fd = open(ca->index, O_WRONLY | O_CREAT, 0644))
usr.sbin/ikectl/ikeca.c
977
if ((fd = open(ca->serial, O_WRONLY | O_CREAT, 0644))
usr.sbin/installboot/util.c
148
fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC,
usr.sbin/installboot/util.c
56
dfd = open(dstfile, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
usr.sbin/lpd/lp.c
476
fd = open(path, O_WRONLY|O_CREAT|O_NOFOLLOW|O_NONBLOCK|O_EXLOCK|O_TRUNC,
usr.sbin/lpd/lp.c
740
fd = open(path, O_WRONLY|O_CREAT|O_NOFOLLOW|O_EXLOCK|O_TRUNC, 0660);
usr.sbin/lpd/printer.c
1126
mode = lp->lp_rw ? O_RDWR : O_WRONLY;
usr.sbin/lpd/printer.c
147
fd = open(LP_LF(lp), O_WRONLY|O_APPEND);
usr.sbin/lpr/lpc/cmds.c
141
if ((fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW,
usr.sbin/lpr/lpc/cmds.c
196
fd = safe_open(statfile, O_WRONLY|O_CREAT|O_NOFOLLOW, 0660);
usr.sbin/lpr/lpc/cmds.c
498
if ((fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW, 0670)) < 0)
usr.sbin/lpr/lpc/cmds.c
579
if ((fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW, 0770)) < 0)
usr.sbin/lpr/lpc/cmds.c
594
fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW, 0660);
usr.sbin/lpr/lpc/cmds.c
934
if ((fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW, 0760)) < 0)
usr.sbin/lpr/lpd/printjob.c
141
fd = open(LF, O_WRONLY|O_APPEND); /* set up log file */
usr.sbin/lpr/lpd/printjob.c
145
if ((fd = open(_PATH_DEVNULL, O_WRONLY)) < 0)
usr.sbin/lpr/lpd/printjob.c
1456
pfd = open(LP, RW ? O_RDWR : O_WRONLY);
usr.sbin/lpr/lpd/printjob.c
1597
fd = open(ST, O_WRONLY|O_CREAT|O_NOFOLLOW|O_EXLOCK, 0660);
usr.sbin/lpr/lpd/printjob.c
176
lfd = safe_open(LO, O_WRONLY|O_CREAT|O_NOFOLLOW|O_EXLOCK, 0640);
usr.sbin/lpr/lpd/printjob.c
652
if ((fo = open(".railmag", O_CREAT|O_WRONLY|O_EXCL, FILMOD)) < 0) {
usr.sbin/lpr/lpd/printjob.c
735
n = open(tempfile, O_WRONLY|O_CREAT|O_EXCL, 0664);
usr.sbin/lpr/lpd/recvjob.c
100
if (open(LF, O_WRONLY|O_APPEND, 0664) < 0) {
usr.sbin/lpr/lpd/recvjob.c
102
(void)open(_PATH_DEVNULL, O_WRONLY);
usr.sbin/lpr/lpd/recvjob.c
232
if ((fd = open(file, O_CREAT|O_EXCL|O_WRONLY, FILMOD)) < 0)
usr.sbin/lpr/lpr/lpr.c
507
f = open(n, O_WRONLY|O_EXCL|O_CREAT, FILMOD);
usr.sbin/nsd/nsd.c
645
if((fd = open(nsd->pidfile, O_WRONLY | O_CREAT | O_TRUNC
usr.sbin/nsd/nsd.c
685
fd = open(file, O_WRONLY | O_TRUNC
usr.sbin/ocspcheck/ocspcheck.c
595
staplefd = open(outfile, O_WRONLY|O_CREAT,
usr.sbin/pcidump/pcidump.c
207
romfd = open(romfile, O_WRONLY|O_CREAT|O_TRUNC, 0777);
usr.sbin/pppd/main.c
1062
errfd = open(_PATH_CONNERRS, O_WRONLY | O_APPEND | O_CREAT, 0600);
usr.sbin/pwd_mkdb/pwd_mkdb.c
268
O_WRONLY|O_CREAT|O_EXCL, PERM_INSECURE)) == -1)
usr.sbin/pwd_mkdb/pwd_mkdb.c
391
if ((to_fd = open(to, O_WRONLY|O_CREAT|O_EXCL, mode)) == -1)
usr.sbin/rpki-client/repo.c
1021
flags = O_WRONLY|O_CREAT|O_TRUNC;
usr.sbin/rpki-client/repo.c
405
O_WRONLY | O_CREAT | O_TRUNC | O_NOFOLLOW | O_CLOEXEC,
usr.sbin/sasyncd/monitor.c
443
if ((fd = open(ISAKMPD_FIFO, O_WRONLY)) == -1) {
usr.sbin/smtpd/mail.maildir.c
180
fd = open(tmp, O_CREAT | O_EXCL | O_WRONLY, 0600);
usr.sbin/smtpd/mail.mboxfile.c
71
fd = open(filename, O_CREAT | O_APPEND | O_WRONLY | O_EXLOCK, 0600);
usr.sbin/syslogd/privsep.c
260
fd = open(path, O_WRONLY|O_NONBLOCK);
usr.sbin/syslogd/privsep.c
456
return (open(path, O_WRONLY|O_APPEND|O_NONBLOCK));
usr.sbin/syslogd/syslogd.c
513
consfile.f_file = open(consfile.f_un.f_fname, O_WRONLY|O_NONBLOCK);
usr.sbin/tcpdump/privsep.c
451
file = open(WFileName, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr.sbin/tftpd/tftpd.c
1058
fd = open(filename, mode == RRQ ? O_RDONLY : (O_WRONLY|wmode), 0666);
usr.sbin/unbound/daemon/unbound.c
378
if((fd = open(pidfile, O_WRONLY | O_CREAT | O_TRUNC
usr.sbin/unbound/daemon/unbound.c
736
fd = open(daemon->pidfile, O_WRONLY | O_TRUNC