usr/src/boot/sys/sys/fcntl.h
193
#define FRDAHEAD O_CREAT
usr/src/cmd/acct/accton.c
83
if ((fd = open(admfile, O_RDONLY|O_CREAT, 0644)) == ERR) {
usr/src/cmd/acpi/common/osunixxf.c
898
Sem = sem_open (SemaphoreName, O_EXCL|O_CREAT, 0755, InitialUnits);
usr/src/cmd/acpihpd/acpihpd.c
161
if ((s_pid_fd = open(ACPIHPD_PID_FILE, O_RDWR | O_CREAT, 0644)) < 0) {
usr/src/cmd/allocate/allocate3.c
665
(lockfd = open(lockfile, O_RDWR | O_CREAT, 0600)) == -1) {
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/audiorecord/audiorecord.c
374
(O_RDWR | O_CREAT | (Append ? 0 : O_TRUNC)), 0666);
usr/src/cmd/audio/utilities/AudioFile.cc
156
desc = open(path, openmode | O_CREAT | O_TRUNC, 0666);
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/dumptape.c
1240
m = (access(tape, F_OK) == 0) ? 0 : O_CREAT;
usr/src/cmd/backup/dump/dumptape.c
1532
m = (access(tape, F_OK) == 0) ? 0 : O_CREAT;
usr/src/cmd/backup/dump/dumptape.c
2310
m = (access(tape, F_OK) == 0) ? 0 : O_CREAT;
usr/src/cmd/backup/restore/main.c
567
fd = open(name, O_CREAT|O_EXCL|O_RDWR, 0600);
usr/src/cmd/backup/restore/utilities.c
581
O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_LARGEFILE, perms)) < 0) {
usr/src/cmd/bnu/cpmv.c
74
if ((fd2 = open(temp_p, O_CREAT | O_TRUNC | O_WRONLY,
usr/src/cmd/boot/bootadm/bootadm.c
1687
bam_lock_fd = open(BAM_LOCK_FILE, O_CREAT|O_RDWR, LOCK_FILE_PERMS);
usr/src/cmd/boot/bootadm/bootadm.c
2024
if ((cf->out.fdfile = open(cf->path, O_WRONLY | O_CREAT, 0644))
usr/src/cmd/boot/bootadm/bootadm.c
3075
fd = open(path, O_RDWR|O_CREAT|O_TRUNC, FILE_STAT_MODE);
usr/src/cmd/boot/bootadm/bootadm.c
4217
fd = open(testfile, O_RDWR|O_CREAT|O_EXCL, 0644);
usr/src/cmd/boot/bootadm/bootadm.c
6993
O_RDWR|O_CREAT|O_TRUNC, 0644);
usr/src/cmd/boot/bootadm/bootadm.c
7561
fd = open(signfile, O_RDWR|O_CREAT|O_TRUNC, 0444);
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
557
fd = open(fname, O_RDWR|O_CREAT|O_TRUNC, 0666);
usr/src/cmd/cdrw/bstream.c
586
fd = open(fname, O_RDWR|O_CREAT|O_TRUNC, 0666);
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-crypto/pktool/common.c
1168
fd = open(filename, O_CREAT | O_EXCL, 0600);
usr/src/cmd/cmd-crypto/pktool/export.c
531
fd = open(filename, O_CREAT | O_RDWR |O_TRUNC, 0600);
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_main.c
138
if ((fd = open(ADDROBJ_MAPPING_DB_FILE, O_CREAT|O_RDONLY,
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_main.c
176
if ((fd = open(IPMGMT_DOOR, O_CREAT|O_RDONLY, IPADM_FILE_MODE)) == -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/main.c
509
pppdb = tdb_open(_PATH_PPPDB, 0, 0, O_RDWR|O_CREAT, 0644);
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/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
871
while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 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/bridged/door.c
191
O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW | O_NONBLOCK,
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
2183
O_CREAT, 0600);
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.rwhod.c
289
whod = open(path, O_WRONLY | O_CREAT, 0644);
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/ipqosconf/ipqosconf.c
9707
if ((fd = open(IPQOS_CONF_LOCK_FILE, O_EXCL|O_CREAT|O_RDWR,
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
9757
if ((fd = open(IPQOS_CONF_LOCK_FILE, O_CREAT|O_RDWR,
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ikeadm.c
2593
fd = open(argv[1], O_RDWR | O_CREAT | O_APPEND,
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ikeadm.c
3075
fd = open(tmpfilepath, O_RDWR | O_CREAT | O_EXCL,
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ikeadm.c
3209
oflag = O_RDWR | O_CREAT | O_EXCL;
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
1597
if ((fd = open(LOCK_FILE, O_EXCL|O_CREAT|O_RDWR, S_IRUSR|S_IWUSR))
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
1626
if ((fd = open(LOCK_FILE, O_CREAT|O_RDWR,
usr/src/cmd/cmd-inet/usr.sbin/route.c
1649
perm_fd = open(perm_file, O_RDWR | O_CREAT, fmode);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_capture.c
654
O_CREAT | O_TRUNC | O_RDWR, 0666);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_capture.c
686
O_CREAT | O_TRUNC | O_RDWR, 0666);
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
795
fd = open(pfile, O_CREAT|O_EXCL|O_RDWR, 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/cpio/cpio.c
5681
O_CREAT|O_RDWR|O_TRUNC, (int)G_p->g_mode)) < 0) {
usr/src/cmd/cpio/cpio.c
5688
O_CREAT|O_RDWR|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/at.c
432
if ((fd = open(name, O_CREAT | O_EXCL, 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/ctfdump/ctfdump.c
1167
if ((fd = open(out, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0)
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/devfsadm/devfsadm.c
1274
if ((fd = open(door_file, O_RDWR | O_CREAT, SYNCH_DOOR_PERMS)) == -1) {
usr/src/cmd/devfsadm/devfsadm.c
1308
if ((fd = open(door_file, O_RDWR | O_CREAT, S_IRUSR|S_IWUSR)) == -1) {
usr/src/cmd/devfsadm/devfsadm.c
3935
dev_lock_fd = open(dev_lockfile, O_CREAT|O_RDWR, 0644);
usr/src/cmd/devfsadm/devfsadm.c
4061
daemon_lock_fd = open(daemon_lockfile, O_CREAT|O_RDWR, 0644);
usr/src/cmd/dispadmin/dispadmin.c
335
if ((fd = open(CONFIGPATH, O_RDWR | O_CREAT, CONFIGPERM)) == -1)
usr/src/cmd/dlmgmtd/dlmgmt_db.c
290
oflags = (modestr[0] == 'r') ? O_RDONLY : O_WRONLY | O_CREAT | O_TRUNC;
usr/src/cmd/dlmgmtd/dlmgmt_db.c
300
if (oflags & O_CREAT) {
usr/src/cmd/dlmgmtd/dlmgmt_main.c
142
if ((fd = open(doorpath, O_CREAT|O_RDONLY, 0644)) == -1) {
usr/src/cmd/dlutil/dltraninfo.c
385
if ((dltran_outfd = open(outfile, O_RDWR | O_TRUNC | O_CREAT,
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
81
fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT | O_DSYNC |
usr/src/cmd/dumpadm/dconf.c
140
if ((dcp->dc_conf_fd = open(fpath, O_RDWR | O_CREAT, DC_PERM)) == -1) {
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
1825
if ((tfile = open(tfname, O_CREAT|O_EXCL|O_RDWR,
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/fdisk/fdisk.c
912
openmode = O_RDWR|O_CREAT;
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/fmd/common/fmd_log.c
421
if (oflags & O_CREAT)
usr/src/cmd/fm/fmd/common/fmd_log.c
444
return (fmd_log_xopen(root, name, tag, O_RDWR | O_CREAT | O_SYNC));
usr/src/cmd/fm/mcdecode/mcdecode.c
316
if ((fd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0) {
usr/src/cmd/fm/modules/common/fabric-xlate/fabric-xlate.c
65
fd = open(XMLTOPOFILE, O_RDWR | O_CREAT | O_EXCL, 0600);
usr/src/cmd/fs.d/autofs/auto_subr.c
159
if ((fd = open(map_path, O_RDWR | O_CREAT | O_EXCL,
usr/src/cmd/fs.d/autofs/autod_main.c
929
if ((dfd = open(AUTOFS_DOOR, O_RDWR|O_CREAT|O_TRUNC,
usr/src/cmd/fs.d/nfs/mountd/mountd.c
179
if ((dfd = open(MOUNTD_DOOR, O_RDWR|O_CREAT|O_TRUNC,
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
1316
dbp = db_get_db(fhpath, &fh->fh_fsid, &error, O_CREAT);
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
1375
dbp = db_get_db(fhpath, &fh->fh_fsid, errorp, O_CREAT);
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
1417
dbp = db_get_db(fhpath, &dfh->fh_fsid, errorp, O_CREAT);
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
1588
dbp = db_get_db(fhpath, &dfh->fh_fsid, &error, O_CREAT);
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
1615
dbp = db_get_db(fhpath, &fh->fh_fsid, &error, O_CREAT);
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
1646
dbp = db_get_db(fhpath, &from_dfh->fh_fsid, &error, O_CREAT);
usr/src/cmd/fs.d/nfs/nfslog/nfslogd.c
819
open_flags = O_RDWR | O_CREAT;
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid.c
271
if ((dfd = open(NFSMAPID_DOOR, O_RDWR|O_CREAT|O_TRUNC,
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/pcfs/fsck/fsck_main.c
154
tryOpen(outFD, outName, (O_RDWR | O_CREAT),
usr/src/cmd/fs.d/pcfs/mkfs/mkfs_main.c
886
if ((fd = open(fn, O_RDWR | O_CREAT | O_EXCL, 0666)) < 0) {
usr/src/cmd/fs.d/reparsed/reparsed.c
331
if ((dfd = open(REPARSED_DOOR, O_RDWR|O_CREAT|O_TRUNC,
usr/src/cmd/fs.d/smbclnt/fksmbcl/fksmbcl_main.c
564
int oflg = O_RDWR | O_CREAT;
usr/src/cmd/fs.d/smbclnt/smbiod-svc/smbiod-svc.c
268
tmp_fd = open(door_path, O_RDWR|O_CREAT|O_EXCL, 0644);
usr/src/cmd/fs.d/smbclnt/smbiod-svc/smbiod-svc.c
449
fd = open(door_file, O_RDWR|O_CREAT|O_EXCL, 0600);
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
640
fd = open(wpath, O_RDWR | O_CREAT | O_EXCL, 0600);
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
541
if ((fd = open(filename, O_RDWR|O_CREAT|O_DSYNC, mode)) < 0) {
usr/src/cmd/fwflash/plugins/transport/common/tavor.c
133
if ((fd = open(filename, O_RDWR|O_CREAT|O_DSYNC, mode)) < 0) {
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/hal/hald/hald.c
527
if ((pf= open (HALD_PID_FILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644)) > 0) {
usr/src/cmd/hal/tools/hal-storage-shared.c
637
lock_mtab_fd = open ("/media/.hal-mtab-lock", O_CREAT | O_RDWR);
usr/src/cmd/hotplugd/hotplugd_door.c
96
if ((fd = open(HOTPLUGD_DOOR, O_CREAT|O_EXCL|O_RDONLY, 0644)) == -1) {
usr/src/cmd/i2cadm/i2cadm_io.c
899
ofd = open(output, O_RDWR | O_TRUNC | O_CREAT);
usr/src/cmd/init/init.c
3870
st_fd = open(init_state_file, O_RDWR | O_CREAT | O_EXCL,
usr/src/cmd/init/init.c
3985
O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
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/isns/isnsd/xml/data.c
858
fd = open(xml_bak_file, O_RDWR | O_CREAT,
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/keyserv/keyserv_cache.c
219
if ((fd = open(filename, O_RDWR|O_CREAT, 0600)) < 0) {
usr/src/cmd/keyserv/update.c
265
wfd = open(tmpname, O_CREAT|O_RDWR|O_TRUNC,
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_proc.c
646
fd = open("/tmp/kwarn.out", O_WRONLY|O_TRUNC|O_CREAT,
usr/src/cmd/krb5/ldap_util/kdb5_ldap_services.c
2078
fd = open(file_name, O_CREAT|O_RDWR|O_APPEND, 0600);
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
658
lock_fd = open(temp_file_name, O_RDWR|O_CREAT, 0600);
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
993
open(logfile, O_EXCL|O_WRONLY|O_CREAT, 0644)) < 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/logadm/conf.c
381
if ((Timesfd = open(Timesname, O_CREAT|O_RDWR, 0644)) < 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
1718
if ((fdl = open(LASTLOG, O_RDWR|O_CREAT, 0444)) >= 0) {
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
435
if (Open(errfile, O_CREAT|O_TRUNC|O_WRONLY, 0600) == -1)
usr/src/cmd/lp/cmd/lpsched/files.c
380
if ((fd = Open(file, O_CREAT|O_TRUNC, 0600)) == -1) {
usr/src/cmd/lp/cmd/lpsched/files.c
405
if ((fd = Open(file, O_CREAT|O_TRUNC, 0600)) == -1)
usr/src/cmd/lp/filter/postscript/postreverse/postreverse.c
198
if ((fd = open(fileName, O_RDWR | O_CREAT | O_EXCL, 0600)) < 0) {
usr/src/cmd/lp/lib/lp/files.c
159
if ((fd = Open(path, oflag|O_CREAT, mode)) != -1)
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/collect.c
1006
if ((fd = open(tempEdit, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
usr/src/cmd/mailx/collect.c
109
if ((fd = open(tempMail, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
usr/src/cmd/mailx/collect.c
854
if ((fd = open(tempEdit, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
usr/src/cmd/mailx/collect.c
959
if ((fd = open(tempMail, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
usr/src/cmd/mailx/edit.c
132
if ((fd = open(tempZedit, O_RDWR|O_CREAT|
usr/src/cmd/mailx/lex.c
199
if ((fd = open(tempMesg, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
usr/src/cmd/mailx/names.c
235
fd = open(tempEdit, O_CREAT|O_EXCL|O_APPEND|O_WRONLY,
usr/src/cmd/mailx/quit.c
172
if ((fd = open(tempQuit, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
usr/src/cmd/mailx/quit.c
197
if ((fd = open(mbox, O_RDWR|O_CREAT|O_TRUNC, MBOXPERM)) < 0 ||
usr/src/cmd/mailx/quit.c
206
if ((fd = open(mbox, O_RDWR|O_CREAT, MBOXPERM)) < 0 ||
usr/src/cmd/mailx/quit.c
299
fd = open(tempResid,O_RDWR|O_CREAT|O_EXCL, 0600);
usr/src/cmd/mailx/send.c
604
if ((fd = open(tempMail, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
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/make/lib/vroot/open.cc
47
((flags & (O_CREAT|O_APPEND)) != 0) ? rw_write : rw_read);
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_ctf_open.c
61
if ((fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0)
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/common/modules/smbsrv/smbsrv_pcap.c
119
fd = open(outfile, O_RDWR | O_CREAT | O_NOFOLLOW, 0644);
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/mkfile/mkfile.c
132
fd = open(argv[1], O_CREAT|O_TRUNC|O_RDWR, FILE_MODE);
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/modload/drvsubr.c
908
O_CREAT|O_RDWR|O_NOFOLLOW|O_NOLINKS, S_IRUSR|S_IWUSR);
usr/src/cmd/mv/mv.c
2491
O_RDWR|O_CREAT|O_TRUNC, s3.st_mode & MODEBITS)) == -1) {
usr/src/cmd/ndmpd/tlm/tlm_bitmap.c
1391
if ((fd = open(fname, O_RDWR|O_CREAT, 0600)) < 0)
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
1228
*fp = open(real_name, O_CREAT | O_TRUNC | O_WRONLY,
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
1434
fd = attropen(name, xattrname, O_CREAT | O_RDWR, 0755);
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/nvmeadm/nvmeadm.c
2023
int fd = open(file, O_WRONLY | O_TRUNC | O_CREAT, 0644);
usr/src/cmd/nvmeadm/nvmeadm_phyeye.c
458
if ((fd = open(phy->pm_output, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0) {
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/nvmeadm/nvmeadm_vuc.c
362
ofd = open(vuc->vuc_output, O_RDWR | O_TRUNC | O_CREAT,
usr/src/cmd/nvmeadm/nvmeadm_wdc.c
147
ofd = open(e6->e6_output, O_RDWR | O_CREAT | O_TRUNC, 0644);
usr/src/cmd/oplhpd/oplhpd.c
167
if ((pid_fd = open(OPLHPD_PID_FILE, O_RDWR | O_CREAT, 0644)) < 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/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/print/conv_fix/conv_fix.c
122
fd = open(ofile, O_RDWR|O_CREAT|O_EXCL, 0644);
usr/src/cmd/ptools/pfiles/pfiles.c
388
O_CREAT | O_TRUNC | O_EXCL | O_NOCTTY | O_LARGEFILE
usr/src/cmd/ptools/pfiles/pfiles.c
429
if (flags & O_CREAT)
usr/src/cmd/raidctl/raidctl.c
2976
fd0 = open(RAIDCTL_LOCKF, O_CREAT|O_WRONLY, 0600);
usr/src/cmd/rcm_daemon/common/rcm_lock.c
99
state_fd = open(RCM_STATE_FILE, O_CREAT|O_RDWR, 0600);
usr/src/cmd/rcm_daemon/common/rcm_main.c
139
daemon_lock_fd = open(daemon_lock_file, O_CREAT|O_RDWR, 0644);
usr/src/cmd/rcm_daemon/common/rcm_script.c
532
if ((statefd->fd = open(filename, O_CREAT|O_RDWR, 0600)) ==
usr/src/cmd/rctladm/rctladm.c
153
if ((fd = open(CONFIGPATH, O_WRONLY|O_CREAT|O_TRUNC, CONFIGPERM)) == -1)
usr/src/cmd/rmvolmgr/vold.c
822
open(notify_file, O_CREAT|O_EXCL|O_WRONLY, 0644);
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/sac.c
1098
fd = open(CMDPIPE, O_RDWR | O_CREAT, 0600);
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
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/dbm/dbm.c
84
dbm_open(file, O_CREAT | O_RDWR, __db_omode("rw----"))) != NULL)
usr/src/cmd/sendmail/db/os/os_oflags.c
42
if (oflags & O_CREAT)
usr/src/cmd/sendmail/db/os/os_open.c
53
flags |= O_CREAT;
usr/src/cmd/sendmail/libsm/stdio.c
415
oflags = O_RDWR | O_CREAT;
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
427
oflags = O_APPEND | O_RDWR | O_CREAT;
usr/src/cmd/sendmail/libsm/stdio.c
484
if (flags & O_CREAT)
usr/src/cmd/sendmail/libsm/stdio.c
75
oflags = O_RDWR | O_CREAT | O_TRUNC;
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/stdio.c
87
oflags = O_APPEND | O_RDWR | 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/libsmdb/smdb1.c
489
bitset(mode, O_CREAT))
usr/src/cmd/sendmail/libsmdb/smdb1.c
501
mode &= ~(O_CREAT|O_EXCL);
usr/src/cmd/sendmail/libsmdb/smdb2.c
608
bitset(mode, O_CREAT))
usr/src/cmd/sendmail/libsmdb/smdb2.c
619
mode &= ~(O_CREAT|O_EXCL);
usr/src/cmd/sendmail/libsmdb/smdb2.c
638
if (bitset(O_CREAT, mode))
usr/src/cmd/sendmail/libsmdb/smndbm.c
522
bitset(mode, O_CREAT))
usr/src/cmd/sendmail/libsmdb/smndbm.c
546
mode &= ~(O_CREAT|O_EXCL);
usr/src/cmd/sendmail/libsmutil/safefile.c
699
if (bitset(O_CREAT, omode))
usr/src/cmd/sendmail/libsmutil/safefile.c
701
omode &= ~O_CREAT;
usr/src/cmd/sendmail/libsmutil/safefile.c
732
omode |= O_CREAT | (bitset(SFF_NOTEXCL, sff) ? 0 : O_EXCL);
usr/src/cmd/sendmail/src/bf.c
548
O_RDWR | O_CREAT | O_TRUNC | QF_O_EXTRA,
usr/src/cmd/sendmail/src/bf.c
710
O_RDWR | O_CREAT | O_EXCL | QF_O_EXTRA,
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
5516
oflags |= O_CREAT|O_EXCL;
usr/src/cmd/sendmail/src/map.c
1480
mode |= O_CREAT|O_EXCL;
usr/src/cmd/sendmail/src/map.c
1560
mode &= ~(O_CREAT|O_EXCL);
usr/src/cmd/sendmail/src/map.c
2075
omode |= O_CREAT|O_EXCL;
usr/src/cmd/sendmail/src/map.c
2127
omode &= ~(O_EXCL|O_CREAT);
usr/src/cmd/sendmail/src/map.c
2141
if (bitset(O_CREAT, omode))
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
8520
flags = O_CREAT|O_WRONLY|O_EXCL;
usr/src/cmd/sendmail/util/editmap.c
280
mode = O_RDWR | O_CREAT;
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/makemap.c
312
mode |= O_CREAT|O_TRUNC;
usr/src/cmd/sendmail/util/vacation.c
918
if (!(db = dbm_open(buf, O_WRONLY|O_CREAT|O_TRUNC, 0644))) {
usr/src/cmd/sgs/ar/common/file.c
1188
ar_outfile.fd = open(ar_outfile.path, O_RDWR|O_CREAT|O_LARGEFILE, 0666);
usr/src/cmd/sgs/crle/common/config.c
652
if ((fd = open(crle->c_confil, (O_RDWR | O_CREAT | O_TRUNC),
usr/src/cmd/sgs/crle/common/crle.c
375
if ((fd = open(crle.c_confil, (O_RDWR | O_CREAT | O_TRUNC),
usr/src/cmd/sgs/crle/common/crle.c
470
if ((crle.c_tempfd = open(crle.c_tempname, (O_RDWR | O_CREAT),
usr/src/cmd/sgs/elfdump/common/main.c
902
if ((wfd = open(wname, (O_RDWR | O_CREAT | O_TRUNC),
usr/src/cmd/sgs/elfwrap/common/main.c
162
if ((fd = open(ofile, (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) {
usr/src/cmd/sgs/ldprof/common/profile.c
201
if ((fd = open(Profile, (O_RDWR | O_CREAT), 0666)) == -1) {
usr/src/cmd/sgs/libelf/demo/dcom.c
167
if ((tfd = open(tfile, O_RDWR | O_CREAT, 0600)) == -1) {
usr/src/cmd/sgs/libld/common/outfile.c
157
if ((ofl->ofl_fd = open(ofl->ofl_name, O_RDWR | O_CREAT | O_TRUNC,
usr/src/cmd/sgs/liblddbg/common/files.c
484
if ((fd = open(nname, O_RDWR | O_CREAT | O_TRUNC,
usr/src/cmd/sgs/librtld/common/dldump.c
253
if ((fd = open(opath, (O_RDWR | O_CREAT | O_TRUNC), 0777)) == -1) {
usr/src/cmd/sgs/link_audit/common/bindings.c
245
if ((fd = open(buffer_name, O_RDWR | O_CREAT | O_EXCL, 0666)) != -1) {
usr/src/cmd/sgs/link_audit/common/bindings.c
77
if ((fd = open("/tmp/bind_err", O_RDWR | O_CREAT, 0666)) == -1) {
usr/src/cmd/sgs/mcs/common/file.c
120
O_WRONLY | O_APPEND | O_CREAT,
usr/src/cmd/sgs/mcs/common/file.c
712
if ((fdtmp = open(elftmpfile.tmp_name, O_RDWR | O_TRUNC | O_CREAT,
usr/src/cmd/sgs/rtld/common/debug.c
122
dbg_fd = open(file, O_RDWR | O_CREAT | O_TRUNC, 0666);
usr/src/cmd/sh/io.c
191
fd = open((char *)tmpout, O_RDWR|O_CREAT|O_EXCL, 0600);
usr/src/cmd/sh/service.c
655
O_WRONLY | O_APPEND | O_CREAT, 0666)) != -1) {
usr/src/cmd/sh/service.c
96
newmode = O_RDWR|O_CREAT;
usr/src/cmd/smbios/smbios.c
2421
if ((fd = open(ofile, O_WRONLY|O_CREAT|O_TRUNC, 0666)) == -1) {
usr/src/cmd/smserverd/smediad.c
2719
fd = open(smedia_service, O_RDWR|O_CREAT|O_EXCL, 0644);
usr/src/cmd/sort/streams_stdio.c
56
if ((SF->s_fd = open(str->s_filename, O_CREAT | O_TRUNC |
usr/src/cmd/sort/utility.c
692
if ((fd_out = open(dst, O_RDWR | O_CREAT | O_TRUNC, OUTPUT_MODE)) < 0)
usr/src/cmd/stmsboot/stmsboot_util.c
159
mapfd = open(ondiskname, O_RDWR|O_CREAT|O_SYNC, S_IRUSR | S_IWUSR);
usr/src/cmd/su/su.c
281
(void) close(open(Sulog, O_WRONLY | O_APPEND | O_CREAT,
usr/src/cmd/svc/configd/backend.c
1954
if ((fd = open(fname, O_CREAT|O_WRONLY|O_APPEND, 0600)) < 0) {
usr/src/cmd/svc/configd/maindoor.c
170
fd = open(doorpath, O_RDWR | O_CREAT | O_EXCL, 0644);
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/log.c
684
O_CREAT | O_RDWR | O_APPEND, 0644)) == -1) {
usr/src/cmd/svc/startd/utmpx.c
404
O_WRONLY | O_CREAT | O_TRUNC, mode)) != -1) {
usr/src/cmd/svc/svccfg/svccfg_libscf.c
779
fd = open(est->sc_repo_doorname, O_CREAT | O_EXCL | O_RDWR, 0600);
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/lockinst.c
189
if ((fd = open(lockpath, O_RDWR | O_CREAT, 0600)) == -1) {
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
569
lock_fd = open(lockpath, O_RDWR|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/pkgadm/lock.c
1187
fd = open(lockpath, O_CREAT|O_RDWR, LOCK_FILEMODE);
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/svr4pkg/pkgserv/pkgserv.c
1142
int fd = open(lock, O_RDWR|O_CREAT, 0644);
usr/src/cmd/sysdef/sysdef.c
642
if ((sfd = open(sorted_fname, O_RDWR|O_CREAT|O_EXCL,
usr/src/cmd/syseventadm/syseventadm.c
229
lock_fd = open(lock_file, O_CREAT|O_RDWR, 0644);
usr/src/cmd/syseventd/daemons/syseventd/syseventd.c
1469
fd = open(local_door_file, O_CREAT|O_RDWR, S_IREAD|S_IWRITE);
usr/src/cmd/syseventd/daemons/syseventd/syseventd.c
1559
daemon_lock_fd = open(local_lock_file, O_CREAT|O_RDWR, 0644);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
812
lock_fd = open(lock_file, O_CREAT|O_RDWR, 0644);
usr/src/cmd/syslogd/syslogd.c
2696
if ((pidfd = open(PidFileName, O_RDWR|O_CREAT|O_TRUNC, 0644))
usr/src/cmd/syslogd/syslogd.c
521
(O_WRONLY|O_CREAT|O_TRUNC|O_EXCL),
usr/src/cmd/tar/tar.c
1096
O_RDWR|O_CREAT|O_TRUNC, 0666);
usr/src/cmd/tar/tar.c
3475
ofile = openat(dirfd, comp, O_RDWR|O_CREAT|O_TRUNC,
usr/src/cmd/tar/tar.c
3484
O_RDWR|O_CREAT|O_TRUNC,
usr/src/cmd/truss/codes.c
2200
(O_NDELAY|O_APPEND|O_SYNC|O_DSYNC|O_NONBLOCK|O_CREAT|O_TRUNC\
usr/src/cmd/truss/codes.c
2242
if (arg & O_CREAT)
usr/src/cmd/truss/main.c
596
sfd = open(tmps, O_CREAT|O_APPEND|O_EXCL|O_RDWR, 0600);
usr/src/cmd/truss/systable.c
1450
((Lsp->pr_sysarg[2] & O_CREAT)? 3 : 2) :
usr/src/cmd/truss/systable.c
1451
((Lsp->pr_sysarg[2] & O_CREAT)? 1 : 0);
usr/src/cmd/truss/systable.c
1456
subcode = (Lsp->pr_sysarg[1] & O_CREAT)? 1 : 0;
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/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/vi/port/expreserve.c
386
} while (((fd = open(path, O_CREAT|O_EXCL|O_WRONLY, 0600)) < 0) &&
usr/src/cmd/vscan/vscand/vs_icap.c
1045
O_RDWR | O_CREAT | O_EXCL | O_TRUNC, 0644)) == -1) {
usr/src/cmd/vscan/vscand/vs_main.c
447
if ((fd = open(filepath, O_RDONLY | O_CREAT, access_mode)) == -1) {
usr/src/cmd/vt/vtdaemon.c
1131
if ((doorfd = open(vt_door_path, O_CREAT|O_RDWR,
usr/src/cmd/ypcmd/makedbm.c
370
if ((fdb = dbm_open(dirbuf, O_RDWR | O_CREAT, 0644)) == NULL) {
usr/src/cmd/ypcmd/mkalias.c
343
Outdbm = dbm_open(argv[2], O_RDWR|O_CREAT|O_TRUNC, 0644);
usr/src/cmd/ypcmd/shared/lockmap.c
183
lockfile = open(LOCKFILE, O_RDWR|O_CREAT, 0600);
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/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
1025
db = dbm_open(tmp_name, O_RDWR + O_CREAT + O_TRUNC, 0644);
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/ypcmd/ypxfrd_client.c
291
db = dbm_open(tempmap, O_RDWR + O_CREAT + O_TRUNC, 0777);
usr/src/cmd/zlogin/zlogin.c
1422
if ((*lockfd = open(pathbuf, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) {
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
4018
if ((fd = open(map_path, O_RDWR | O_CREAT | O_EXCL,
usr/src/cmd/zoneadmd/vplat.c
5211
fd = open(ZONE_INDEX_FILE, O_WRONLY|O_CREAT|O_TRUNC,
usr/src/cmd/zoneadmd/zoneadmd.c
1725
if ((doorfd = open(zone_door_path, O_CREAT|O_RDWR,
usr/src/cmd/zonestat/zonestatd/zonestatd.c
775
fd = open(path, O_CREAT|O_RDWR, 0644);
usr/src/cmd/ztest/ztest.c
951
int fd = open(path, O_RDWR | O_CREAT | O_TRUNC, 0666);
usr/src/lib/abi/apptrace/common/apptrace.c
246
fd = open(str, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr/src/lib/auditd_plugins/binfile/binfile.c
528
O_RDWR | O_APPEND | O_CREAT | O_EXCL, 0640);
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/cfgadm_plugins/fp/common/cfga_rep.c
248
if ((fd = open(FAB_REPOSITORY, O_RDWR | O_CREAT)) == -1) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_rep.c
314
if ((copy_fd = open(copy_rep, O_RDWR | O_CREAT | O_TRUNC,
usr/src/lib/cfgadm_plugins/fp/common/cfga_rep.c
442
if ((tmp_fd = open(tmp_rep, O_RDWR|O_CREAT|O_TRUNC,
usr/src/lib/cfgadm_plugins/fp/common/cfga_rep.c
537
if ((tmp_fd = open(tmp_rep, O_RDWR|O_CREAT|O_TRUNC,
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1083
*fdp = open(SCFGA_LOCK, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR);
usr/src/lib/cfgadm_plugins/sysctrl/common/cfga.c
574
if ((sim_fd = open("/tmp/cfga_simdata", O_RDWR|O_CREAT)) == -1) {
usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/cc_file.c
1256
open_flag | O_EXCL | O_CREAT, 0600);
usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/cc_file.c
1379
open_flag = O_CREAT|O_EXCL|O_TRUNC|O_RDWR;
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/os/krbfileio.c
22
open_flag = O_CREAT|O_EXCL|O_TRUNC|O_RDWR;
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/gss_mechs/mech_krb5/profile/prof_solaris.c
957
fd = open(*filenames, O_RDWR|O_CREAT|O_NOFOLLOW|O_NOLINKS, mode);
usr/src/lib/krb5/kdb/kdb_log.c
558
if ((ulogfd = open(logname, O_RDWR+O_CREAT, 0600)) == -1) {
usr/src/lib/krb5/plugins/kdb/db2/adb_openclose.c
373
fd = THREEPARAMOPEN(db->lock->filename,O_RDWR | O_CREAT | O_EXCL,
usr/src/lib/krb5/plugins/kdb/db2/adb_openclose.c
58
db = dbopen(filename, O_RDWR | O_CREAT | O_EXCL, 0600, DB_BTREE, &btinfo);
usr/src/lib/krb5/plugins/kdb/db2/adb_openclose.c
65
lf = THREEPARAMOPEN(lockfilename, O_RDWR | O_CREAT | O_EXCL, 0600);
usr/src/lib/krb5/plugins/kdb/db2/kdb_db2.c
778
db = k5db2_dbopen(db_ctx, db_name, O_RDWR | O_CREAT | O_EXCL, 0600, db_ctx->tempdb);
usr/src/lib/krb5/plugins/kdb/db2/kdb_db2.c
797
fd = open(okname, O_CREAT | O_RDWR | O_TRUNC, 0600);
usr/src/lib/krb5/plugins/kdb/db2/libdb2/db/db.c
57
(O_CREAT | O_EXCL | O_EXLOCK | O_NONBLOCK | O_RDONLY | \
usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hsearch.c
64
dbp = (DB *)__hash_open(NULL, O_CREAT | O_RDWR | O_BINARY, 0600, &info, 0);
usr/src/lib/lib9p/common/backend/fs.c
1232
fd = openat(file->ff_dirfd, newname, flags | O_CREAT | O_EXCL, perm);
usr/src/lib/libadm/common/devreserv.c
189
lkfilefd = open(lockname, O_RDWR|O_CREAT, 0600);
usr/src/lib/libbsm/common/audit_cron.c
192
if ((fd = open(fname, O_CREAT|O_WRONLY|O_TRUNC, 0200)) == -1)
usr/src/lib/libbsm/common/devalloc.c
1192
if ((lockfd = open(lockfile, O_RDWR | O_CREAT, 0600)) == -1)
usr/src/lib/libbsm/common/devalloc.c
1445
if ((tmpfd = open(tmpdefpath, O_RDWR|O_CREAT, DA_DBMODE)) == -1) {
usr/src/lib/libbsm/common/devalloc.c
1583
if ((tafd = open(apathp, O_RDWR|O_CREAT, DA_DBMODE)) == -1) {
usr/src/lib/libbsm/common/devalloc.c
1673
if ((tmfd = open(mpathp, O_RDWR|O_CREAT, DA_DBMODE)) == -1) {
usr/src/lib/libbsm/common/devalloc.h
77
#define DA_RDWR O_RDWR|O_CREAT|O_NONBLOCK
usr/src/lib/libc/port/gen/getut.c
147
if ((fd = open(_compat_utmpfile, O_RDWR|O_CREAT, 0644)) < 0) {
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/getut.c
669
if ((fd = open(_compat_utmpfile, O_RDWR|O_CREAT, 0644)) < 0)
usr/src/lib/libc/port/gen/getutx.c
1081
if ((lockfd = open(UTMPX_FILE, O_RDWR|O_CREAT, 0644)) < 0)
usr/src/lib/libc/port/gen/getutx.c
194
if ((fd = open(utmpxfile, O_RDWR|O_CREAT, 0644)) < 0) {
usr/src/lib/libc/port/gen/mkstemp.c
101
if ((fd = open(as, O_CREAT|O_EXCL|O_RDWR|flags,
usr/src/lib/libc/port/gen/mkstemp.c
96
if ((fd = open64(as, O_CREAT|O_EXCL|O_RDWR|flags,
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/rt/mqueue.c
404
if ((oflag & O_CREAT) != 0) {
usr/src/lib/libc/port/rt/mqueue.c
452
(O_RDWR|O_CREAT|O_EXCL), mode, &err)) < 0)
usr/src/lib/libc/port/rt/mqueue.c
502
if ((fd = __pos4obj_open(path, MQ_DSCN_TYPE, O_RDWR | O_CREAT,
usr/src/lib/libc/port/rt/pos4obj.c
304
if (!(oflag & O_CREAT)) {
usr/src/lib/libc/port/rt/pos4obj.c
325
fd = __open_nc(dfile, oflag & ~O_CREAT, mode);
usr/src/lib/libc/port/rt/pos4obj.c
377
if ((fd = __open_nc(dfile, O_RDWR | O_CREAT | O_EXCL, 0666))
usr/src/lib/libc/port/rt/sem.c
78
oflag = (oflag & (O_CREAT|O_EXCL)) | (O_RDWR);
usr/src/lib/libc/port/rt/sem.c
79
if (oflag & O_CREAT) {
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/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/libcmdutils/common/process_xattrs.c
142
O_RDWR|O_CREAT|O_TRUNC, st1.st_mode)) == -1) {
usr/src/lib/libcontract/common/libcontract_priv.c
87
assert((oflag & O_CREAT) == 0);
usr/src/lib/libctf/common/ctf_elfwrite.c
411
if ((ofd = open(output, O_RDWR | O_CREAT | O_TRUNC, st.st_mode)) < 0)
usr/src/lib/libctf/common/ctf_lib.c
765
if ((fd = open(path, O_CREAT | O_TRUNC | O_RDWR, 0777)) < 0)
usr/src/lib/libdevinfo/devinfo_devlink.c
251
flg = O_RDWR|O_CREAT|O_TRUNC;
usr/src/lib/libdevinfo/devinfo_devlink.c
3117
(writer ? (O_RDWR|O_CREAT) : O_RDONLY), DB_LOCK_PERMS)) < 0) {
usr/src/lib/libdevinfo/devinfo_devlink.c
3441
if ((rofd = open(DEVNAME_CHECK_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0644))
usr/src/lib/libdevinfo/devinfo_devlink.c
379
fd = open(di_test_db, O_CREAT|O_RDWR|O_EXCL, 0644);
usr/src/lib/libdevinfo/devinfo_dli.c
140
return (di_dli_open(path, O_RDWR | O_SYNC | O_TRUNC | O_CREAT,
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/libdhcpagent/common/dhcp_stable.c
224
if ((fd = open(IAID_FILE, O_RDWR | O_CREAT, 0644)) == -1)
usr/src/lib/libdladm/common/libdladm.c
614
if ((lock_fd = open(lock_file, O_RDWR | O_CREAT | O_TRUNC,
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/libdladm/common/libdlflow.c
86
if ((lock_fd = open(DLADM_FLOW_DB_LOCK, O_RDWR | O_CREAT | O_TRUNC,
usr/src/lib/libdtrace/common/dt_link.c
1547
if ((fd = open64(file, O_RDWR | O_CREAT | O_TRUNC, 0666)) == -1) {
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
1064
if (oflags & O_CREAT) {
usr/src/lib/libexacct/common/exacct_ops.c
1164
if (oflags & O_CREAT)
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
1126
if ((fd = open(name, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR)) < 0) {
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/libkmf/libkmf/common/certop.c
2671
if ((fd = open(certfile, O_CREAT | O_RDWR | O_TRUNC, 0644)) == -1) {
usr/src/lib/libkmf/libkmf/common/client.c
530
if ((respfd = open(respfile, O_CREAT |O_RDWR | O_EXCL, 0600)) == -1) {
usr/src/lib/libkmf/libkmf/common/client.c
678
if ((fd = open(crlfile, O_CREAT |O_RDWR | O_EXCL, 0644)) == -1)
usr/src/lib/libkmf/libkmf/common/client.c
752
if ((fd = open(certfile, O_CREAT |O_RDWR | O_EXCL, 0644)) == -1)
usr/src/lib/libkmf/libkmf/common/csrcrlop.c
158
if ((fd = open(csrfile, O_CREAT |O_RDWR, 0644)) == -1) {
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
4658
fd = open(fullpath, O_CREAT|O_TRUNC|O_RDWR, 0400);
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/maillock.c
131
fd = open(tempfile, O_RDWR|O_CREAT|O_EXCL, 0600);
usr/src/lib/libnisdb/db_log.cc
223
if ((to = open(newname, O_WRONLY|O_CREAT|O_TRUNC, 0660)) < 0) {
usr/src/lib/libnisdb/yptol/dit_access.c
1247
O_RDWR | O_CREAT, 0644);
usr/src/lib/libnisdb/yptol/dit_access.c
1343
if ((temp_entries_db = dbm_open(temp_entries, O_RDWR | O_CREAT, 0644))
usr/src/lib/libnisdb/yptol/dit_access.c
1352
if ((temp_ttl_db = dbm_open(temp_ttl, O_RDWR | O_CREAT, 0644))
usr/src/lib/libnisdb/yptol/dit_access.c
660
if ((temp_entries_db = dbm_open(temp_entries, O_RDWR | O_CREAT, 0644))
usr/src/lib/libnisdb/yptol/dit_access.c
669
if ((temp_ttl_db = dbm_open(temp_ttl, O_RDWR | O_CREAT, 0644))
usr/src/lib/libnisdb/yptol/lock_update.c
130
lockfile = open(LOCKFILE, O_RDWR|O_CREAT, 0600);
usr/src/lib/libnisdb/yptol/map_ctrl.c
482
map->ttl = dbm_open(map->ttl_path, O_RDWR | O_CREAT, 0644);
usr/src/lib/libnsl/common/daemon_utils.c
127
if (mode & O_CREAT)
usr/src/lib/libnsl/common/daemon_utils.c
149
if ((fd = open_daemon_lock(name, O_RDWR|O_CREAT)) == -1)
usr/src/lib/libnsl/common/daemon_utils.c
177
int fd = open_daemon_lock(name, O_CREAT);
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/libnwam/common/libnwam_backend.c
354
O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW | O_NONBLOCK,
usr/src/lib/libnwam/common/libnwam_events.c
205
if ((fd = open(eventmsgfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1)
usr/src/lib/libnwam/common/libnwam_files.c
758
if ((fd = open(tmpfilename, O_RDWR | O_CREAT | O_TRUNC, mode)) < 0)
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
824
if ((list_fd = open(tmp_file, O_RDWR | O_CREAT, 0644)) == -1) {
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/pr_open.c
114
adp->arg_value = (O_WRONLY | O_CREAT | O_TRUNC);
usr/src/lib/librcm/librcm_event.c
334
fd = open(door_name, O_EXCL|O_CREAT, S_IREAD|S_IWRITE);
usr/src/lib/librename/common/librename.c
111
oflags = O_CREAT | O_TRUNC | O_RDWR | O_NOFOLLOW;
usr/src/lib/libresolv2/common/bsd/mktemp.c
123
open(path, O_CREAT|O_EXCL|O_RDWR, 0600)) >= 0)
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/libsqlite/src/os.c
465
id->fd = open(zFilename, O_RDWR|O_CREAT|O_LARGEFILE|O_BINARY, 0644);
usr/src/lib/libsqlite/src/os.c
597
O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW|O_LARGEFILE|O_BINARY, 0600);
usr/src/lib/libsysevent/libsysevent.c
1980
fd = open(SH_DOOR_NAME(shp), O_CREAT|O_RDWR,
usr/src/lib/libsysevent/libsysevent.c
2173
fd = open(SH_DOOR_NAME(shp), O_CREAT|O_RDWR, S_IREAD|S_IWRITE);
usr/src/lib/libuutil/common/uu_open.c
56
f = open(fname, O_CREAT | O_EXCL | O_RDWR, 0600);
usr/src/lib/libzonecfg/common/getzoneent.c
213
lock_fd = open(path, O_CREAT|O_RDWR, 0644);
usr/src/lib/libzonecfg/common/libzonecfg.c
7455
if ((*lockfd = open(pathbuf, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) {
usr/src/lib/libzonecfg/common/scratchops.c
94
flags |= O_EXCL | O_CREAT;
usr/src/lib/libzpool/common/kernel.c
142
dump_fd = open64(dumppath, O_CREAT | O_WRONLY, 0666);
usr/src/lib/mpapi/libmpapi/common/mpapi.c
3492
if ((mpconf = open(mpConfFilePath, O_RDWR | O_CREAT)) == -1) {
usr/src/lib/mpapi/libmpapi/common/mpapi.c
3642
O_RDWR|O_CREAT|O_TRUNC, S_IRUSR | S_IWUSR)) < 0) {
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/packlib.c
65
if ((fd_d = open(dname, O_RDWR|O_CREAT, 0600)) == -1)
usr/src/lib/pam_modules/authtok_check/packlib.c
68
if ((fd_i = open(iname, O_RDWR|O_CREAT, 0600)) == -1)
usr/src/lib/pam_modules/authtok_check/packlib.c
71
if ((fd_w = open(wname, O_RDWR|O_CREAT, 0600)) == -1)
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/pam_modules/unix_account/unix_acct.c
100
if ((fdl = open(LASTLOG, O_RDWR|O_CREAT, 0444)) >= 0) {
usr/src/lib/pam_modules/unix_session/unix_session.c
132
if ((fdl = open(LASTLOG, O_RDWR|O_CREAT|O_DSYNC, 0444)) >= 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
1472
O_RDWR|O_CREAT|O_EXCL|O_NONBLOCK, S_IRUSR|S_IWUSR);
usr/src/lib/pkcs11/pkcs11_softtoken/common/softKeystoreUtil.c
2228
O_RDWR|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
360
O_RDWR|O_CREAT|O_EXCL|O_NONBLOCK, S_IRUSR|S_IWUSR);
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/print/libpapi-lpd/common/lpd-port.c
200
fd = open(JOB_ID_FILE, O_CREAT|O_EXCL|O_RDWR, 0644);
usr/src/lib/print/libprint/common/nss_write.c
111
fd = open(file, O_RDWR | O_CREAT | O_EXCL, 0644);
usr/src/lib/smbsrv/libfksmbsrv/common/fake_vop.c
594
omode = O_RDWR | O_CREAT | O_NOFOLLOW;
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
1149
if ((xfd = dfs_root_xopen(rootdir, O_CREAT | O_TRUNC | O_RDWR)) > 0) {
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
1202
afd = attropen(file, SMB_QUOTA_CNTRL_INDEX_XATTR, O_RDWR | O_CREAT,
usr/src/lib/smbsrv/libmlsvc/common/spoolss_svc.c
341
fd = open(g_path, O_CREAT | O_RDWR, 0600);
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
640
if (flag & O_CREAT) {
usr/src/lib/varpd/libvarpd/common/libvarpd_door.c
421
if ((fd = open(path, O_CREAT | O_RDWR, 0666)) == -1) {
usr/src/test/libc-tests/tests/utimes.c
154
if ((fd = open(path, O_CREAT, 0644)) == -1)
usr/src/test/os-tests/tests/file-locking/runtests.c
235
if ((lf->lf_fd = open(lf->lf_path, O_RDWR|O_CREAT, 0600)) == -1) {
usr/src/test/os-tests/tests/odirectory.c
229
O_CREAT, ENOTDIR);
usr/src/test/os-tests/tests/odirectory.c
231
odir_fpath, O_CREAT | O_EXCL, EINVAL);
usr/src/test/os-tests/tests/odirectory.c
234
O_CREAT, 0);
usr/src/test/os-tests/tests/odirectory.c
236
odir_dpath, O_CREAT | O_EXCL, EINVAL);
usr/src/test/os-tests/tests/odirectory.c
239
O_CREAT, ENOENT);
usr/src/test/os-tests/tests/odirectory.c
242
odir_enoent, O_CREAT | O_EXCL, EINVAL);
usr/src/test/os-tests/tests/portfs/file_assoc.c
238
fd = open(fa_path, O_RDWR | O_CREAT, 0644);
usr/src/test/os-tests/tests/sdevfs/sdevfs_eisdir.c
68
ret = open(SD_TEST_DIR, O_RDWR | O_CREAT, 0);
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/close_wr/close_wr.c
54
fid = open(argv[1], O_RDWR | O_CREAT | O_TRUNC,
usr/src/test/smbclient-tests/cmd/cp_mmap/cp_mmap.c
112
des_fid = open(des_file, O_RDWR | O_CREAT | O_TRUNC,
usr/src/test/smbclient-tests/cmd/file_trunc/file_trunc.c
79
fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
usr/src/test/smbclient-tests/cmd/mkfile_mmap/mkfile_mmap.c
108
fid = open(filename, O_RDWR | O_CREAT | O_TRUNC,
usr/src/test/smbclient-tests/cmd/no_close/no_close.c
51
fid = open(argv[1], O_RDWR | O_CREAT | O_TRUNC,
usr/src/test/smbclient-tests/cmd/rw_mmap/rw_mmap.c
105
fid = open(filename, O_RDWR | O_CREAT | O_TRUNC,
usr/src/test/tz-tests/tests/zoneinfo_dump.c
117
if ((infofd = openat(dirfd, "info", O_RDWR| O_CREAT | O_TRUNC, 0644)) <
usr/src/test/tz-tests/tests/zoneinfo_dump.c
175
if ((infofd = openat(dirfd, "info", O_RDWR| O_CREAT | O_TRUNC, 0644)) <
usr/src/test/tz-tests/tests/zoneinfo_dump.c
71
if ((fd = openat(dirfd, name, O_RDWR| O_CREAT | O_TRUNC, 0644)) < 0) {
usr/src/test/util-tests/tests/cpmvln/mkobj.c
86
if ((fd = open(door, O_CREAT | O_EXCL | O_RDWR, 0666)) < 0) {
usr/src/test/util-tests/tests/smbios/smbios.c
766
fd = openat(test_dirfd, fname, O_RDWR | O_CREAT, 0644);
usr/src/test/zfs-tests/cmd/dos_ro/dos_ro.c
92
fd = open(fname, O_CREAT | O_RDWR, 0644);
usr/src/test/zfs-tests/cmd/file_trunc/file_trunc.c
84
fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
usr/src/test/zfs-tests/cmd/file_write/file_write.c
152
oflag = (O_RDWR|O_CREAT);
usr/src/test/zfs-tests/cmd/largest_file/largest_file.c
73
fd = open(testfile, O_CREAT | O_RDWR, mode);
usr/src/test/zfs-tests/cmd/mkbusy/mkbusy.c
162
flags = rflag == B_FALSE ? O_CREAT | O_RDWR : O_RDONLY;
usr/src/test/zfs-tests/cmd/mkfiles/mkfiles.c
57
if ((fd = open(buf, O_CREAT | O_EXCL, O_RDWR)) == -1) {
usr/src/test/zfs-tests/cmd/mkholes/mkholes.c
140
if ((fd = open(fname, O_LARGEFILE | O_RDWR | O_CREAT | O_SYNC,
usr/src/test/zfs-tests/cmd/mktree/mktree.c
172
if ((fd = open(pname, O_CREAT|O_RDWR, 0777)) < 0) {
usr/src/test/zfs-tests/cmd/mktree/mktree.c
185
if ((afd = openat(fd, "xattr", O_CREAT | O_RDWR | O_XATTR, 0777)) < 0) {
usr/src/test/zfs-tests/cmd/mmapwrite/mmapwrite.c
77
if ((fd = open(argv[1], O_RDWR|O_CREAT|O_TRUNC, 0666)) == -1) {
usr/src/test/zfs-tests/cmd/randfree_file/randfree_file.c
89
if ((fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, mode)) < 0) {
usr/src/test/zfs-tests/cmd/randwritecomp/randwritecomp.c
159
fd = open(filename, O_RDWR|O_CREAT, 0666);
usr/src/test/zfs-tests/cmd/readmmap/readmmap.c
74
fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
usr/src/test/zfs-tests/cmd/rm_lnkcnt_zero_file/rm_lnkcnt_zero_file.c
106
*fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
usr/src/test/zfs-tests/cmd/rm_lnkcnt_zero_file/rm_lnkcnt_zero_file.c
127
fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
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/test/zfs-tests/tests/functional/threadsappend/threadsappend.c
108
outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777);
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/cpcgen/cpcgen.c
1222
if ((fd = openat(dirfd, tmpname, O_RDWR | O_CREAT, 0644)) < 0) {
usr/src/tools/cpcgen/cpcgen.c
1291
if ((fd = openat(dirfd, tmpname, O_RDWR | O_CREAT, 0644)) < 0) {
usr/src/tools/cpcgen/cpcgen.c
1630
if ((fd = openat(dirfd, tmpname, O_RDWR | O_CREAT, 0644)) < 0) {
usr/src/tools/cpcgen/cpcgen.c
1840
if ((fd = openat(dirfd, tmpname, O_RDWR | O_CREAT, 0444)) < 0) {
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/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
1039
switch (fm & (O_ACCMODE | O_CREAT | O_TRUNC)) {
usr/src/uts/common/c2/audit_event.c
1043
case O_RDONLY | O_CREAT:
usr/src/uts/common/c2/audit_event.c
1049
case O_RDONLY | O_TRUNC | O_CREAT:
usr/src/uts/common/c2/audit_event.c
1055
case O_WRONLY | O_CREAT:
usr/src/uts/common/c2/audit_event.c
1061
case O_WRONLY | O_TRUNC | O_CREAT:
usr/src/uts/common/c2/audit_event.c
1067
case O_RDWR | O_CREAT:
usr/src/uts/common/c2/audit_event.c
1073
case O_RDWR | 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/gssapi/mechs/krb5/mech/util_validate.c
100
*vdb = dbopen(NULL, O_CREAT|O_RDWR, O_CREAT|O_RDWR, DB_HASH, NULL);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
1320
if (flags & O_CREAT)
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
999
file = nvf_open(NVF_TMP_FILENAME, O_RDWR | O_CREAT, 0600);