usr/src/cmd/acpihpd/acpihpd.c
154
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/audio/audioconvert/file.cc
259
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC,
usr/src/cmd/audio/audioctl/audioctl.c
1014
mode = O_WRONLY | O_CREAT | O_EXCL;
usr/src/cmd/audio/audioplay/audioplay.c
201
Audio_fd = open(Audio_dev, O_WRONLY | O_NONBLOCK);
usr/src/cmd/audio/audioplay/audioplay.c
214
Audio_fd = open(Audio_dev, O_WRONLY);
usr/src/cmd/audio/audioplay/audioplay.c
346
Audio_fd = open(Audio_dev, O_WRONLY | O_NONBLOCK);
usr/src/cmd/audio/audioplay/audioplay.c
366
Audio_fd = open(Audio_dev, O_WRONLY);
usr/src/cmd/audio/audiotest/audiotest.c
386
fd = open(dn, O_WRONLY, 0);
usr/src/cmd/audio/include/AudioTypes.h
110
case WriteOnly: return (O_WRONLY);
usr/src/cmd/audio/include/AudioTypes.h
112
case AppendOnly: return (O_WRONLY | O_APPEND);
usr/src/cmd/backup/dump/dumpmain.c
1458
if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_LARGEFILE,
usr/src/cmd/backup/dump/dumpmain.c
1469
working_mode = mode & (O_WRONLY|O_RDWR|O_RDONLY);
usr/src/cmd/backup/dump/dumpmain.c
1649
bmode = O_WRONLY;
usr/src/cmd/backup/dump/dumptape.c
1524
while ((to = host ? rmtopen(tape, O_WRONLY) :
usr/src/cmd/backup/dump/dumptape.c
1525
safe_device_open(tape, O_WRONLY, 0600)) < 0)
usr/src/cmd/backup/dump/dumptape.c
1540
rmtopen(tape, O_WRONLY) :
usr/src/cmd/backup/dump/dumptape.c
1541
safe_device_open(tape, O_WRONLY|m, 0600))
usr/src/cmd/backup/dump/dumptape.c
380
archivefd = safe_file_open(archivefile, O_WRONLY, 0600);
usr/src/cmd/backup/restore/utilities.c
581
O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_LARGEFILE, perms)) < 0) {
usr/src/cmd/backup/restore/utilities.c
598
working_mode = mode & (O_WRONLY|O_RDWR|O_RDONLY);
usr/src/cmd/backup/restore/utilities.c
692
if (mode & (O_WRONLY|O_TRUNC)) {
usr/src/cmd/backup/restore/utilities.c
745
bmode = O_WRONLY;
usr/src/cmd/bhyve/common/audio.c
100
aud->fd = open(aud->dev_name, aud->dir ? O_WRONLY : O_RDONLY, 0);
usr/src/cmd/bnu/callers.c
735
dcr = open(dcname, O_WRONLY|O_NDELAY);
usr/src/cmd/bnu/callers.c
850
if ((dnf = open(dnname, O_WRONLY)) < 0) {
usr/src/cmd/bnu/callers.c
937
if ((dnf = open(dnname, O_WRONLY)) < 0 ) {
usr/src/cmd/bnu/cpmv.c
74
if ((fd2 = open(temp_p, O_CREAT | O_TRUNC | O_WRONLY,
usr/src/cmd/bnu/ct.c
661
if ((fd = open(WTMPX_FILE, O_WRONLY | O_APPEND)) != -1) {
usr/src/cmd/bnu/ct.c
719
if ((fd = open(WTMPX_FILE, O_WRONLY | O_APPEND)) != -1) {
usr/src/cmd/bnu/cu.c
1317
if ( append && ((file=open(filename,O_WRONLY)) >= 0) )
usr/src/cmd/bnu/in.uucpd.c
405
wtmp = open("/usr/adm/wtmp", O_WRONLY|O_APPEND);
usr/src/cmd/bnu/in.uucpd.c
486
wtmp = open("/usr/adm/wtmp", O_WRONLY|O_APPEND);
usr/src/cmd/bnu/logent.c
136
fd = open(CMDLOG, O_WRONLY | O_APPEND);
usr/src/cmd/bnu/perfstat.c
1015
fd = open(logname, O_WRONLY | O_APPEND);
usr/src/cmd/bnu/security.c
151
LogFile = open(LogName, O_WRONLY | O_APPEND);
usr/src/cmd/boot/bootadm/bootadm.c
2024
if ((cf->out.fdfile = open(cf->path, O_WRONLY | O_CREAT, 0644))
usr/src/cmd/boot/fiocompress/fiocompress.c
163
fd = open(dstfile, O_WRONLY | O_CREAT | O_TRUNC,
usr/src/cmd/boot/installboot/i386/installboot.c
411
fd = open(file, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
usr/src/cmd/cdrw/bstream.c
613
fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr/src/cmd/cdrw/bstream.c
630
fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr/src/cmd/cmd-crypto/decrypt/decrypt.c
722
O_CREAT|O_WRONLY|O_TRUNC, 0644)) == -1) {
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
1937
errfd = open(_PATH_CONNERRS, O_WRONLY | O_APPEND | O_CREAT, 0600);
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
1948
fd = open(*argv, O_WRONLY | O_APPEND | O_CREAT | O_EXCL, 0644);
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
1950
fd = open(*argv, O_WRONLY | O_APPEND);
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/passprompt.c
68
red = open("/etc/ppp/prompt-errors", O_WRONLY | O_APPEND | O_CREAT,
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
957
fd = open(lock_file, O_WRONLY, 0);
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1600
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
usr/src/cmd/cmd-inet/usr.lib/inetd/contracts.c
171
return (contract_open(cid, "process", "ctl", O_WRONLY));
usr/src/cmd/cmd-inet/usr.lib/pppoe/logging.c
304
curlogfd = open(fname, O_WRONLY|O_APPEND|O_CREAT, 0600);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
2182
(void) open("/etc/ppp/pppoe-errors", O_WRONLY | O_APPEND |
usr/src/cmd/cmd-inet/usr.lib/slpd/slpd.c
146
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2026
if ((nfd = open(newfile, O_WRONLY | O_CREAT | O_TRUNC,
usr/src/cmd/cmd-inet/usr.sbin/in.routed/trace.c
345
nfd = open(fn, O_CREAT|O_EXCL|O_WRONLY, 0644);
usr/src/cmd/cmd-inet/usr.sbin/in.routed/trace.c
351
nfd = open(fn, O_APPEND|O_WRONLY, 0644);
usr/src/cmd/cmd-inet/usr.sbin/in.rwhod.c
289
whod = open(path, O_WRONLY | O_CREAT, 0644);
usr/src/cmd/cmd-inet/usr.sbin/in.talkd/announce.c
136
if ((fd = open(full_tty, O_WRONLY|O_NONBLOCK)) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/in.talkd/process.c
197
if ((tfd = open(dev, O_WRONLY|O_NOCTTY)) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/in.tftpd.c
863
(readmode ? O_RDONLY : (O_WRONLY|O_TRUNC)) | O_NONBLOCK);
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
895
fd = open(dstfile, O_WRONLY|O_CREAT|(overwrite ? O_TRUNC : O_EXCL),
usr/src/cmd/cmd-inet/usr.sbin/route.c
458
s = open("/dev/null", O_WRONLY);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop.c
294
audio = open(audiodev, O_WRONLY);
usr/src/cmd/cmd-inet/usr.sbin/wificonfig/wificonfig.c
4636
fd0 = open(WIFI_LOCKF, O_CREAT|O_WRONLY, 0600);
usr/src/cmd/cmd-inet/usr.sbin/wificonfig/wificonfig.c
943
fd = open(temp_file, O_CREAT|O_WRONLY|O_TRUNC, 0600);
usr/src/cmd/consadm/consadm.c
346
if ((lckfd = open(CONSADMLOCK, O_CREAT | O_EXCL | O_WRONLY,
usr/src/cmd/cpio/cpio.c
1392
oflag = (O_WRONLY | O_CREAT | O_TRUNC);
usr/src/cmd/cron/at.c
370
if ((fd = open(tfname, O_CREAT|O_EXCL|O_WRONLY, ATMODE)) < 0)
usr/src/cmd/cron/cron.c
2471
if ((fd = open(rp->outfile, O_WRONLY|O_CREAT|O_EXCL, OUTMODE)) == 1)
usr/src/cmd/cron/cron.c
2472
fd = open("/dev/null", O_WRONLY);
usr/src/cmd/cron/cron.c
2944
if ((c = open(CONSOLE, O_WRONLY)) >= 0) {
usr/src/cmd/cron/funcs.c
162
if ((msgfd = open(FIFO, O_WRONLY|O_NDELAY)) < 0) {
usr/src/cmd/ctfdump/ctfdump.c
1167
if ((fd = open(out, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0)
usr/src/cmd/ctrun/ctrun.c
282
O_WRONLY);
usr/src/cmd/ctrun/ctrun.c
556
O_WRONLY)) == -1)
usr/src/cmd/ctrun/ctrun.c
640
O_WRONLY)) == -1)
usr/src/cmd/cxgbetool/cxgbetool.c
610
fd = open(fname, O_CREAT | O_TRUNC | O_EXCL | O_WRONLY,
usr/src/cmd/dd/dd.c
901
obf = open(ofile, (O_WRONLY | O_CREAT | oflag),
usr/src/cmd/dd/dd.c
905
obf = open(ofile, O_WRONLY | O_CREAT | oflag,
usr/src/cmd/dd/dd.c
921
obf = open(ofile, O_WRONLY | O_CREAT | O_TRUNC | oflag,
usr/src/cmd/dlmgmtd/dlmgmt_db.c
290
oflags = (modestr[0] == 'r') ? O_RDONLY : O_WRONLY | O_CREAT | O_TRUNC;
usr/src/cmd/dtrace/dtrace.c
325
if ((fd = open(fname, O_WRONLY | O_TRUNC)) == -1)
usr/src/cmd/dtrace/dtrace.c
431
O_WRONLY | O_CREAT | O_EXCL, sbuf.st_mode)) == -1)
usr/src/cmd/dtrace/test/tst/common/io/tst.fds.c
78
fds[n++] = open(file, O_WRONLY);
usr/src/cmd/dumpadm/minfree.c
80
FILE *fp = minfree_open(dir, O_WRONLY | O_CREAT | O_TRUNC, "w");
usr/src/cmd/ed/ed.c
801
io = eopen(file, O_WRONLY);
usr/src/cmd/ed/ed.c
839
if (close(open(file, O_WRONLY)) < 0)
usr/src/cmd/ed/ed.c
879
(c == 'w') ? O_WRONLY|O_CREAT|O_TRUNC
usr/src/cmd/ed/ed.c
880
: O_WRONLY|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR
usr/src/cmd/fm/fmd/common/fmd_ckpt.c
118
ckp->ckp_fd = open64(ckp->ckp_src, O_WRONLY | O_CREAT | O_EXCL, mode);
usr/src/cmd/fm/fmd/common/fmd_log.c
394
O_CREAT | O_WRONLY) || fmd_log_write_hdr(lp, tag);
usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c
349
if ((syslog_logfd = open("/dev/conslog", O_WRONLY | O_NOCTTY)) == -1)
usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c
352
if ((syslog_msgfd = open("/dev/sysmsg", O_WRONLY | O_NOCTTY)) == -1)
usr/src/cmd/fs.d/autofs/autod_mount.c
418
O_WRONLY);
usr/src/cmd/fs.d/nfs/nfs4cbd/nfs4cbd.c
114
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/fs.d/nfs/nfslog/nfslogd.c
337
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid.c
106
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/fs.d/nfs/rquotad/rpc.rquotad.c
206
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
823
if ((fd = open(name, O_CREAT | O_WRONLY, S_IWUSR)) == -1) {
usr/src/cmd/fs.d/reparsed/reparsed.c
117
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/fs.d/udfs/fsck/setup.c
232
if (nflag || (fswritefd = open(devstr, O_WRONLY)) < 0) {
usr/src/cmd/fs.d/ufs/fsck/setup.c
1443
devnull = open("/dev/null", O_WRONLY);
usr/src/cmd/fs.d/ufs/fsck/setup.c
513
if (nflag || (fswritefd = open64(devstr, O_WRONLY)) < 0) {
usr/src/cmd/fs.d/ufs/mkfs/mkfs.c
1464
fso = (grow) ? open64(fsys, O_WRONLY) : creat64(fsys, 0666);
usr/src/cmd/fs.d/ufs/volcopy/volcopy.c
553
Out.f_des = open(Out.f_dev_p, O_WRONLY);
usr/src/cmd/fwflash/plugins/transport/common/ufm.c
126
if ((fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0644)) < 0) {
usr/src/cmd/gencat/gencat.c
1143
catfd = open(catfname, O_WRONLY | O_CREAT | O_EXCL, 0666);
usr/src/cmd/geniconvtbl/assemble.c
932
fd = open(itm_output_file, O_CREAT|O_WRONLY|O_TRUNC, 0666);
usr/src/cmd/gss/gssd/gssd.c
245
open("/dev/null", O_WRONLY) < 0 || dup(1) < 0 ||
usr/src/cmd/hal/hald/hald.c
527
if ((pf= open (HALD_PID_FILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644)) > 0) {
usr/src/cmd/halt/halt.c
182
if ((ctlfd = open(ctlfile, O_WRONLY)) == -1)
usr/src/cmd/hotplugd/hotplugd.c
265
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/hotplugd/hotplugd.c
266
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/init/init.c
3985
O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
usr/src/cmd/init/init.c
4226
fd = contract_getfile(ct_event_get_ctid(e), "ctl", O_WRONLY);
usr/src/cmd/ipf/tools/ip_fil.c
550
fd = open(fname, O_WRONLY|O_APPEND);
usr/src/cmd/ipf/tools/ip_fil.c
746
fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600);
usr/src/cmd/ipf/tools/ip_fil.c
757
fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600);
usr/src/cmd/ipf/tools/ipfs.c
415
wfd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0600);
usr/src/cmd/ipf/tools/ipfs.c
711
nfd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0600);
usr/src/cmd/ipf/tools/ipftest.c
735
fd = open(filename, O_CREAT|O_TRUNC|O_WRONLY, 0644);
usr/src/cmd/ipf/tools/ipmon.c
1364
if ((fd = open(file, O_CREAT|O_TRUNC|O_WRONLY, 0644)) >= 0) {
usr/src/cmd/keyserv/chkey.c
752
if ((rootfd = open(ROOTKEY_FILE, O_WRONLY+O_CREAT, 0600)) < 0) {
usr/src/cmd/keyserv/keylogin.c
131
if ((rootfd = open(ROOTKEY_FILE, O_WRONLY+O_CREAT, 0600)) < 0) {
usr/src/cmd/krb5/kadmin/dbutil/dump.c
429
if ((fd = open(file_ok, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) {
usr/src/cmd/krb5/kwarn/kwarnd.c
253
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/krb5/kwarn/kwarnd_proc.c
646
fd = open("/tmp/kwarn.out", O_WRONLY|O_TRUNC|O_CREAT,
usr/src/cmd/krb5/slave/kprop.c
841
if ((fd = THREEPARAMOPEN(file_last_prop, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) {
usr/src/cmd/krb5/slave/kpropd.c
669
O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) {
usr/src/cmd/ldap/common/etest.c
54
if (( sb.sb_sd = open( "lber-test", O_WRONLY|O_CREAT|O_TRUNC|O_BINARY ))
usr/src/cmd/ldap/common/ldaptest.c
376
if ( (ld->ld_sb.sb_fd = open( copyfname, O_WRONLY | O_CREAT,
usr/src/cmd/ldap/ns_ldap/ldapclient.c
1031
if ((domain_fp = open(DOMAINNAME, O_WRONLY|O_CREAT|O_TRUNC,
usr/src/cmd/ldap/ns_ldap/ldapclient.c
1275
if ((domain_fp = open(DOMAINNAME, O_WRONLY|O_CREAT|O_TRUNC,
usr/src/cmd/ldap/ns_ldap/ldapclient.c
1867
if ((profile_fp = open(DOMAINNAME, O_WRONLY|O_CREAT|O_TRUNC,
usr/src/cmd/ldapcachemgr/cachemgr.c
1013
O_APPEND|O_WRONLY, 0644)) < 0) {
usr/src/cmd/ldapcachemgr/cachemgr.c
993
open(logfile, O_EXCL|O_WRONLY|O_CREAT, 0644)) < 0) {
usr/src/cmd/listen/listen.c
1265
if ((Passfd = open(dbp->dbf_cmd_line, O_WRONLY)) < 0) {
usr/src/cmd/listen/listen.c
225
if ((i = open(log, O_WRONLY|O_CREAT|O_APPEND, 0444)) < 0)
usr/src/cmd/listen/lsfiles.h
37
#define LOGOFLAG (O_WRONLY | O_APPEND | O_CREAT)
usr/src/cmd/listen/lsfiles.h
40
#define PIDOFLAG (O_WRONLY | O_CREAT)
usr/src/cmd/listen/nlps_serv.c
510
O_WRONLY)) < 0) {
usr/src/cmd/loadkeys/dumpkeys.c
75
if ((kbdfd = open("/dev/kbd", O_WRONLY)) < 0) {
usr/src/cmd/loadkeys/loadkeys.y
162
if ((kbdfd = open("/dev/kbd", O_WRONLY)) < 0) {
usr/src/cmd/loadkeys/loadkeys.y
299
if ((kbdfd = open("/dev/kbd", O_WRONLY)) < 0) {
usr/src/cmd/logadm/main.c
1164
if ((fo = open(file_copy, O_CREAT|O_TRUNC|O_WRONLY, s.st_mode)) < 0) {
usr/src/cmd/login/login.c
705
if ((fildes = open(LOGINLOG, O_APPEND|O_WRONLY)) != -1) {
usr/src/cmd/lp/cmd/lpadmin/do_printer.c
698
fd = open("/dev/null", O_WRONLY);
usr/src/cmd/lp/cmd/lpsched/exec.c
423
if (Open(outfile, O_CREAT|O_TRUNC|O_WRONLY, 0600) == -1)
usr/src/cmd/lp/cmd/lpsched/exec.c
430
if (Open("/dev/null", O_WRONLY) == -1)
usr/src/cmd/lp/cmd/lpsched/exec.c
435
if (Open(errfile, O_CREAT|O_TRUNC|O_WRONLY, 0600) == -1)
usr/src/cmd/lp/cmd/lpsched/exec.c
438
if (Open("/dev/null", O_WRONLY) == -1)
usr/src/cmd/lp/cmd/lpsched/ports.c
217
open_mode = O_WRONLY;
usr/src/cmd/lp/lib/lp/files.c
138
oflag = plus? O_RDWR : O_WRONLY;
usr/src/cmd/lp/lib/lp/files.c
143
oflag = (plus? O_RDWR : O_WRONLY) | O_APPEND;
usr/src/cmd/lp/lib/lp/files.c
176
l.l_type = (oflag & (O_WRONLY|O_RDWR)? F_WRLCK : F_RDLCK);
usr/src/cmd/lp/lib/msgs/mconnect.c
97
if ((fd = Open(path, O_WRONLY, 0)) == -1)
usr/src/cmd/lp/lib/papi/job.c
313
if ((ofd = open(to, O_WRONLY)) < 0) {
usr/src/cmd/lp/lib/papi/job.c
844
s->fd = open(lpfile, O_WRONLY);
usr/src/cmd/mail/createmf.c
101
mbfd = open(path, O_APPEND|O_WRONLY, 0);
usr/src/cmd/mail/createmf.c
74
O_APPEND|O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP);
usr/src/cmd/mailx/lex.c
186
if ((i = open(name, O_WRONLY)) < 0)
usr/src/cmd/mailx/names.c
235
fd = open(tempEdit, O_CREAT|O_EXCL|O_APPEND|O_WRONLY,
usr/src/cmd/mailx/names.c
238
if ((fd = open(tempEdit, O_APPEND|O_WRONLY,
usr/src/cmd/make/lib/mksh/dosys.cc
117
O_WRONLY | O_CREAT | O_TRUNC | O_DSYNC,
usr/src/cmd/make/lib/mksh/dosys.cc
99
O_WRONLY | O_CREAT | O_TRUNC | O_DSYNC,
usr/src/cmd/mandoc/term_tag.c
100
ofd = open(outfilename, O_WRONLY | O_CREAT | O_EXCL, 0644);
usr/src/cmd/mandoc/term_tag.c
119
tfd = open(tagfilename, O_WRONLY | O_CREAT | O_EXCL, 0644);
usr/src/cmd/mdb/common/mdb/mdb_cmds.c
1278
O_CREAT | O_APPEND | O_WRONLY, 0666);
usr/src/cmd/mdb/common/mdb/mdb_proc.c
3459
pt_dupfd(pt->p_stdout, O_CREAT | O_WRONLY, 0666, STDOUT_FILENO);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
2788
ofilefd = open(ofilename, O_WRONLY | O_CREAT,
usr/src/cmd/mdb/intel/modules/smbios/smbios.c
71
if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
usr/src/cmd/modload/drvsubr.c
1453
if ((newfd = open(newfile, O_WRONLY | O_CREAT | O_EXCL, 0644)) < 0) {
usr/src/cmd/modload/drvsubr.c
427
if ((newfd = open(newfile, O_WRONLY | O_CREAT | O_EXCL, 0644)) < 0) {
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
1228
*fp = open(real_name, O_CREAT | O_TRUNC | O_WRONLY,
usr/src/cmd/nohup/nohup.c
624
nh_fd = open(nout, O_WRONLY | O_CREAT, NOHUP_PERM);
usr/src/cmd/nohup/nohup.c
630
nh_fd = open(nout, O_WRONLY | O_CREAT, NOHUP_PERM);
usr/src/cmd/nohup/nohup.c
80
int flags = O_CREAT | O_WRONLY | O_APPEND;
usr/src/cmd/nscd/nscd_log.c
105
if ((newlogfd = open(lf, O_EXCL|O_WRONLY|O_CREAT, 0644)) < 0) {
usr/src/cmd/nscd/nscd_log.c
126
open(lf, O_APPEND|O_WRONLY, 0644)) < 0) {
usr/src/cmd/nvmeadm/nvmeadm.c
2023
int fd = open(file, O_WRONLY | O_TRUNC | O_CREAT, 0644);
usr/src/cmd/nvmeadm/nvmeadm_sandisk.c
134
ofd = open(eye->se_output, O_WRONLY | O_CREAT | O_TRUNC, 0644);
usr/src/cmd/nvmeadm/nvmeadm_telemetry.c
116
ofd = open(log->ngl_output, O_WRONLY | O_TRUNC | O_CREAT, 0644);
usr/src/cmd/oplhpd/oplhpd.c
159
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/oplhpd/scf_notify.c
496
if ((fd = open(SCFIOCDEV, O_WRONLY)) < 0) {
usr/src/cmd/passmgmt/passmgmt.c
658
fd_ptemp = open(PASSTEMP, O_CREAT|O_EXCL|O_WRONLY, statbuf.st_mode);
usr/src/cmd/passmgmt/passmgmt.c
666
fd_ptemp = open(PASSTEMP, O_CREAT|O_EXCL|O_WRONLY,
usr/src/cmd/passmgmt/passmgmt.c
696
fd_stemp = open(SHADTEMP, O_CREAT|O_EXCL|O_WRONLY,
usr/src/cmd/passmgmt/passmgmt.c
706
O_CREAT|O_EXCL|O_WRONLY, statbuf.st_mode);
usr/src/cmd/passmgmt/passmgmt.c
736
fd_uatemp = open(USERATTR_TEMP, O_CREAT|O_EXCL|O_WRONLY,
usr/src/cmd/passmgmt/passmgmt.c
746
O_CREAT|O_EXCL|O_WRONLY, statbuf.st_mode);
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
5785
fd = openat(psc->psc_dirfd, fname, O_WRONLY | O_TRUNC | O_CREAT, 0666);
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
5903
if ((fd = open(argv[0], O_WRONLY | O_CREAT | O_TRUNC, 0666)) <
usr/src/cmd/picl/plugins/sun4u/littleneck/psvcpolicy/psvcpolicy.c
388
fd = open("/dev/console", O_WRONLY | O_NOCTTY);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcpolicy/psvcpolicy.c
1384
fd = open("/dev/console", O_WRONLY | O_NOCTTY);
usr/src/cmd/power/conf.c
271
if ((fd = open(cpr_conf, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1)
usr/src/cmd/power/powerd.c
1299
if ((fd = open(pidpath, O_CREAT | O_EXCL | O_WRONLY, 0444)) == -1) {
usr/src/cmd/power/powerd.c
278
if (dup2(open("/dev/console", O_WRONLY|O_NOCTTY), 1) == -1) {
usr/src/cmd/power/sys-suspend.c
601
(void) dup2(open("/dev/console", O_WRONLY), 1);
usr/src/cmd/power/sys-suspend.c
602
(void) dup2(open("/dev/console", O_WRONLY), 2);
usr/src/cmd/ptools/pfiles/pfiles.c
400
case O_WRONLY:
usr/src/cmd/raidctl/raidctl.c
2976
fd0 = open(RAIDCTL_LOCKF, O_CREAT|O_WRONLY, 0600);
usr/src/cmd/rctladm/rctladm.c
153
if ((fd = open(CONFIGPATH, O_WRONLY|O_CREAT|O_TRUNC, CONFIGPERM)) == -1)
usr/src/cmd/rmt/rmt.c
441
(atoi(mode) & (O_RDONLY|O_WRONLY|O_RDWR)));
usr/src/cmd/rmvolmgr/vold.c
822
open(notify_file, O_CREAT|O_EXCL|O_WRONLY, 0644);
usr/src/cmd/rmvolmgr/vold.c
937
if ((fd = open(namebuf, O_WRONLY|O_NDELAY)) < 0) {
usr/src/cmd/rpcbind/warmstart.c
73
fd = open(filename, O_CREAT|O_EXCL|O_WRONLY, 0600);
usr/src/cmd/sa/sadc.c
233
if ((fp = open(fname, O_WRONLY | O_APPEND | O_CREAT, 0644))
usr/src/cmd/saf/log.c
67
if ((fd = open("/dev/console", O_WRONLY|O_NOCTTY)) != -1)
usr/src/cmd/savecore/savecore.c
1374
int corefd = Open(corefile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
usr/src/cmd/savecore/savecore.c
1375
int namefd = Open(namelist, O_WRONLY | O_CREAT | O_TRUNC, 0644);
usr/src/cmd/savecore/savecore.c
1484
logfd = Open("/dev/conslog", O_WRONLY, 0644);
usr/src/cmd/savecore/savecore.c
1793
int logfd = Open("/dev/conslog", O_WRONLY, 0644);
usr/src/cmd/savecore/savecore.c
2007
bfd = Open("bounds", O_WRONLY | O_CREAT | O_TRUNC, 0644);
usr/src/cmd/savecore/savecore.c
578
int corefd = Open(corefile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
usr/src/cmd/sed/compile.c
282
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, 0666)) == -1)
usr/src/cmd/sed/compile.c
657
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, 0666)) == -1)
usr/src/cmd/sed/process.c
232
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, 0666))
usr/src/cmd/sed/process.c
472
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, 0666)) == -1)
usr/src/cmd/sendmail/db/os/os_oflags.c
44
if (!(oflags & (O_RDWR | O_WRONLY)) || oflags & O_RDONLY)
usr/src/cmd/sendmail/include/sm/conf.h
2863
# define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
usr/src/cmd/sendmail/libsm/stdio.c
421
oflags = O_WRONLY | O_CREAT | O_TRUNC;
usr/src/cmd/sendmail/libsm/stdio.c
424
oflags = O_APPEND | O_WRONLY | O_CREAT;
usr/src/cmd/sendmail/libsm/stdio.c
500
case O_WRONLY:
usr/src/cmd/sendmail/libsm/stdio.c
81
oflags = O_WRONLY | O_CREAT | O_TRUNC;
usr/src/cmd/sendmail/libsm/stdio.c
84
oflags = O_APPEND | O_WRONLY | O_CREAT;
usr/src/cmd/sendmail/libsm/t-fopen.c
27
out = sm_io_fopen("foo", O_WRONLY|O_APPEND|O_CREAT, 0666);
usr/src/cmd/sendmail/libsmutil/safefile.c
708
case O_WRONLY:
usr/src/cmd/sendmail/libsmutil/safefile.c
805
case O_WRONLY:
usr/src/cmd/sendmail/src/conf.c
5606
dst = safeopen((char *)target, O_CREAT|O_EXCL|O_WRONLY,
usr/src/cmd/sendmail/src/deliver.c
5238
volatile int oflags = O_WRONLY|O_APPEND;
usr/src/cmd/sendmail/src/main.c
3356
fd = open(SM_PATH_DEVNULL, O_WRONLY, 0666);
usr/src/cmd/sendmail/src/main.c
3920
i = open(SM_PATH_DEVNULL, fd == 0 ? O_RDONLY : O_WRONLY, 0666);
usr/src/cmd/sendmail/src/queue.c
28
# define TF_OPEN_FLAGS (O_CREAT|O_WRONLY|O_EXCL|O_EXLOCK)
usr/src/cmd/sendmail/src/queue.c
30
# define TF_OPEN_FLAGS (O_CREAT|O_WRONLY|O_EXCL)
usr/src/cmd/sendmail/src/queue.c
556
dfd = open(df, O_WRONLY|O_CREAT|O_TRUNC|QF_O_EXTRA,
usr/src/cmd/sendmail/src/queue.c
6776
keyf = safefopen(keypath, O_WRONLY|O_TRUNC, FileMode, sff);
usr/src/cmd/sendmail/src/queue.c
8520
flags = O_CREAT|O_WRONLY|O_EXCL;
usr/src/cmd/sendmail/src/savemail.c
420
(fp = safefopen(DeadLetterDrop, O_WRONLY|O_APPEND,
usr/src/cmd/sendmail/src/util.c
591
Pidf = safefopen(pidpath, O_WRONLY|O_TRUNC, FileMode, sff);
usr/src/cmd/sendmail/util/mail.local.c
811
mbfd = open(path, O_APPEND|O_CREAT|O_EXCL|O_WRONLY,
usr/src/cmd/sendmail/util/mail.local.c
830
mbfd = open(path, O_APPEND|O_WRONLY, 0);
usr/src/cmd/sendmail/util/mail.local.c
951
mbfd = open(path, O_WRONLY, 0);
usr/src/cmd/sendmail/util/vacation.c
918
if (!(db = dbm_open(buf, O_WRONLY|O_CREAT|O_TRUNC, 0644))) {
usr/src/cmd/sgs/demo_rdb/common/main.c
205
if ((pctlfd = open(procname, O_WRONLY)) < 0) {
usr/src/cmd/sgs/demo_rdb/common/main.c
67
if ((pfd = open(procname, O_WRONLY)) < 0) {
usr/src/cmd/sgs/mcs/common/file.c
120
O_WRONLY | O_APPEND | O_CREAT,
usr/src/cmd/sh/service.c
655
O_WRONLY | O_APPEND | O_CREAT, 0666)) != -1) {
usr/src/cmd/smbios/smbios.c
2421
if ((fd = open(ofile, O_WRONLY|O_CREAT|O_TRUNC, 0666)) == -1) {
usr/src/cmd/sort/streams_stdio.c
57
O_WRONLY, OUTPUT_MODE)) < 0) {
usr/src/cmd/su/su.c
281
(void) close(open(Sulog, O_WRONLY | O_APPEND | O_CREAT,
usr/src/cmd/sunpc/other/dos2unix.c
225
if ((kbdfd = open("/dev/kbd", O_WRONLY)) < 0) {
usr/src/cmd/sunpc/other/unix2dos.c
229
if ((kbdfd = open("/dev/kbd", O_WRONLY)) < 0) {
usr/src/cmd/svc/configd/backend.c
1954
if ((fd = open(fname, O_CREAT|O_WRONLY|O_APPEND, 0600)) < 0) {
usr/src/cmd/svc/startd/contract.c
159
O_WRONLY)) < 0) {
usr/src/cmd/svc/startd/fork.c
599
efd = contract_open(ctid, "process", "ctl", O_WRONLY);
usr/src/cmd/svc/startd/log.c
288
fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND,
usr/src/cmd/svc/startd/log.c
339
fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND,
usr/src/cmd/svc/startd/restarter.c
2403
O_WRONLY);
usr/src/cmd/svc/startd/utmpx.c
404
O_WRONLY | O_CREAT | O_TRUNC, mode)) != -1) {
usr/src/cmd/svr4pkg/libinst/copyf.c
112
dstFd = open(a_dstPath, O_WRONLY | O_TRUNC | O_CREAT,
usr/src/cmd/svr4pkg/libinst/copyf.c
132
dstFd = open(a_dstPath, O_WRONLY | O_TRUNC | O_CREAT,
usr/src/cmd/svr4pkg/libinst/dryrun.c
690
n = open(targ_file, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644);
usr/src/cmd/svr4pkg/libinst/mntinfo.c
412
i = open("/dev/null", O_WRONLY);
usr/src/cmd/svr4pkg/libinst/mntinfo.c
540
i = open("/dev/null", O_WRONLY);
usr/src/cmd/svr4pkg/libinst/ocfile.c
176
n = open(tmpcf, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644);
usr/src/cmd/svr4pkg/libinst/ocfile.c
681
fd = open(contents, O_WRONLY | O_CREAT | O_EXCL, 0644);
usr/src/cmd/svr4pkg/pkginstall/cppath.c
364
fd = open(a_file, O_WRONLY | O_CREAT | O_TRUNC, a_mode);
usr/src/cmd/svr4pkg/pkginstall/cppath.c
367
fd = open(a_file, O_WRONLY | O_CREAT | O_TRUNC, a_mode);
usr/src/cmd/svr4pkg/pkginstall/main.c
1950
if (open(ilockfile, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644) < 0) {
usr/src/cmd/svr4pkg/pkginstall/reqexec.c
272
if ((fd = open(resppath, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644)) < 0) {
usr/src/cmd/svr4pkg/pkginstall/reqexec.c
310
fd = open(resppath, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644);
usr/src/cmd/svr4pkg/pkgremove/main.c
900
if ((fd = open(rlockfile, O_WRONLY|O_CREAT|O_TRUNC, 0644)) < 0) {
usr/src/cmd/syslogd/syslogd.c
1488
O_WRONLY|O_APPEND|O_NOCTTY);
usr/src/cmd/syslogd/syslogd.c
1941
O_WRONLY|O_APPEND|O_NOCTTY);
usr/src/cmd/syslogd/syslogd.c
2118
ttyf = open(w->dev, O_WRONLY|O_NOCTTY|O_NDELAY);
usr/src/cmd/syslogd/syslogd.c
2393
O_WRONLY|O_APPEND|O_NOCTTY|O_NONBLOCK :
usr/src/cmd/syslogd/syslogd.c
2394
O_WRONLY|O_APPEND|O_NOCTTY;
usr/src/cmd/syslogd/syslogd.c
3403
mode_t fmode, omode = O_WRONLY|O_APPEND|O_NOCTTY;
usr/src/cmd/syslogd/syslogd.c
521
(O_WRONLY|O_CREAT|O_TRUNC|O_EXCL),
usr/src/cmd/tcopy/tcopy.c
84
if ((outp = open(outf, O_WRONLY, 0666)) < 0) {
usr/src/cmd/truss/codes.c
2218
case O_WRONLY:
usr/src/cmd/truss/main.c
2545
if ((fd = open(ctlname, O_WRONLY)) < 0 ||
usr/src/cmd/ttymon/tmlog.c
165
} else if ((fd = open(CONSOLE, O_WRONLY|O_NOCTTY)) != -1) {
usr/src/cmd/ttymon/tmlog.c
232
if ((fd = open(EX_DBG, O_WRONLY|O_APPEND|O_CREAT)) < 0)
usr/src/cmd/ttymon/tmlog.c
65
if ((fd = open(logfile, O_WRONLY | O_CREAT | O_APPEND, 0444)) != -1)
usr/src/cmd/ttymon/tmsac.c
61
if ((Lckfd = open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC, 0644)) != 0)
usr/src/cmd/ttymon/tmsac.c
82
Sfd = open(SACPIPE, O_WRONLY);
usr/src/cmd/ttymon/tmutil.c
251
if ((fd = open(CONSOLE, O_WRONLY|O_NOCTTY)) != -1)
usr/src/cmd/tzreload/tzreload.c
393
if ((msgfd = open(fifo, O_WRONLY|O_NDELAY)) < 0) {
usr/src/cmd/ucodeadm/ucodeadm.c
476
fd = open(common_path, O_WRONLY | O_CREAT | O_TRUNC,
usr/src/cmd/ucodeadm/ucodeadm.c
532
fd = open(common_path, O_WRONLY | O_CREAT | O_TRUNC,
usr/src/cmd/ucodeadm/ucodeadm.c
608
if ((fd = open(firstname, O_WRONLY | O_CREAT | O_TRUNC,
usr/src/cmd/utmp_update/utmp_update.c
480
if ((fd = open(line, O_WRONLY|O_NOCTTY|O_NONBLOCK)) == -1) {
usr/src/cmd/utmpd/utmpd.c
270
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/utmpd/utmpd.c
271
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/vi/port/expreserve.c
386
} while (((fd = open(path, O_CREAT|O_EXCL|O_WRONLY, 0600)) < 0) &&
usr/src/cmd/vt/vtdaemon.c
1363
if ((fd = open(VT_DAEMON_CONSOLE_FILE, O_WRONLY)) < 0)
usr/src/cmd/vt/vtdaemon.c
317
if ((fd = open(VT_DAEMON_CONSOLE_FILE, O_WRONLY)) < 0)
usr/src/cmd/wall/wall.c
386
if ((fd = open(s, O_WRONLY|O_NOCTTY|O_NONBLOCK)) == -1) {
usr/src/cmd/write/write.c
528
if ((fildes = open(term, O_WRONLY|O_NOCTTY)) < 0)
usr/src/cmd/ypcmd/yp_b_subr.c
1288
fd = open(pdom->cache_file, O_CREAT|O_WRONLY, 0444);
usr/src/cmd/ypcmd/yp_b_subr.c
1365
fd = open(filename, O_CREAT|O_WRONLY, 0444); /* readable by all */
usr/src/cmd/ypcmd/yp_b_subr.c
1410
fd = open(filename, O_CREAT|O_WRONLY, 0444); /* readable by all */
usr/src/cmd/ypcmd/yp_b_svc.c
290
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/ypcmd/yppasswd/changepasswd.c
234
if ((npwfd = open(newpasswdfile, O_WRONLY | O_CREAT | O_EXCL,
usr/src/cmd/ypcmd/yppasswd/changepasswd.c
257
if ((nspfd = open(newshadowfile, O_WRONLY | O_CREAT | O_EXCL,
usr/src/cmd/ypcmd/yppasswd/changepasswd.c
283
if ((nadjfd = open(newadjunctfile, O_WRONLY | O_CREAT | O_EXCL,
usr/src/cmd/ypcmd/ypxfr.c
1355
if ((f = open(dbfile, (O_WRONLY | O_CREAT | O_TRUNC), 0600)) >= 0) {
usr/src/cmd/ypcmd/ypxfr.c
1360
if ((f = open(dbfile, (O_WRONLY | O_CREAT | O_TRUNC),
usr/src/cmd/zoneadm/zoneadm.c
4547
if ((ofd = open(tmpname, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR)) < 0) {
usr/src/cmd/zoneadmd/vplat.c
5211
fd = open(ZONE_INDEX_FILE, O_WRONLY|O_CREAT|O_TRUNC,
usr/src/cmd/zoneadmd/vplat.c
819
(void) open("/dev/null", O_WRONLY); /* stdout */
usr/src/cmd/zoneadmd/vplat.c
820
(void) open("/dev/null", O_WRONLY); /* stderr */
usr/src/cmd/zonestat/zonestatd/zonestatd.c
727
fd = contract_open(ctid, "all", "ctl", O_WRONLY);
usr/src/lib/abi/apptrace/common/apptrace.c
246
fd = open(str, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
129
AT_FDCWD, path, O_WRONLY | O_CREAT | O_TRUNC, mode));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
152
AT_FDCWD, path, O_WRONLY | O_CREAT | O_TRUNC, mode));
usr/src/lib/fm/topo/modules/common/ses/ses.c
587
ctlfd = open64(path, O_WRONLY);
usr/src/lib/fm/topo/modules/common/ses/ses.c
602
ctlfd = open64(path, O_WRONLY);
usr/src/lib/fm/topo/modules/common/ses/ses.c
787
ctlfd = open64(path, O_WRONLY);
usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/cc_file.c
2174
ret = THREEPARAMOPEN(scratch, O_CREAT | O_EXCL | O_WRONLY | O_BINARY, 0);
usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/rc_io.c
117
while ((d->fd = THREEPARAMOPEN(d->fn, O_WRONLY | O_CREAT | O_TRUNC |
usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/rc_io.c
99
d->fd = THREEPARAMOPEN(d->fn, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL |
usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/bt_open.c
199
case O_WRONLY:
usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash.c
106
if ((flags & O_ACCMODE) == O_WRONLY) {
usr/src/lib/krb5/plugins/kdb/db2/libdb2/include/db-int.h
248
#define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
usr/src/lib/krb5/ss/pager.c
66
fd = open("/dev/tty", O_WRONLY, 0);
usr/src/lib/lib9p/common/backend/fs.c
1319
case O_WRONLY:
usr/src/lib/lib9p/common/backend/fs.c
323
flags = O_WRONLY;
usr/src/lib/libadm/common/putdev.c
179
if ((fd = open(oldname, O_WRONLY)) == -1)
usr/src/lib/libadm/common/putdgrp.c
148
if ((fd = open(oldname, O_WRONLY)) == -1)
usr/src/lib/libbsm/common/audit_cron.c
192
if ((fd = open(fname, O_CREAT|O_WRONLY|O_TRUNC, 0200)) == -1)
usr/src/lib/libc/i386/sys/ptrace.c
171
if ((fd = open(procname, O_WRONLY, 0)) < 0)
usr/src/lib/libc/i386/sys/ptrace.c
495
if ((fd = open(procname, O_WRONLY, 0)) < 0 ||
usr/src/lib/libc/port/gen/getut.c
430
fd = open(file, O_WRONLY | O_APPEND);
usr/src/lib/libc/port/gen/getut.c
433
if ((fd = open(file, O_WRONLY|O_CREAT, 0644)) < 0)
usr/src/lib/libc/port/gen/getutx.c
872
if ((wfdx = open(filex, O_WRONLY | O_APPEND)) < 0)
usr/src/lib/libc/port/gen/lfmt_log.c
113
fdd = open(LOG_CONSOLE, O_WRONLY);
usr/src/lib/libc/port/gen/lfmt_log.c
92
((fd = open(LOGNAME, O_WRONLY)) == -1 ||
usr/src/lib/libc/port/gen/ndbm.c
173
if ((flags & 03) == O_WRONLY)
usr/src/lib/libc/port/gen/syslog.c
372
if (((fd = open(sysmsg, O_WRONLY)) >= 0) ||
usr/src/lib/libc/port/gen/syslog.c
373
(fd = open(ctty, O_WRONLY)) >= 0) {
usr/src/lib/libc/port/gen/syslog.c
450
LogFile = open(logname, O_WRONLY);
usr/src/lib/libc/port/gen/truncate.c
83
if ((fd = open(path, O_WRONLY)) == -1 || ftruncate(fd, len) == -1)
usr/src/lib/libc/port/gen/ttyname.c
747
int tfd = open("/dev/console", O_WRONLY);
usr/src/lib/libc/port/regex/wordexp.c
287
"/dev/null", O_WRONLY, 0);
usr/src/lib/libc/port/rt/mqueue.c
403
oflag = oflag & (O_RDONLY|O_WRONLY|O_RDWR|O_CREAT|O_EXCL|O_NONBLOCK);
usr/src/lib/libc/port/stdio/_endopen.c
93
if (oflag == (O_WRONLY | O_APPEND | O_CREAT)) { /* type == "a" */
usr/src/lib/libc/port/stdio/_stdio_flags.c
62
oflag = O_WRONLY | O_TRUNC | O_CREAT;
usr/src/lib/libc/port/stdio/_stdio_flags.c
66
oflag = O_WRONLY | O_APPEND | O_CREAT;
usr/src/lib/libc/port/stdio/_stdio_flags.c
97
oflag = (oflag & ~(O_RDONLY | O_WRONLY)) | O_RDWR;
usr/src/lib/libc/port/stdio/fopen.c
149
(accmode == O_WRONLY && (mode == 'r' || plus == '+'))) {
usr/src/lib/libc/port/threads/scalls.c
865
return (open(path, O_WRONLY | O_CREAT | O_TRUNC, mode));
usr/src/lib/libc/port/threads/scalls.c
898
return (open64(path, O_WRONLY | O_CREAT | O_TRUNC, mode));
usr/src/lib/libc/port/threads/thr.c
2425
if ((fd = __open(path, O_WRONLY, 0)) < 0) {
usr/src/lib/libc/port/threads/thr.c
2612
if ((fd = __open(buf, O_WRONLY, 0)) >= 0) {
usr/src/lib/libc/sparc/sys/ptrace.c
173
if ((fd = open(procname, O_WRONLY, 0)) < 0)
usr/src/lib/libc/sparc/sys/ptrace.c
505
if ((fd = open(procname, O_WRONLY, 0)) < 0 ||
usr/src/lib/libcontract/common/libcontract_priv.c
115
fd = contract_open(ctid, "all", "ctl", O_WRONLY);
usr/src/lib/libcryptoutil/common/random.c
164
RANDOM_DEVICE, O_WRONLY));
usr/src/lib/libcryptoutil/common/random.c
171
URANDOM_DEVICE, O_WRONLY));
usr/src/lib/libdevinfo/devinfo_devlink.c
3441
if ((rofd = open(DEVNAME_CHECK_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0644))
usr/src/lib/libdhcpagent/common/dhcp_hostconf.c
335
fd = open(ifname_to_hostconf(ifname, isv6), O_WRONLY|O_CREAT|O_TRUNC,
usr/src/lib/libdhcpagent/common/dhcp_stable.c
107
if ((fd = open(DUID_FILE, O_WRONLY | O_CREAT, 0644)) == -1)
usr/src/lib/libdiskmgt/common/inuse_fs.c
162
(void) open("/dev/null", O_WRONLY, mode);
usr/src/lib/libdiskmgt/common/inuse_fs.c
163
(void) open("/dev/null", O_WRONLY, mode);
usr/src/lib/libdladm/common/libdladm.c
785
if ((nfd = open(newfile, O_WRONLY | O_CREAT | O_TRUNC,
usr/src/lib/libdladm/common/libdlflow.c
354
if ((nfd = open(tmp_db_file, O_WRONLY|O_CREAT|O_TRUNC,
usr/src/lib/libdtrace/common/dt_options.c
194
if ((fd = open64(arg, O_CREAT | O_WRONLY, 0666)) == -1)
usr/src/lib/libdtrace/common/dt_options.c
219
if ((fd = open64(arg, O_CREAT | O_WRONLY, 0666)) == -1)
usr/src/lib/libexacct/common/exacct_ops.c
1086
} else if (oflags & O_RDWR || oflags & O_WRONLY) {
usr/src/lib/libexacct/common/exacct_ops.c
827
(f->ef_oflags & O_WRONLY) == 0) {
usr/src/lib/libinstzones/common/zones.c
2131
O_WRONLY|O_CREAT|O_TRUNC, 0600);
usr/src/lib/libinstzones/common/zones.c
2151
O_WRONLY|O_CREAT|O_TRUNC, 0600);
usr/src/lib/libipadm/common/ipadm_persist.c
882
if ((nfd = open(newfile, O_WRONLY | O_CREAT | O_TRUNC,
usr/src/lib/libipsecutil/common/algs.c
204
fd = open(tmp_name, O_WRONLY|O_CREAT|O_EXCL, CFG_PERMS);
usr/src/lib/libipsecutil/common/ipsec_util.c
3421
fd = open(filename, O_WRONLY | O_EXCL | O_CREAT | O_TRUNC, S_IRUSR);
usr/src/lib/libipsecutil/common/ipsec_util.c
3427
fd = open(filename, O_WRONLY | O_TRUNC, 0);
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
4860
fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, mode);
usr/src/lib/libmail/common/notifyu.c
80
if ((fd = open(dev, O_WRONLY|O_NOCTTY)) == -1) {
usr/src/lib/libnisdb/db_log.cc
223
if ((to = open(newname, O_WRONLY|O_CREAT|O_TRUNC, 0660)) < 0) {
usr/src/lib/libnsl/rpc/svc_door.c
343
fd = open(rendezvous, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0644);
usr/src/lib/libnsl/rpc/svc_door.c
354
fd = open(rendezvous, O_WRONLY | O_CREAT | O_EXCL |
usr/src/lib/libpkg/common/dstream.c
726
if (oflag & O_WRONLY)
usr/src/lib/libpkg/common/pkgexecv.c
389
n = open(fileout, O_WRONLY);
usr/src/lib/libpkg/common/pkgexecv.c
409
n = open(fileout, O_WRONLY|O_CREAT|O_APPEND, 0666);
usr/src/lib/libpkg/common/pkgtrans.c
1192
if ((ds_fd = open(dstdev.cdevice, O_WRONLY)) < 0) {
usr/src/lib/libpkg/common/runcmd.c
147
i = open(errfile, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr/src/lib/libpkg/common/vfpops.c
748
fd = open(a_path, O_WRONLY|O_CREAT|O_TRUNC, 0644);
usr/src/lib/libproc/common/Pcontrol.c
1606
if ((fd = open(procname, O_WRONLY)) < 0 ||
usr/src/lib/libproc/common/Pcontrol.c
3331
if ((fd = open(procname, O_WRONLY)) < 0 ||
usr/src/lib/libproc/common/Pcontrol.c
596
if ((fd = open(procname, O_WRONLY)) < 0 ||
usr/src/lib/libproc/common/Pcontrol.c
935
if ((fd = open(procname, O_WRONLY)) < 0 ||
usr/src/lib/libproc/common/Plwpregs.c
291
if ((fd = open(fname, O_WRONLY)) >= 0) {
usr/src/lib/libproc/common/Psyscall.c
145
if ((fd = open(pathname, O_WRONLY)) < 0 ||
usr/src/lib/libproc/common/pr_open.c
114
adp->arg_value = (O_WRONLY | O_CREAT | O_TRUNC);
usr/src/lib/libresolv2/common/isc/logging.c
120
flags = O_WRONLY|O_CREAT|O_APPEND;
usr/src/lib/libsldap/common/ns_trace.c
96
fd = open(val, O_WRONLY | O_CREAT, 0644);
usr/src/lib/libzpool/common/kernel.c
142
dump_fd = open64(dumppath, O_CREAT | O_WRONLY, 0666);
usr/src/lib/pam_modules/authtok_check/dict.c
69
if ((lockfd = open(dblock, O_WRONLY|O_CREAT|O_EXCL, 0400)) == -1) {
usr/src/lib/pam_modules/authtok_check/dict.c
71
lockfd = open(dblock, O_WRONLY);
usr/src/lib/pam_modules/timestamp/pam_timestamp.c
382
if ((fd = open(timestampfile, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR)) < 0) {
usr/src/lib/passwdutil/files_attr.c
1028
if ((tempfd = open(PASSTEMP, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) {
usr/src/lib/passwdutil/files_attr.c
1167
if ((tmpfd = open(HISTEMP, O_WRONLY|O_CREAT|O_TRUNC, HISTMODE)) < 0) {
usr/src/lib/passwdutil/files_attr.c
931
tempfd = open(SHADTEMP, O_WRONLY|O_CREAT|O_TRUNC, filemode);
usr/src/lib/pkcs11/pkcs11_softtoken/common/softKeystoreUtil.c
1266
O_WRONLY|O_CREAT|O_EXCL|O_NONBLOCK, S_IRUSR|S_IWUSR);
usr/src/lib/pkcs11/pkcs11_softtoken/common/softKeystoreUtil.c
2276
O_WRONLY|O_CREAT|O_EXCL|O_NONBLOCK, S_IRUSR|S_IWUSR);
usr/src/lib/pkcs11/pkcs11_softtoken/common/softKeystoreUtil.c
2531
O_WRONLY|O_CREAT|O_EXCL|O_NONBLOCK, S_IRUSR|S_IWUSR);
usr/src/lib/pkcs11/pkcs11_softtoken/common/softKeystoreUtil.c
2739
if ((obj_fd = open_and_lock_object_file(ks_handle, O_WRONLY,
usr/src/lib/pkcs11/pkcs11_softtoken/common/softKeystoreUtil.c
527
if ((mode == O_RDWR) || (mode == O_WRONLY)) {
usr/src/lib/pkcs11/pkcs11_softtoken/common/softKeystoreUtil.c
653
oflag = O_WRONLY;
usr/src/lib/pkcs11/pkcs11_softtoken/common/softKeystoreUtil.c
735
O_WRONLY|O_CREAT|O_EXCL|O_NONBLOCK, S_IRUSR|S_IWUSR);
usr/src/lib/pkcs11/pkcs11_softtoken/common/softKeystoreUtil.c
978
oflag = O_WRONLY;
usr/src/lib/print/libpapi-lpd/common/lpd-port.c
593
if ((fd = open(path, O_WRONLY)) >= 0) {
usr/src/lib/smbsrv/libfksmbsrv/common/fake_vop.c
51
#define O_RWMASK (O_WRONLY | O_RDWR) /* == 3 */
usr/src/lib/smbsrv/libsmb/common/smb_pwdutil.c
496
if ((tempfd = open(SMB_PASSTEMP, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) {
usr/src/lib/storage/libg_fc/common/genf.c
615
if (flag & O_WRONLY) {
usr/src/lib/sun_fc/common/Trace.cc
76
fd = open(DEBUG_FILE, O_WRONLY|O_APPEND); /* will only open if exists */
usr/src/lib/sun_fc/common/Trace.cc
82
fd = open(LOG_FILE, O_WRONLY|O_APPEND);
usr/src/lib/watchmalloc/common/malloc.c
1324
if ((ctlfd = open("/proc/self/ctl", O_WRONLY)) < 0 ||
usr/src/lib/watchmalloc/common/malloc.c
1376
if ((ctlfd = open("/proc/self/ctl", O_WRONLY)) < 0 ||
usr/src/test/libc-tests/tests/stdio/fdclose.c
65
fd = open("/dev/null", O_WRONLY);
usr/src/test/libproc-tests/tests/syscall/pr_target.h
41
#define PRT_ZERO_OFLAG O_WRONLY
usr/src/test/nvme-tests/tests/ioctl/general-errors.c
98
O_RDONLY : O_WRONLY);
usr/src/test/os-tests/tests/ddi_ufm/ufm-test.c
269
if (try_open(O_WRONLY, EINVAL) != 0)
usr/src/test/os-tests/tests/fifo-tvnsec.c
233
pipes[0] = open(path, O_WRONLY | O_NONBLOCK);
usr/src/test/os-tests/tests/file-locking/acquire-lock.c
153
fd = open(path, rdonly ? O_RDONLY : O_WRONLY);
usr/src/test/os-tests/tests/ksensor/ksensor_err.c
91
int flags[] = { O_RDWR, O_WRONLY, O_RDONLY | O_NDELAY,
usr/src/test/os-tests/tests/oclo/oclo_errors.c
138
if (!oclo_dup3("dup3(): O_CLOFORK|O_WRONLY", O_CLOFORK | O_WRONLY)) {
usr/src/test/os-tests/tests/oclo/oclo_errors.c
164
if (!oclo_pipe2("pipe2(): O_CLOFORK|O_WRONLY", O_CLOFORK | O_WRONLY)) {
usr/src/test/os-tests/tests/syscall/fchmodat.c
57
int fd = open(file, O_WRONLY | O_CREAT, 0644);
usr/src/test/os-tests/tests/syscall/open.c
67
fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_DIRECT, 0644);
usr/src/test/smbclient-tests/cmd/prot_mmap/prot_mmap.c
75
flags0 |= O_WRONLY;
usr/src/test/smbclient-tests/cmd/prot_mmap/prot_mmap.c
77
if ((flags0 & (O_RDONLY | O_WRONLY)) ==
usr/src/test/smbclient-tests/cmd/prot_mmap/prot_mmap.c
78
(O_RDONLY | O_WRONLY))
usr/src/test/smbclient-tests/cmd/prot_mmap/prot_mmap.c
85
flags1 |= O_WRONLY;
usr/src/test/smbclient-tests/cmd/prot_mmap/prot_mmap.c
87
if ((flags1 & (O_RDONLY | O_WRONLY)) ==
usr/src/test/smbclient-tests/cmd/prot_mmap/prot_mmap.c
88
(O_RDONLY | O_WRONLY))
usr/src/test/zfs-tests/tests/functional/ctime/ctime_001_pos.c
134
if ((fd = open(pfile, O_WRONLY, ALL_MODE)) == -1) {
usr/src/test/zfs-tests/tests/functional/ctime/ctime_001_pos.c
305
if ((fd = open(tfile, O_WRONLY | O_CREAT | O_TRUNC, ALL_MODE)) == -1) {
usr/src/tools/btxld/btxld.c
273
if ((fdo = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0666)) == -1)
usr/src/tools/btxld/version.c
117
fd = open(ofile, O_CREAT | O_WRONLY | O_TRUNC, 0644);
usr/src/tools/cw/cw.c
1277
if ((fd = open(ctx->i_stderr, O_WRONLY | O_CREAT | O_EXCL,
usr/src/tools/install.bin/install.bin.c
77
if ((dest_fd = open(dest_file, O_CREAT|O_WRONLY|O_TRUNC, 0755)) == -1) {
usr/src/ucbcmd/install.d/install.c
232
if ((to_fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, 0)) < 0) {
usr/src/ucbcmd/shutdown/shutdown.c
358
if ((fd = open(term, O_WRONLY|O_NOCTTY)) == -1) {
usr/src/ucbcmd/vipw/vipw.c
197
fd = open(to, O_WRONLY|O_CREAT|O_EXCL, 0600);
usr/src/ucblib/libucb/port/stdio/fopen.c
64
oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT;
usr/src/ucblib/libucb/port/stdio/fopen.c
67
oflag = (plus ? O_RDWR : O_WRONLY) | O_CREAT;
usr/src/uts/common/c2/audit_event.c
1052
case O_WRONLY:
usr/src/uts/common/c2/audit_event.c
1055
case O_WRONLY | O_CREAT:
usr/src/uts/common/c2/audit_event.c
1058
case O_WRONLY | O_TRUNC:
usr/src/uts/common/c2/audit_event.c
1061
case O_WRONLY | O_TRUNC | O_CREAT:
usr/src/uts/common/c2/audit_event.c
1123
if ((fm & (O_RDONLY|O_WRONLY|O_RDWR|O_CREAT|O_TRUNC)) == O_RDONLY)
usr/src/uts/common/c2/audit_event.c
1171
if ((fm & (O_RDONLY|O_WRONLY|O_RDWR|O_CREAT|O_TRUNC)) == O_RDONLY)
usr/src/uts/common/fs/zfs/spa_misc.c
2250
arc_procfd = open("/proc/self/ctl", O_WRONLY);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
1309
if (flags & O_WRONLY)