bin/cat/cat.c
506
case O_WRONLY:
bin/cp/utils.c
192
O_WRONLY | O_TRUNC | (beneath ? O_RESOLVE_BENEATH : 0), 0);
bin/cp/utils.c
196
O_WRONLY | O_TRUNC | O_CREAT |
bin/dd/dd.c
195
out.fd = open(out.name, O_WRONLY | oflags, DEFFILEMODE);
bin/mv/mv.c
276
open(to, O_CREAT | O_EXCL | O_TRUNC | O_WRONLY, 0)) < 0) {
bin/pax/ar_io.c
60
#define AR_MODE (O_WRONLY | O_CREAT | O_TRUNC) /* mode for archive */
bin/pax/file_subs.c
105
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC,
bin/pax/file_subs.c
87
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL,
bin/sh/redir.c
189
if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0)
bin/sh/redir.c
192
if ((f = open(fname, O_WRONLY, 0666)) < 0)
bin/sh/redir.c
207
if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
bin/sh/redir.c
212
if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0)
cddl/usr.sbin/zfsd/case_file.cc
956
int fd(open(saveFile.str().c_str(), O_CREAT|O_TRUNC|O_WRONLY, 0644));
crypto/heimdal/appl/ftp/ftpd/logwtmp.c
172
fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0);
crypto/heimdal/appl/ftp/ftpd/logwtmp.c
175
fdx = open(WTMPX_FILE, O_WRONLY|O_APPEND, 0);
crypto/heimdal/appl/login/utmp_login.c
151
if (ttyno > 0 && (fd = open(_PATH_UTMP, O_WRONLY, 0)) >= 0) {
crypto/heimdal/appl/login/utmp_login.c
160
if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
crypto/heimdal/appl/login/utmpx_login.c
59
if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
crypto/heimdal/appl/push/push.c
260
out_fd = open(outfilename, O_WRONLY | O_APPEND | O_CREAT, 0666);
crypto/heimdal/appl/rcp/rcp.c
564
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
crypto/heimdal/appl/telnet/telnetd/sys_term.c
1168
if ((i = open(wtmpf, O_WRONLY|O_APPEND)) >= 0) {
crypto/heimdal/appl/telnet/telnetd/sys_term.c
1463
int f = open(wtmpf, O_WRONLY|O_APPEND);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
1523
f = open(wtmpf, O_WRONLY|O_APPEND);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
1561
if ((fd = open(wtmpf, O_WRONLY | O_APPEND)) >= 0) {
crypto/heimdal/kdc/process.c
276
fd = open(fn, O_WRONLY|O_CREAT|O_APPEND, 0600);
crypto/heimdal/lib/asn1/check-common.c
183
fd = open("/dev/stdout", O_WRONLY, 0600);
crypto/heimdal/lib/krb5/fcache.c
386
krb5_boolean exclusive = ((flags | O_WRONLY) == flags ||
crypto/heimdal/lib/krb5/fcache.c
505
ret = fcc_open(context, id, &fd, O_WRONLY | O_APPEND | O_BINARY | O_CLOEXEC, 0);
crypto/heimdal/lib/krb5/fcache.c
986
O_WRONLY | O_CREAT | O_EXCL | O_BINARY | O_CLOEXEC, 0600);
crypto/heimdal/lib/krb5/log.c
316
int i = open(fn, O_WRONLY | O_CREAT |
crypto/heimdal/lib/roken/dumpdata.c
47
fd = open(filename, O_WRONLY|O_TRUNC|O_CREAT, 0640);
crypto/heimdal/lib/roken/simple_exec.c
179
out_fd[1] = open(_PATH_DEVNULL, O_WRONLY);
crypto/heimdal/lib/roken/simple_exec.c
181
err_fd[1] = open(_PATH_DEVNULL, O_WRONLY);
crypto/heimdal/lib/roken/socket_wrapper.c
910
fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_APPEND, 0644);
crypto/heimdal/lib/roken/socket_wrapper.c
925
fd = open(fname, O_WRONLY|O_APPEND, 0644);
crypto/heimdal/lib/roken/test-mem.c
75
fd = open("/dev/stdout", O_WRONLY, 0600);
crypto/krb5/src/kadmin/dbutil/dump.c
186
fd = open(file_ok, O_WRONLY | O_CREAT | O_TRUNC, 0600);
crypto/krb5/src/kprop/kprop.c
586
fd = THREEPARAMOPEN(file_last_prop, O_WRONLY | O_CREAT | O_TRUNC, 0600);
crypto/krb5/src/kprop/kpropd.c
557
database_fd = open(temp_file_name, O_WRONLY | O_CREAT | O_TRUNC, 0600);
crypto/krb5/src/lib/kadm5/logger.c
313
fd = open(&cp[5], O_CREAT | O_WRONLY | append,
crypto/krb5/src/lib/krb5/os/trace.c
458
*fd = open(filename, O_WRONLY|O_CREAT|O_APPEND, 0600);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_open.c
199
case O_WRONLY:
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
106
if (!file || (flags & O_ACCMODE) == O_WRONLY) {
crypto/krb5/src/plugins/kdb/db2/libdb2/include/db-int.h
226
#define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
152
O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
crypto/krb5/src/util/ss/pager.c
62
fd = open("/dev/tty", O_WRONLY, 0);
crypto/openssh/authfile.c
500
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0644)) == -1)
crypto/openssh/log.c
321
if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0600)) == -1) {
crypto/openssh/loginrec.c
1090
if ((fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0)) < 0) {
crypto/openssh/loginrec.c
1262
if ((fd = open(WTMPX_FILE, O_WRONLY|O_APPEND, 0)) < 0) {
crypto/openssh/loginrec.c
1723
if ((fd = open(_PATH_BTMP, O_WRONLY | O_APPEND)) < 0) {
crypto/openssh/openbsd-compat/bsd-misc.c
133
int ret, oflags = O_WRONLY;
crypto/openssh/openbsd-compat/bsd-misc.c
170
int ret, oflags = O_WRONLY;
crypto/openssh/openbsd-compat/bsd-misc.c
201
int ret, oflags = O_WRONLY;
crypto/openssh/openbsd-compat/bsd-misc.c
228
fd = open(path, O_WRONLY);
crypto/openssh/openbsd-compat/port-solaris.c
173
if ((ctl_fd = open64(ctl_path, O_WRONLY)) < 0) {
crypto/openssh/scp.c
1878
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) == -1) {
crypto/openssh/sftp-client.c
1650
local_fd = open(local_path, O_WRONLY | O_CREAT |
crypto/openssh/sftp-server.c
265
flags = O_WRONLY;
crypto/openssh/ssh-keygen.c
2663
if ((wfd = open(wfile, O_WRONLY|O_CREAT|O_TRUNC,
crypto/openssh/sshbuf-io.c
105
if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)) == -1)
crypto/openssh/sshkey-xmss.c
618
if ((fd = open(nstatefile, O_CREAT|O_WRONLY|O_EXCL, 0600)) == -1) {
crypto/openssh/sshpty.c
141
fd = open(_PATH_TTY, O_WRONLY);
crypto/openssl/apps/lib/apps.c
3101
mode = O_WRONLY;
crypto/openssl/crypto/rand/randfile.c
213
int fd = open(file, O_WRONLY | O_CREAT | O_BINARY, 0600);
crypto/openssl/ssl/ssl_lib.c
3963
fdno = open(keylogfile, O_WRONLY | O_CREAT | O_APPEND, 0600);
lib/geom/eli/geom_eli.c
1736
filefd = open(file, O_WRONLY | O_TRUNC | O_CREAT, 0600);
lib/geom/eli/geom_eli.c
692
fd = open(prov, O_WRONLY | O_TRUNC);
lib/geom/part/geom_part.c
1190
fd = open(dsf, O_WRONLY);
lib/libc/db/btree/bt_open.c
191
case O_WRONLY:
lib/libc/db/hash/hash.c
113
if ((flags & O_ACCMODE) == O_WRONLY) {
lib/libc/db/hash/hash.c
114
flags &= ~O_WRONLY;
lib/libc/db/hash/hash.c
526
if ((hashp->flags & O_ACCMODE) == O_WRONLY) {
lib/libc/db/test/dbtest.c
105
O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
lib/libc/gen/pututxline.c
274
fd = _open(_PATH_UTX_LOG, O_CREAT|O_WRONLY|O_APPEND|O_CLOEXEC, 0644);
lib/libc/gen/syslog.c
318
(fd = _open(_PATH_CONSOLE, O_WRONLY|O_NONBLOCK|O_CLOEXEC, 0)) >=
lib/libc/gmon/gmon.c
154
fd = _open(outname, O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0666);
lib/libc/gmon/gmon.c
160
log = _open("gmon.log", O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0664);
lib/libc/stdio/flags.c
62
m = O_WRONLY;
lib/libc/stdio/flags.c
68
m = O_WRONLY;
lib/libc/stdio/fmemopen.c
140
(flags & O_ACCMODE) == O_WRONLY ? NULL : fmemopen_read,
lib/libc/sys/creat.c
47
O_WRONLY | O_CREAT | O_TRUNC, mode));
lib/libc/tests/db/dbm_open_test.c
41
ATF_CHECK(dbm_open(path, O_WRONLY, 0755) == NULL);
lib/libc/tests/db/dbm_open_test.c
43
ATF_CHECK(dbm_open(path, O_WRONLY | O_CREAT, 0755) != NULL);
lib/libc/tests/db/dbm_perm_test.c
66
db = dbm_open(path, O_WRONLY, 0755);
lib/libc/tests/gen/dir2_test.c
149
fd = openat(dd, filename, O_WRONLY | O_CREAT, 0600);
lib/libc/tests/gen/dir2_test.c
72
fd = openat(dd, filename, O_WRONLY | O_CREAT, 0600);
lib/libc/tests/gen/dlopen_empty_test.c
67
fd = open(soname, O_WRONLY | O_CREAT | O_TRUNC, DEFFILEMODE);
lib/libc/tests/stdio/fdopen_test.c
114
runtest(_PATH_DEVNULL, O_WRONLY, "a", true);
lib/libc/tests/stdio/fdopen_test.c
135
runtest(_PATH_DEVNULL, O_WRONLY, "r+", false);
lib/libc/tests/stdio/fdopen_test.c
156
runtest(_PATH_DEVNULL, O_WRONLY, "w+", false);
lib/libc/tests/stdio/fdopen_test.c
72
runtest(_PATH_DEVNULL, O_WRONLY, "r", false);
lib/libc/tests/stdio/fdopen_test.c
93
runtest(_PATH_DEVNULL, O_WRONLY, "w", true);
lib/libc/tests/stdio/fopen_test.c
61
wantedflags = O_WRONLY;
lib/libc/tests/stdio/fopen_test.c
63
wantedflags = O_WRONLY | O_APPEND;
lib/libc/tests/stdio/getdelim_test.c
305
ATF_REQUIRE((fd_fifo = open("fifo", O_WRONLY)) != -1);
lib/libc/tests/stdtime/detect_tz_changes_test.c
78
ATF_REQUIRE((dfd = open(tfn, O_CREAT | O_TRUNC | O_WRONLY, 0644)) >= 0);
lib/libc/tests/sys/sendfile_test.c
1109
client_sock = open(_PATH_DEVNULL, O_WRONLY);
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
343
fa = fileargs_init(MAX_FILES, files, O_WRONLY, 0, &rights,
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
354
ATF_REQUIRE(test_file_mode(fd, O_WRONLY) == 0);
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
521
fa = fileargs_init(MAX_FILES, files, O_WRONLY, 0, &rights,
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
533
ATF_REQUIRE(test_file_mode(fd, O_WRONLY) == 0);
lib/libcasper/services/cap_sysctl/tests/sysctl_test.c
87
fd = open(file, O_CREAT | O_WRONLY, 0600);
lib/libdpv/dpv.c
588
O_CREAT|O_WRONLY, DEFFILEMODE & ~mask))
lib/libfetch/ftp.c
1144
oflag = O_WRONLY;
lib/libfetch/ftp.c
502
if (io->cconn == NULL || io->dconn == NULL || io->dir == O_WRONLY) {
lib/libpmcstat/libpmcstat_logging.c
508
O_RDONLY : (O_WRONLY|O_CREAT|O_TRUNC),
lib/libsecureboot/openpgp/dearmor.c
123
if ((fd = open(outfile, O_WRONLY|O_CREAT|O_TRUNC)) < 0)
lib/libsysdecode/flags.c
286
case O_WRONLY:
lib/libutil/pidfile.c
174
O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NONBLOCK, mode);
lib/libutil/uucplock.c
75
if ((tmpfd = open(lcktmpname, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC,
lib/virtual_oss/oss/oss.c
146
return (oss_open(pbe, devname, samplerate, bufsize, pchannels, pformat, O_WRONLY, 0));
libexec/atrun/atrun.c
256
O_WRONLY | O_CREAT | O_EXCL, S_IWUSR | S_IRUSR)) < 0)
libexec/phttpget/phttpget.c
597
fd = open(fname, O_CREAT | O_TRUNC | O_WRONLY, 0644);
libexec/tftpd/tftpd.c
668
*fd = open(newname, O_WRONLY | O_CREAT | O_EXCL, 0666);
libexec/tftpd/tftpd.c
778
O_WRONLY | O_TRUNC | O_CREAT,
libexec/tftpd/tftpd.c
783
fd = open(filename, O_WRONLY | O_TRUNC);
sbin/decryptcore/decryptcore.c
415
ofd = open(core, O_WRONLY | O_CREAT | O_EXCL, 0600);
sbin/dhclient/bpf.c
150
info->wfdesc = if_register_bpf(info, O_WRONLY);
sbin/dump/tape.c
618
open(tape, O_WRONLY|O_CREAT, 0666))) < 0)
sbin/dump/tape.c
621
open(tape, O_WRONLY|O_CREAT, 0666)) < 0)
sbin/fsck_ffs/main.c
290
(nflag || (fswritefd = open(filesys, O_WRONLY)) < 0)) {
sbin/fsck_ffs/setup.c
92
(nflag || (fswritefd = open(dev, O_WRONLY)) < 0)) {
sbin/ggate/ggated/ggated.c
405
flags = O_WRONLY;
sbin/ggate/ggatel/ggatel.c
81
openflags = O_WRONLY;
sbin/growfs/growfs.c
1506
fso = open(device, O_WRONLY);
sbin/hastd/hooks.c
116
fd = open(_PATH_DEVNULL, O_WRONLY);
sbin/init/init.c
603
fd = open(_PATH_INITLOG, O_WRONLY | O_APPEND | O_CREAT, 0644);
sbin/init/init.c
688
fd = open(path, O_WRONLY | O_CREAT | O_EXCL, 0700);
sbin/ipf/ipfs/ipfs.c
378
wfd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0600);
sbin/ipf/ipfs/ipfs.c
689
nfd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0600);
sbin/ipf/ipfsync/ipsyncs.c
112
lfd = open(IPSYNC_NAME, O_WRONLY);
sbin/ipf/ipfsync/ipsyncs.c
85
lfd = open(IPSYNC_NAME, O_WRONLY);
sbin/ipf/ipftest/ip_fil.c
138
fd = open(fname, O_WRONLY|O_APPEND);
sbin/ipf/ipftest/ip_fil.c
347
fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600);
sbin/ipf/ipftest/ip_fil.c
358
fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600);
sbin/ipf/ipftest/ipftest.c
610
fd = open(filename, O_CREAT|O_TRUNC|O_WRONLY, 0644);
sbin/ipf/ipmon/ipmon.c
1427
if ((fd = open(file, O_CREAT|O_TRUNC|O_WRONLY, 0644)) >= 0) {
sbin/nvmecontrol/modules/wdc/wdc.c
186
fd2 = open(tmpl, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sbin/nvmecontrol/modules/wdc/wdc.c
335
fd2 = open(tmpl, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sbin/nvmecontrol/telemetry.c
135
fdout = open(opt.outfn, O_WRONLY | O_CREAT, 0664);
sbin/pfctl/tests/pfctl_test.c
147
posix_spawn_file_actions_addopen(&action, STDOUT_FILENO, "/dev/null", O_WRONLY, 0);
sbin/pfctl/tests/pfctl_test.c
148
posix_spawn_file_actions_addopen(&action, STDERR_FILENO, "/dev/null", O_WRONLY, 0);
sbin/recoverdisk/recoverdisk.c
817
write_fd = open(argv[1], O_WRONLY | O_CREAT, DEFFILEMODE);
sbin/restore/dirs.c
679
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
sbin/restore/tape.c
702
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC,
sbin/route/route.c
249
s = open(_PATH_DEVNULL, O_WRONLY, 0);
sbin/savecore/savecore.c
1163
fdcore = openat(savedirfd, corename, O_WRONLY | O_CREAT | O_TRUNC,
sbin/savecore/savecore.c
274
if ((fp = xfopenat(savedirfd, "bounds", O_WRONLY | O_CREAT | O_TRUNC,
sbin/savecore/savecore.c
293
fd = openat(savedirfd, keyname, O_WRONLY | O_CREAT | O_TRUNC, 0600);
sbin/savecore/savecore.c
322
O_WRONLY | O_CREAT | O_TRUNC, "w", 0600)) == NULL) {
sbin/shutdown/shutdown.c
577
if ((logfd = open(_PATH_NOLOGIN, O_WRONLY|O_CREAT|O_TRUNC,
sbin/swapon/swapon.c
712
fd = open(name, O_WRONLY);
sbin/veriexec/veriexec.c
187
dev_fd = open(_PATH_DEV_VERIEXEC, O_WRONLY, 0);
share/examples/sound/oss.h
225
case O_WRONLY:
stand/ficl/loader.c
533
if ((mode & O_ACCMODE) != O_WRONLY) {
stand/liblua/lstd.c
52
m = O_WRONLY;
stand/liblua/lstd.c
82
if (S_ISREG(st.st_mode) && !(m & O_WRONLY)) {
sys/compat/linux/linux_file.c
105
O_WRONLY | O_CREAT | O_TRUNC, args->mode));
sys/compat/linux/linux_file.c
117
bsd_flags |= O_WRONLY;
sys/compat/linux/linux_file.c
1387
if (result & O_WRONLY)
sys/compat/linux/linux_misc.c
897
O_WRONLY | O_CREAT | O_TRUNC, args->mode);
sys/compat/linux/linux_misc.c
939
O_WRONLY | O_CREAT | O_TRUNC, args->mode);
sys/fs/fuse/fuse_file.h
79
FUFH_WRONLY = O_WRONLY,
sys/fs/p9fs/p9fs_vnops.c
617
case O_WRONLY:
sys/fs/unionfs/union_subr.c
1289
fmode = FFLAGS(O_WRONLY | O_CREAT | O_TRUNC | O_EXCL);
sys/kern/vfs_syscalls.c
1105
case O_WRONLY:
sys/kern/vfs_syscalls.c
1382
O_WRONLY | O_CREAT | O_TRUNC, uap->mode));
sys/security/audit/audit_bsm_klib.c
216
oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY);
sys/security/audit/audit_bsm_klib.c
232
oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY);
sys/security/audit/audit_bsm_klib.c
74
{ O_WRONLY, AUE_OPEN_W },
sys/security/audit/audit_bsm_klib.c
75
{ (O_WRONLY | O_CREAT), AUE_OPEN_WC },
sys/security/audit/audit_bsm_klib.c
76
{ (O_WRONLY | O_CREAT | O_TRUNC), AUE_OPEN_WTC },
sys/security/audit/audit_bsm_klib.c
77
{ (O_WRONLY | O_TRUNC), AUE_OPEN_WT },
sys/security/audit/audit_bsm_klib.c
89
{ O_WRONLY, AUE_OPENAT_W },
sys/security/audit/audit_bsm_klib.c
90
{ (O_WRONLY | O_CREAT), AUE_OPENAT_WC },
sys/security/audit/audit_bsm_klib.c
91
{ (O_WRONLY | O_CREAT | O_TRUNC), AUE_OPENAT_WTC },
sys/security/audit/audit_bsm_klib.c
92
{ (O_WRONLY | O_TRUNC), AUE_OPENAT_WT },
tests/sys/aio/aio_test.c
529
write_fd = open(FIFO_PATHNAME, O_WRONLY);
tests/sys/audit/administrative.c
328
ATF_REQUIRE((filedesc = open(path, O_CREAT | O_WRONLY, mode)) != -1);
tests/sys/audit/open.c
164
OPEN_AT_TC_DEFINE(write, "write", O_WRONLY, "fw")
tests/sys/audit/open.c
165
OPEN_AT_TC_DEFINE(write_creat, "write,creat", O_WRONLY | O_CREAT, "fw")
tests/sys/audit/open.c
166
OPEN_AT_TC_DEFINE(write_trunc, "write,trunc", O_WRONLY | O_TRUNC, "fw")
tests/sys/audit/open.c
167
OPEN_AT_TC_DEFINE(write_creat_trunc, "write,creat,trunc", O_WRONLY | O_CREAT
tests/sys/capsicum/capability-fd.cc
343
int file = openat(dir, filename, O_WRONLY|O_CREAT, 0644);
tests/sys/capsicum/capability-fd.cc
358
file = openat(cap_dir, filename, O_WRONLY|O_APPEND);
tests/sys/capsicum/capability-fd.cc
654
rc = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND, 0600);
tests/sys/capsicum/capability-fd.cc
682
rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND);
tests/sys/capsicum/capability-fd.cc
697
rc = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND);
tests/sys/capsicum/capability-fd.cc
717
rc = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_WRONLY);
tests/sys/capsicum/capability-fd.cc
729
rc = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY, 0600);
tests/sys/capsicum/capability-fd.cc
745
rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY);
tests/sys/capsicum/capability-fd.cc
757
rc = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY);
tests/sys/capsicum/copy_file_range.cc
62
int fd = openat(wd_, OUTFILE, O_WRONLY);
tests/sys/cddl/zfs/bin/mkfile.c
44
#define MKFILE_FLAG (O_WRONLY | O_CREAT | O_TRUNC)
tests/sys/cddl/zfs/tests/ctime/ctime_001_pos.c
131
fd = open(tfile, O_WRONLY | O_CREAT | O_TRUNC, ALL_MODE);
tests/sys/cddl/zfs/tests/ctime/ctime_001_pos.c
245
if ((fd = open(pfile, O_WRONLY, ALL_MODE)) == -1) {
tests/sys/fifo/fifo_io.c
138
fd2 = open(fifoname, O_WRONLY | O_NONBLOCK);
tests/sys/fifo/fifo_kqueue.c
154
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
233
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
287
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
340
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
397
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
53
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_misc.c
88
fd2 = open(fifoname, O_WRONLY | O_NONBLOCK);
tests/sys/fifo/fifo_open.c
195
fd = open("testfifo", O_WRONLY | O_NONBLOCK);
tests/sys/fifo/fifo_open.c
221
fd = open("testfifo", O_WRONLY);
tests/sys/file/fcntlflags_test.c
84
basic_tests("/dev/null", O_WRONLY, "O_WRONLY");
tests/sys/fs/fusefs/copy_file_range.cc
185
fd2 = open(FULLPATH2, O_WRONLY);
tests/sys/fs/fusefs/copy_file_range.cc
319
fd2 = open(FULLPATH2, O_WRONLY);
tests/sys/fs/fusefs/copy_file_range.cc
430
fd2 = open(FULLPATH2, O_WRONLY);
tests/sys/fs/fusefs/copy_file_range.cc
483
fd2 = open(FULLPATH2, O_WRONLY);
tests/sys/fs/fusefs/copy_file_range.cc
527
fd2 = open(FULLPATH2, O_WRONLY);
tests/sys/fs/fusefs/copy_file_range.cc
619
fd2 = open(FULLPATH2, O_WRONLY);
tests/sys/fs/fusefs/copy_file_range.cc
728
fd2 = open(FULLPATH2, O_WRONLY);
tests/sys/fs/fusefs/copy_file_range.cc
782
fd2 = open(FULLPATH2, O_WRONLY);
tests/sys/fs/fusefs/create.cc
439
fd = open(FULLPATH, O_CREAT | O_WRONLY, mode);
tests/sys/fs/fusefs/default_permissions.cc
1000
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/default_permissions.cc
1030
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/default_permissions.cc
1583
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/default_permissions.cc
1609
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/default_permissions.cc
1640
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/default_permissions.cc
531
fd_out = open(FULLPATH_OUT, O_WRONLY);
tests/sys/fs/fusefs/default_permissions.cc
575
fd_out = open(FULLPATH_OUT, O_WRONLY);
tests/sys/fs/fusefs/default_permissions.cc
861
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/default_permissions.cc
895
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/flush.cc
102
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/flush.cc
105
fd2 = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/flush.cc
136
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/flush.cc
162
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/flush.cc
193
fd0 = open(FULLPATH0, O_WRONLY);
tests/sys/fs/fusefs/flush.cc
196
fd1 = open(FULLPATH1, O_WRONLY);
tests/sys/fs/fusefs/flush.cc
216
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/flush.cc
267
fd2 = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/fsync.cc
276
fd1 = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/interrupt.cc
514
fd1 = open(FULLPATH1, O_WRONLY);
tests/sys/fs/fusefs/open.cc
222
test_ok(O_WRONLY | O_APPEND, O_WRONLY | O_APPEND);
tests/sys/fs/fusefs/open.cc
228
test_ok(O_WRONLY | O_CREAT, O_WRONLY);
tests/sys/fs/fusefs/open.cc
234
test_ok(O_WRONLY | O_DIRECT, O_WRONLY | O_DIRECT);
tests/sys/fs/fusefs/open.cc
240
test_ok(O_WRONLY | O_EXCL, O_WRONLY);
tests/sys/fs/fusefs/open.cc
251
test_ok(O_WRONLY | O_NOCTTY, O_WRONLY);
tests/sys/fs/fusefs/open.cc
262
test_ok(O_WRONLY | O_TRUNC, O_WRONLY | O_TRUNC);
tests/sys/fs/fusefs/open.cc
267
test_ok(O_WRONLY, O_WRONLY);
tests/sys/fs/fusefs/release.cc
118
expect_release(ino, getpid(), O_WRONLY, EIO);
tests/sys/fs/fusefs/release.cc
120
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/release.cc
168
expect_release(ino, getpid(), O_WRONLY, 0);
tests/sys/fs/fusefs/release.cc
169
fd2 = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/utils.cc
512
(in.body.write.flags == O_WRONLY ||
tests/sys/fs/fusefs/write.cc
1061
expect_read(ino, 0, fsize, fsize, INITIAL, O_WRONLY);
tests/sys/fs/fusefs/write.cc
1064
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/write.cc
252
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/write.cc
353
fd = open(FULLPATH, O_WRONLY | O_APPEND);
tests/sys/fs/fusefs/write.cc
421
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/write.cc
446
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/write.cc
481
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/write.cc
507
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/write.cc
537
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/write.cc
570
fd = open(FULLPATH, O_WRONLY | oflag);
tests/sys/fs/fusefs/write.cc
608
fd = open(FULLPATH, O_WRONLY | oflag);
tests/sys/fs/fusefs/write.cc
795
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/write.cc
847
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/write.cc
880
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/write.cc
901
fd = open(FULLPATH, O_WRONLY);
tests/sys/fs/fusefs/write.cc
921
fd = open(FULLPATH, O_WRONLY);
tests/sys/kern/getdirentries_test.c
56
ATF_REQUIRE((fd = open("file", O_CREAT | O_WRONLY, 0644)) >= 0);
tests/sys/kern/tty/test_sti.c
298
wotty = openat(STDIN_FILENO, "", O_EMPTY_PATH | O_WRONLY);
tests/sys/kqueue/libkqueue/vnode.c
102
fd = open(fifo_path, O_WRONLY);
tests/sys/netinet/ip6_v4mapped_test.c
116
fd = open(SYSCTLBAKFILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL,
tests/sys/netinet/tcp_connect_port_test.c
84
fd = open(SYSCTLBAKFILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL,
tests/sys/posixshm/posixshm_test.c
621
shm_open_should_fail(test_path, O_WRONLY, 0777, EINVAL);
tests/sys/vfs/lookup_cap_dotdot.c
47
ATF_REQUIRE((fd = openat(_dirfd, name, O_CREAT | O_TRUNC | O_WRONLY,
tools/regression/aio/aiop/aiop.c
171
fd = open(fn, O_WRONLY | O_DIRECT);
tools/regression/poll/pipepoll.c
226
fd = open(FIFONAME, O_WRONLY | O_NONBLOCK);
tools/regression/poll/pipepoll.c
251
fd = open(FIFONAME, O_WRONLY | O_NONBLOCK);
tools/regression/poll/pipeselect.c
223
fd = open(FIFONAME, O_WRONLY | O_NONBLOCK);
tools/regression/poll/pipeselect.c
248
fd = open(FIFONAME, O_WRONLY | O_NONBLOCK);
tools/regression/priv/priv_vfs_read_write.c
145
asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES);
tools/regression/priv/priv_vfs_read_write.c
152
asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES);
tools/regression/priv/priv_vfs_read_write.c
159
asroot, injail, O_WRONLY, 0, 0);
tools/regression/priv/priv_vfs_read_write.c
166
asroot, injail, O_WRONLY, 0, 0);
tools/regression/priv/priv_vfs_read_write.c
178
asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES);
tools/regression/priv/priv_vfs_read_write.c
185
asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES);
tools/regression/priv/priv_vfs_read_write.c
192
asroot, injail, O_WRONLY, 0, 0);
tools/regression/priv/priv_vfs_read_write.c
199
asroot, injail, O_WRONLY, 0, 0);
tools/regression/priv/priv_vfs_read_write.c
211
asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES);
tools/regression/priv/priv_vfs_read_write.c
218
asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES);
tools/regression/priv/priv_vfs_read_write.c
225
asroot, injail, O_WRONLY, 0, 0);
tools/regression/priv/priv_vfs_read_write.c
232
asroot, injail, O_WRONLY, 0, 0);
tools/regression/security/cap_test/cap_test_capabilities.c
189
ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND,
tools/regression/security/cap_test/cap_test_capabilities.c
191
CHECK_RESULT(openat(O_CREATE | O_WRONLY | O_APPEND),
tools/regression/security/cap_test/cap_test_capabilities.c
211
ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND);
tools/regression/security/cap_test/cap_test_capabilities.c
212
CHECK_RESULT(openat(O_FSYNC | O_WRONLY | O_APPEND),
tools/regression/security/cap_test/cap_test_capabilities.c
223
ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND);
tools/regression/security/cap_test/cap_test_capabilities.c
224
CHECK_RESULT(openat(O_SYNC | O_WRONLY | O_APPEND),
tools/regression/security/cap_test/cap_test_capabilities.c
243
ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_WRONLY);
tools/regression/security/cap_test/cap_test_capabilities.c
244
CHECK_RESULT(openat(O_TRUNC | O_WRONLY),
tools/regression/security/cap_test/cap_test_capabilities.c
253
ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY, 0600);
tools/regression/security/cap_test/cap_test_capabilities.c
254
CHECK_RESULT(openat(O_CREATE | O_WRONLY),
tools/regression/security/cap_test/cap_test_capabilities.c
268
ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY);
tools/regression/security/cap_test/cap_test_capabilities.c
269
CHECK_RESULT(openat(O_FSYNC | O_WRONLY),
tools/regression/security/cap_test/cap_test_capabilities.c
276
ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY);
tools/regression/security/cap_test/cap_test_capabilities.c
277
CHECK_RESULT(openat(O_SYNC | O_WRONLY),
tools/regression/security/open_to_operation/open_to_operation.c
117
static const int file_modes[] = { O_RDONLY, O_WRONLY, O_RDWR,
tools/regression/security/open_to_operation/open_to_operation.c
118
O_RDONLY | O_TRUNC, O_WRONLY | O_TRUNC, O_RDWR | O_TRUNC };
tools/regression/security/open_to_operation/open_to_operation.c
507
if (((mode & O_ACCMODE) == O_WRONLY) ||
tools/regression/security/open_to_operation/open_to_operation.c
522
if (((mode & O_ACCMODE) == O_WRONLY) ||
tools/regression/security/open_to_operation/open_to_operation.c
538
if (((mode & O_ACCMODE) == O_WRONLY) ||
tools/regression/security/open_to_operation/open_to_operation.c
551
if (((mode & O_ACCMODE) == O_WRONLY) ||
tools/regression/security/open_to_operation/open_to_operation.c
565
if (((mode & O_ACCMODE) == O_WRONLY) ||
tools/regression/security/open_to_operation/open_to_operation.c
573
if (((mode & O_ACCMODE) == O_WRONLY) ||
tools/regression/security/open_to_operation/open_to_operation.c
789
if ((mode & O_ACCMODE) == O_WRONLY ||
tools/regression/security/open_to_operation/open_to_operation.c
795
if (!((mode & O_ACCMODE) == O_WRONLY ||
tools/regression/security/open_to_operation/open_to_operation.c
958
if ((mode & O_ACCMODE) == O_WRONLY ||
tools/regression/security/open_to_operation/open_to_operation.c
965
if ((mode & O_ACCMODE) == O_WRONLY ||
tools/regression/sockets/zerosend/zerosend.c
224
fd2 = open(path, O_WRONLY | O_NONBLOCK);
tools/test/stress2/lib/resources.c
167
O_CREAT | O_TRUNC | O_WRONLY |
tools/test/stress2/lib/resources.c
187
O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1) {
tools/test/stress2/testcases/mkfifo/mkfifo.c
74
if ((fd = open(path, O_WRONLY)) < 0) {
tools/tools/cfi/cfi.c
116
int fd = getfd(O_WRONLY);
tools/tools/cfi/cfi.c
96
int fd = getfd(O_WRONLY);
tools/tools/intel-ucode-split/intel-ucode-split.c
186
ofd = open(output_file, O_WRONLY | O_CREAT | O_TRUNC,
tools/tools/net80211/w00t/prga/prga.c
124
fd = open(p->fname, O_WRONLY | O_CREAT, 0644);
tools/tools/net80211/wesside/wesside/wesside.c
2094
fd = open(KEY_FILE, O_WRONLY | O_CREAT, 0644);
tools/tools/net80211/wesside/wesside/wesside.c
2398
weplog.fd = open(WEP_FILE, O_WRONLY | O_APPEND);
tools/tools/net80211/wesside/wesside/wesside.c
2411
weplog.fd = open(WEP_FILE, O_WRONLY | O_CREAT,
tools/tools/net80211/wesside/wesside/wesside.c
855
fd = open(PRGA_FILE, O_WRONLY | O_CREAT,
tools/tools/net80211/wesside/wesside/wesside.c
969
fd = open(path, O_WRONLY | O_CREAT, 0644);
tools/tools/syscall_timing/syscall_timing.c
1119
fd = open(tmp_path, O_WRONLY | O_CREAT, 0700);
usr.bin/at/at.c
245
if ((lockdes = open(LFILE, O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR)) < 0)
usr.bin/at/at.c
283
if ((fdes = creat(atfile, O_WRONLY)) == -1)
usr.bin/beep/beep.c
207
f = open(oss_dev, O_WRONLY);
usr.bin/bintrans/uudecode.c
268
flags = O_WRONLY | O_CREAT | O_EXCL;
usr.bin/bsdiff/bspatch/bspatch.c
147
O_CREAT | O_TRUNC | O_WRONLY | O_BINARY, 0666)) < 0)
usr.bin/dtc/dtc.cc
185
outfile = open(optarg, O_CREAT | O_TRUNC | O_WRONLY, 0666);
usr.bin/dtc/dtc.cc
216
depfile = fdopen(open(optarg, O_CREAT | O_TRUNC | O_WRONLY, 0666), "w");
usr.bin/gencat/gencat.c
176
if ((ofd = open(catfile, O_WRONLY | O_TRUNC | O_CREAT, 0666)) < 0)
usr.bin/gzip/gzip.c
1316
out = open(outfile, O_WRONLY | O_CREAT | O_EXCL, 0600);
usr.bin/gzip/gzip.c
1492
zfd = open(outfile, O_WRONLY|O_CREAT|O_EXCL, 0600);
usr.bin/ktrace/ktrace.c
136
if ((fd = open(tracefile, O_CREAT | O_WRONLY | O_NONBLOCK,
usr.bin/ktrace/ktrace.c
147
if ((fd = open(tracefile, O_CREAT | O_EXCL | O_WRONLY,
usr.bin/lockf/lockf.c
141
flags = (flags & ~O_RDONLY) | O_WRONLY;
usr.bin/mail/main.c
129
if ((i = open(Tflag, O_CREAT | O_TRUNC | O_WRONLY,
usr.bin/mail/quit.c
225
if ((fd = open(mbox, O_CREAT | O_TRUNC | O_WRONLY, 0600)) >= 0)
usr.bin/mail/v7.local.c
68
if ((fd = open(mailname, O_CREAT | O_TRUNC | O_WRONLY, 0600)) >=
usr.bin/mkimg/mkimg.c
612
outfd = open(optarg, O_WRONLY | O_CREAT | O_TRUNC,
usr.bin/mkuzip/mkuzip.c
300
cfs.fdw = open(oname, (cfs.en_dedup ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT,
usr.bin/morse/morse.c
360
if ((spkr = open(SPEAKER, O_WRONLY, 0)) == -1) {
usr.bin/morse/morse.c
366
if ((line = open(device, O_WRONLY | O_NONBLOCK)) == -1) {
usr.bin/patch/inp.c
295
if ((tifd = open(TMPINNAME, O_EXCL | O_CREAT | O_WRONLY, 0666)) < 0)
usr.bin/patch/util.c
169
tofd = open(to, O_CREAT|O_TRUNC|O_WRONLY, 0666);
usr.bin/posixmqcontrol/posixmqcontrol.c
663
mqd_t handle = mq_open(queue, O_WRONLY);
usr.bin/script/script.c
200
O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC,
usr.bin/sed/compile.c
285
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/compile.c
746
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/process.c
241
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/process.c
477
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, DEFFILEMODE)) == -1)
usr.bin/split/split.c
356
int flags = O_WRONLY | O_CREAT | O_TRUNC;
usr.bin/tee/tee.c
92
oflags = O_WRONLY | O_CREAT;
usr.bin/touch/touch.c
165
O_WRONLY | O_CREAT, DEFFILEMODE);
usr.bin/truncate/truncate.c
147
oflags = O_WRONLY;
usr.bin/truncate/truncate.c
149
oflags = O_WRONLY | O_CREAT;
usr.bin/usbhidaction/usbhidaction.c
169
fp = open(pidfile, O_WRONLY|O_CREAT, S_IRUSR|S_IRGRP|S_IROTH);
usr.bin/wall/ttymsg.c
85
if ((fd = open(device, O_WRONLY|O_NONBLOCK, 0)) < 0) {
usr.bin/write/write.c
288
fd = openat(devfd, tty, O_WRONLY);
usr.sbin/acpi/acpidb/acpidb.c
427
fd = open(filetmp, O_WRONLY | O_CREAT | O_TRUNC, mode);
usr.sbin/acpi/acpidump/acpi.c
2894
fd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, mode);
usr.sbin/acpi/acpidump/acpi.c
2933
fd = open(tmpstr, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
usr.sbin/bhyve/audio.c
102
aud->fd = open(aud->dev_name, aud->dir ? O_WRONLY : O_RDONLY, 0);
usr.sbin/bhyve/snapshot.c
1234
kdata_fd = openat(fddir, kdata_filename, O_WRONLY | O_CREAT | O_TRUNC, 0700);
usr.sbin/bhyve/snapshot.c
1255
fd_meta = openat(fddir, meta_filename, O_WRONLY | O_CREAT | O_TRUNC, 0700);
usr.sbin/bluetooth/bcmfw/bcmfw.c
126
if ((fd = open(path, O_WRONLY)) < 0) {
usr.sbin/bluetooth/bcmfw/bcmfw.c
174
if ((bulk = open(buf, O_WRONLY)) < 0) {
usr.sbin/boot0cfg/boot0cfg.c
381
fd = open(fname, O_WRONLY | flags, 0666);
usr.sbin/btxld/btxld.c
252
if ((fdo = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0666)) == -1)
usr.sbin/certctl/certctl.c
508
fd = open(_PATH_DEVNULL, O_WRONLY);
usr.sbin/certctl/certctl.c
512
O_CREAT | O_WRONLY | O_TRUNC, mode);
usr.sbin/certctl/certctl.c
521
fd = open(_PATH_DEVNULL, O_WRONLY);
usr.sbin/certctl/certctl.c
525
O_CREAT | O_WRONLY | O_EXCL, mode);
usr.sbin/certctl/certctl.c
593
fd = open(_PATH_DEVNULL, O_WRONLY);
usr.sbin/certctl/certctl.c
596
fd = openat(d, tmpfile, O_WRONLY | O_CREAT | O_EXCL, mode);
usr.sbin/cpucontrol/cpucontrol.c
318
fd = open(dev, op == OP_READ ? O_RDONLY : O_WRONLY);
usr.sbin/cron/lib/misc.c
399
LogFD = open(LOG_FILE, O_WRONLY|O_APPEND|O_CREAT, 0600);
usr.sbin/cxgbetool/cxgbetool.c
2294
fd = open(fname, O_CREAT | O_TRUNC | O_EXCL | O_WRONLY,
usr.sbin/daemon/daemon.c
775
return open(outfn, O_CREAT | O_WRONLY | O_APPEND | O_CLOEXEC, outfm);
usr.sbin/extattrctl/extattrctl.c
97
flags = O_CREAT | O_WRONLY | O_TRUNC | O_EXCL;
usr.sbin/fifolog/lib/fifolog_create.c
54
fd = open(fn, O_WRONLY | O_TRUNC | O_EXCL | O_CREAT, 0644);
usr.sbin/fifolog/lib/fifolog_create.c
57
fd = open(fn, O_WRONLY);
usr.sbin/fwcontrol/fwdv.c
107
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
usr.sbin/fwcontrol/fwmpegts.c
165
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
usr.sbin/ipfwpcap/ipfwpcap.c
93
fd = open(pidfile, O_WRONLY|O_CREAT|O_EXCL, 0644);
usr.sbin/jail/command.c
704
open(conslog, O_WRONLY | O_CREAT | O_APPEND, DEFFILEMODE);
usr.sbin/lpr/common_source/common.c
423
fd = open(lfname, O_WRONLY|O_CREAT, newbits);
usr.sbin/lpr/common_source/common.c
720
statfile = open(statfname, O_WRONLY|O_APPEND, 0664);
usr.sbin/lpr/common_source/ctlinfo.c
485
newfd = open(tfname2, O_WRONLY|O_CREAT|O_TRUNC, 0660);
usr.sbin/lpr/lpc/cmds.c
369
fd = open(statfile, O_WRONLY|O_CREAT|O_EXLOCK, STAT_FILE_MODE);
usr.sbin/lpr/lpd/lpd.c
283
lfd = open(_PATH_MASTERLOCK, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK,
usr.sbin/lpr/lpd/printjob.c
1406
errfd = open(tempstderr, O_WRONLY|O_TRUNC, 0664);
usr.sbin/lpr/lpd/printjob.c
160
if (open(pp->log_file, O_WRONLY|O_APPEND, LOG_FILE_MODE) < 0) {
usr.sbin/lpr/lpd/printjob.c
163
(void) open(_PATH_DEVNULL, O_WRONLY);
usr.sbin/lpr/lpd/printjob.c
1885
pfd = open(pp->lp, pp->rw ? O_RDWR : O_WRONLY);
usr.sbin/lpr/lpd/printjob.c
193
lfd = open(pp->lock_file, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK,
usr.sbin/lpr/lpd/printjob.c
1989
fd = open(pp->status_file, O_WRONLY|O_CREAT|O_EXLOCK, STAT_FILE_MODE);
usr.sbin/lpr/lpd/printjob.c
813
n = open(tempstderr, O_WRONLY|O_TRUNC, 0664);
usr.sbin/lpr/lpd/recvjob.c
108
if (open(pp->log_file, O_WRONLY|O_APPEND, 0664) < 0) {
usr.sbin/lpr/lpd/recvjob.c
110
(void) open(_PATH_DEVNULL, O_WRONLY);
usr.sbin/lpr/lpd/recvjob.c
316
fd = open(file, O_CREAT|O_EXCL|O_WRONLY, FILMOD);
usr.sbin/lpr/lpr/lpr.c
629
f = open(n, O_WRONLY | O_EXCL | O_CREAT, FILMOD);
usr.sbin/lptcontrol/lptcontrol.c
99
if ((fd = open(device, O_WRONLY)) < 0)
usr.sbin/pmc/cmd_pmc_filter.cc
351
if ((postlogfd = open(argv[1], O_WRONLY | O_CREAT | O_TRUNC,
usr.sbin/ppp/ipcp.c
338
if ((fd = ID0open(_PATH_RESCONF, O_WRONLY|O_TRUNC, 0644)) != -1) {
usr.sbin/pw/pw.c
181
O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC,
usr.sbin/pw/pw_log.c
55
fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600);
usr.sbin/pwd_mkdb/pwd_mkdb.c
299
O_WRONLY|O_CREAT|O_EXCL, PERM_INSECURE)) < 0)
usr.sbin/pwd_mkdb/pwd_mkdb.c
581
if ((to_fd = open(to, O_WRONLY|O_CREAT|O_EXCL, mode)) < 0)
usr.sbin/rwhod/rwhod.c
397
whod = openat(dirfd, path, O_WRONLY | O_CREAT, 0644);
usr.sbin/syslogd/syslogd.c
312
static int logflags = O_WRONLY|O_APPEND; /* flags used to open log files */
usr.sbin/tzsetup/tzsetup.c
967
O_WRONLY | O_CREAT | O_TRUNC,
usr.sbin/uathload/uathload.c
181
data = open(datadev, O_WRONLY, 0);
usr.sbin/usbdump/usbdump.c
758
p->wfd = open(w_arg, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR);
usr.sbin/usbdump/usbdump.c
906
O_WRONLY, S_IRUSR | S_IWUSR);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
198
c->oss_fd = open(c->r->devname, O_WRONLY);
usr.sbin/virtual_oss/virtual_oss/main.c
1928
ptr->fd_sta = open("/dev/sndstat", O_WRONLY);