Symbol: O_TRUNC
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
1023
mode |= O_TRUNC;
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/dumpmain.c
1579
if (mode & O_TRUNC) {
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
692
if (mode & (O_WRONLY|O_TRUNC)) {
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
3075
fd = open(path, O_RDWR|O_CREAT|O_TRUNC, FILE_STAT_MODE);
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/export.c
531
fd = open(filename, O_CREAT | O_RDWR |O_TRUNC, 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.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/ipsecutils/ipsecconf.c
2753
if ((pfd = open(POLICY_CONF_FILE, O_TRUNC|O_RDWR)) == -1) {
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
943
fd = open(temp_file, O_CREAT|O_WRONLY|O_TRUNC, 0600);
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/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
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/dlutil/dltraninfo.c
385
if ((dltran_outfd = open(outfile, O_RDWR | O_TRUNC | O_CREAT,
usr/src/cmd/dtrace/dtrace.c
325
if ((fd = open(fname, O_WRONLY | O_TRUNC)) == -1)
usr/src/cmd/dtrace/test/tst/common/io/tst.fds.c
83
O_SYNC | O_TRUNC | O_XATTR);
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
879
(c == 'w') ? O_WRONLY|O_CREAT|O_TRUNC
usr/src/cmd/fm/mcdecode/mcdecode.c
316
if ((fd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0) {
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/nfsmapid/nfsmapid.c
271
if ((dfd = open(NFSMAPID_DOOR, O_RDWR|O_CREAT|O_TRUNC,
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
583
oflg |= O_TRUNC;
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/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/i2cadm/i2cadm_io.c
899
ofd = open(output, O_RDWR | O_TRUNC | O_CREAT);
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/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/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/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/logadm/main.c
1164
if ((fo = open(file_copy, O_CREAT|O_TRUNC|O_WRONLY, s.st_mode)) < 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/mailx/quit.c
197
if ((fd = open(mbox, O_RDWR|O_CREAT|O_TRUNC, MBOXPERM)) < 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/mdb/common/mdb/mdb_ctf_open.c
61
if ((fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0)
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/mv/mv.c
2491
O_RDWR|O_CREAT|O_TRUNC, s3.st_mode & MODEBITS)) == -1) {
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
1228
*fp = open(real_name, O_CREAT | O_TRUNC | O_WRONLY,
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/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/ptools/pfiles/pfiles.c
388
O_CREAT | O_TRUNC | O_EXCL | O_NOCTTY | O_LARGEFILE
usr/src/cmd/ptools/pfiles/pfiles.c
431
if (flags & O_TRUNC)
usr/src/cmd/rctladm/rctladm.c
153
if ((fd = open(CONFIGPATH, O_WRONLY|O_CREAT|O_TRUNC, CONFIGPERM)) == -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
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
46
if (oflags & O_TRUNC)
usr/src/cmd/sendmail/db/os/os_open.c
77
flags |= O_TRUNC;
usr/src/cmd/sendmail/libsm/stdio.c
421
oflags = O_WRONLY | O_CREAT | O_TRUNC;
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/libsmdb/smdb.c
331
*lock_fd = safeopen(file_name, mode & ~O_TRUNC, DBMMODE, sff);
usr/src/cmd/sendmail/libsmdb/smdb1.c
500
mode |= O_TRUNC;
usr/src/cmd/sendmail/libsmdb/smdb2.c
618
mode |= O_TRUNC;
usr/src/cmd/sendmail/libsmdb/smdb2.c
640
if (bitset(O_TRUNC, mode))
usr/src/cmd/sendmail/libsmdb/smndbm.c
545
mode |= O_TRUNC;
usr/src/cmd/sendmail/libsmutil/safefile.c
741
truncate = bitset(O_TRUNC, omode);
usr/src/cmd/sendmail/libsmutil/safefile.c
743
omode &= ~O_TRUNC;
usr/src/cmd/sendmail/libsmutil/safefile.c
813
if (bitset(O_TRUNC, omode))
usr/src/cmd/sendmail/src/bf.c
548
O_RDWR | O_CREAT | O_TRUNC | QF_O_EXTRA,
usr/src/cmd/sendmail/src/map.c
1486
mode |= O_TRUNC|O_EXLOCK;
usr/src/cmd/sendmail/src/map.c
1498
mode |= O_TRUNC;
usr/src/cmd/sendmail/src/map.c
2081
omode |= O_TRUNC|O_EXLOCK;
usr/src/cmd/sendmail/src/map.c
2126
omode |= O_TRUNC;
usr/src/cmd/sendmail/src/map.c
2143
if (bitset(O_TRUNC, omode))
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/util.c
591
Pidf = safefopen(pidpath, O_WRONLY|O_TRUNC, FileMode, sff);
usr/src/cmd/sendmail/util/mailstats.c
343
fd = open(sfile, O_RDWR | O_TRUNC, 0600);
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/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/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/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/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/smbios/smbios.c
2421
if ((fd = open(ofile, O_WRONLY|O_CREAT|O_TRUNC, 0666)) == -1) {
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/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
375
O_RDWR | O_APPEND | O_TRUNC)) == -1) {
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/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/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
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
2244
if (arg & O_TRUNC)
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/vscan/vscand/vs_icap.c
1045
O_RDWR | O_CREAT | O_EXCL | O_TRUNC, 0644)) == -1) {
usr/src/cmd/ypcmd/mkalias.c
343
Outdbm = dbm_open(argv[2], O_RDWR|O_CREAT|O_TRUNC, 0644);
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/zoneadmd/vplat.c
5211
fd = open(ZONE_INDEX_FILE, O_WRONLY|O_CREAT|O_TRUNC,
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/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
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/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/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/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
58
O_RDWR | O_SHLOCK | O_TRUNC | O_BINARY)
usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash.c
148
if (!file || (flags & O_TRUNC) ||
usr/src/lib/lib9p/common/backend/fs.c
1297
if ((flags & O_TRUNC) != 0)
usr/src/lib/lib9p/common/backend/fs.c
1336
if ((flags & O_ACCMODE) != O_RDONLY || (flags & O_TRUNC))
usr/src/lib/lib9p/common/backend/fs.c
339
CONVERT(L9P_OTRUNC, O_TRUNC);
usr/src/lib/lib9p/common/backend/fs.c
425
CONVERT(L9P_L_O_TRUNC, O_TRUNC);
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/port/stdio/_stdio_flags.c
62
oflag = O_WRONLY | O_TRUNC | O_CREAT;
usr/src/lib/libc/port/stdio/fmemopen.c
237
} else if ((oflags & O_TRUNC) != 0) {
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/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
3441
if ((rofd = open(DEVNAME_CHECK_FILE, O_WRONLY|O_CREAT|O_TRUNC, 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/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/libexacct/common/exacct_ops.c
1165
oflags |= O_TRUNC;
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/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/libkmf/common/certop.c
2671
if ((fd = open(certfile, O_CREAT | O_RDWR | O_TRUNC, 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/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
355
O_TRUNC, 0644);
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/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/librename/common/librename.c
111
oflags = O_CREAT | O_TRUNC | O_RDWR | O_NOFOLLOW;
usr/src/lib/mpapi/libmpapi/common/mpapi.c
3642
O_RDWR|O_CREAT|O_TRUNC, 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/smbsrv/libmlsvc/common/dfs.c
1149
if ((xfd = dfs_root_xopen(rootdir, O_CREAT | O_TRUNC | O_RDWR)) > 0) {
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
646
if (flag & O_TRUNC) {
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/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/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/readmmap/readmmap.c
74
fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
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/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/ucblib/libucb/port/stdio/fopen.c
64
oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | 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
1046
case O_RDONLY | O_TRUNC:
usr/src/uts/common/c2/audit_event.c
1049
case O_RDONLY | O_TRUNC | 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
1070
case O_RDWR | O_TRUNC:
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/io/scsi/adapters/iscsi/nvfile.c
1322
if (flags & O_TRUNC)