Symbol: O_CREAT
bin/cp/utils.c
106
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
bin/cp/utils.c
115
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
bin/cpdup/cpdup.c
1119
if ((fd2 = hc_open(&DstHost, path, O_WRONLY|O_CREAT|O_EXCL, 0600)) < 0) {
bin/cpdup/cpdup.c
1128
fd2 = hc_open(&DstHost, path, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600);
bin/cpdup/hcproto.c
674
if (NotForRealOpt && (flags & O_CREAT))
bin/cpdup/hcproto.c
694
if (flags & O_CREAT)
bin/cpdup/hcproto.c
755
flags |= O_CREAT;
bin/cpdup/hcproto.c
762
if (flags & (O_WRONLY | O_RDWR | O_CREAT | O_TRUNC)) {
bin/dd/dd.c
157
(O_CREAT | (ddflags & (C_SEEK | C_NOTRUNC) ? 0 : O_TRUNC))
bin/mv/mv.c
297
open(to, O_CREAT | O_EXCL | O_TRUNC | O_WRONLY, 0)) < 0) {
bin/pax/ar_io.c
61
#define AR_MODE (O_WRONLY | O_CREAT | O_TRUNC) /* mode for archive */
bin/pax/file_subs.c
108
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC,
bin/pax/file_subs.c
90
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL,
bin/sh/redir.c
195
if ((f = open(fname, O_RDWR|O_CREAT, 0666)) < 0)
bin/sh/redir.c
202
if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0)
bin/sh/redir.c
220
if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
bin/sh/redir.c
225
if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0)
crypto/openssh/authfile.c
502
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0644)) == -1)
crypto/openssh/log.c
319
if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0600)) == -1) {
crypto/openssh/loginrec.c
1551
if (!lastlog_openseek(li, &fd, O_RDWR|O_CREAT))
crypto/openssh/loginrec.c
873
if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) {
crypto/openssh/scp.c
1877
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) == -1) {
crypto/openssh/sftp-client.c
1650
local_fd = open(local_path, O_WRONLY | O_CREAT |
crypto/openssh/sftp-server.c
270
flags |= O_CREAT;
crypto/openssh/sftp-server.c
761
(flags & (O_CREAT|O_TRUNC)) != 0)) {
crypto/openssh/ssh-keygen.c
2635
if ((wfd = open(wfile, O_WRONLY|O_CREAT|O_TRUNC,
crypto/openssh/sshbuf-io.c
105
if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)) == -1)
crypto/openssh/sshkey-xmss.c
478
if ((lockfd = open(lockfile, O_CREAT|O_RDONLY, 0600)) == -1) {
crypto/openssh/sshkey-xmss.c
618
if ((fd = open(nstatefile, O_CREAT|O_WRONLY|O_EXCL, 0600)) == -1) {
games/atc/log.c
109
score_fd = open(_PATH_SCORE, O_CREAT|O_RDWR, 0664);
games/larn/bill.c
124
if ((fd = open(fname, O_WRONLY | O_TRUNC | O_CREAT, 0660)) == -1)
games/snake/snake/snake.c
135
rawscores = open(_PATH_RAWSCORES, O_RDWR|O_CREAT, 0664);
games/tetris/scores.c
101
mint = O_RDWR | O_CREAT;
lib/libc/db/db/db.c
56
(O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
lib/libc/db/test/btree.tests/main.c
168
db = dbopen(*argv == NULL ? NULL : *argv, O_CREAT|O_RDWR,
lib/libc/db/test/dbtest.c
104
O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
lib/libc/db/test/dbtest.c
89
oflags = O_CREAT | O_RDWR;
lib/libc/db/test/hash.tests/driver2.c
72
if (!(db = dbopen("bigtest", O_RDWR | O_CREAT, 0644, DB_HASH, &info))) {
lib/libc/db/test/hash.tests/tcreat3.c
65
O_CREAT|O_TRUNC|O_RDWR, 0600, DB_HASH, &ctl))){
lib/libc/db/test/hash.tests/tdel.c
67
if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) {
lib/libc/db/test/hash.tests/thash4.c
69
if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) {
lib/libc/gen/creat.c
43
return(_open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
lib/libc/gen/utmpx.c
385
if ((fd = _open(file, O_CREAT|O_WRONLY|O_EXLOCK|O_CLOEXEC, 0644)) == -1)
lib/libc/gen/utmpx.c
494
db = dbopen(fname, O_RDWR|O_CREAT|O_EXLOCK|O_CLOEXEC, 0644, DB_HASH, NULL);
lib/libc/gmon/gmon.c
152
fd = _open(outname, O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0666);
lib/libc/gmon/gmon.c
158
log = _open("gmon.log", O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0664);
lib/libc/stdio/flags.c
71
o = O_CREAT | O_TRUNC;
lib/libc/stdio/flags.c
79
o = O_CREAT | O_APPEND;
lib/libc/stdio/mktemp.c
168
if ((*doopen = _open(path, O_CREAT|O_EXCL|O_RDWR|oflags,
lib/libtcplay/io.c
368
if ((fd = open(file, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR)) < 0) {
lib/libthread_xu/thread/thr_sem.c
532
if (oflag & ~(O_CREAT|O_EXCL)) {
lib/libthread_xu/thread/thr_sem.c
584
} else if ((oflag & O_CREAT) && errno == ENOENT) {
lib/libthread_xu/thread/thr_sig.c
339
fd = open(buf, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0666);
lib/libthread_xu/thread/thr_syscalls.c
378
if (flags & O_CREAT) {
lib/libthread_xu/thread/thr_syscalls.c
406
if (flags & O_CREAT) {
lib/libutil/flopen.c
50
if (flags & O_CREAT) {
lib/libutil/pidfile.c
125
O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NONBLOCK, mode);
lib/libutil/uucplock.c
77
if ((tmpfd = open(lcktmpname, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC,
libexec/atrun/atrun.c
249
O_WRONLY | O_CREAT | O_EXCL, S_IWUSR | S_IRUSR)) < 0)
libexec/dma/dma-mbox-create.c
139
f = openat(maildirfd, user, O_RDONLY|O_CREAT|O_NOFOLLOW, 0600);
libexec/dma/spool.c
130
queuefd = open_locked(it->queuefn, O_CREAT|O_EXCL|O_RDWR, 0660);
libexec/dma/spool.c
436
fd = open(flushfn, O_CREAT|O_WRONLY|O_TRUNC, 0660);
libexec/dma/util.c
304
if (flags & O_CREAT) {
libexec/ftpd/ftpd.c
3068
O_RDWR | O_CREAT | O_EXCL, 0666)) >= 0) {
libexec/ypxfr/yp_dbwrite.c
67
#define FLAGS O_RDWR|O_EXLOCK|O_EXCL|O_CREAT
libexec/ypxfr/ypxfrd_getmap.c
125
if ((fp = open(tmpname, O_RDWR|O_CREAT, PERM_SECURE)) == -1) {
sbin/dhclient/dhclient.c
1886
fd = open(buf, O_RDWR|O_CREAT, 0644);
sbin/dhclient/dhclient.c
460
if ((fd = open(path_dhclient_db, O_RDONLY|O_EXLOCK|O_CREAT, 0)) == -1)
sbin/dump/tape.c
590
pipeout ? 1 : open(tape, O_WRONLY|O_CREAT, 0666))) < 0)
sbin/dump/tape.c
593
open(tape, O_WRONLY|O_CREAT, 0666))) < 0)
sbin/hammer/cmd_config.c
152
fd = open(path, O_RDWR|O_CREAT|O_TRUNC, 0600);
sbin/hammer/cmd_mirror.c
1722
SFd = open(ScoreBoardFile, O_RDWR|O_CREAT|O_TRUNC, 0644);
sbin/hammer/cmd_recover.c
424
fd = open(path2, O_RDWR|O_CREAT, 0666);
sbin/hammer/cmd_recover.c
476
fd = open(path1, O_CREAT|O_RDWR, 0666);
sbin/hammer/cycle.c
80
if ((fd = open(CyclePath, O_RDWR|O_CREAT|O_TRUNC, 0666)) >= 0) {
sbin/hammer2/cmd_recover.c
1148
wfd = open(path1, O_RDWR|O_CREAT|O_TRUNC, 0600);
sbin/jscan/dump_mirror.c
460
if ((fd = open(jattr->path1, O_CREAT, jattr->modes)) >= 0) {
sbin/jscan/dump_mirror.c
612
if ((fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0600)) >= 0) {
sbin/jscan/jfile.c
125
if ((fd = open(data, O_RDWR|O_CREAT, 0666)) >= 0)
sbin/jscan/jfile.c
138
jf->jf_open_flags = rw ? (O_RDWR|O_CREAT) : O_RDONLY;
sbin/jscan/jfile.c
184
fd = open(data, O_RDWR|O_CREAT, 0666);
sbin/jscan/jfile.c
589
jf->jf_write_fd = open(path, O_RDWR|O_CREAT, 0666);
sbin/jscan/jsession.c
65
ss->ss_transid_fd = open(ss->ss_transid_file, O_RDWR|O_CREAT, 0666);
sbin/mountctl/mountctl.c
254
if ((fd = open(wopt, O_RDWR|O_CREAT|O_APPEND, 0666)) < 0) {
sbin/newfs/fscopy.c
302
if ((fd = open(path, O_RDWR|O_CREAT|O_TRUNC, 0600)) < 0) {
sbin/newfs/mkfs.c
201
fd = open(filename, O_RDWR|O_TRUNC|O_CREAT, 0644);
sbin/newfs_msdos/mkfs_msdos.c
272
fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0644);
sbin/rconfig/client.c
114
ffd = open(path, O_CREAT|O_TRUNC|O_RDWR, 0755);
sbin/restore/dirs.c
149
fd = open(dirfile, O_RDWR|O_CREAT|O_EXCL, 0666);
sbin/restore/dirs.c
162
fd = open(modefile, O_RDWR|O_CREAT|O_EXCL, 0666);
sbin/restore/dirs.c
642
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
sbin/restore/tape.c
631
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC,
sbin/savecore/savecore.c
424
fdinfo = open(buf, O_WRONLY | O_CREAT | O_TRUNC, 0600);
sbin/shutdown/shutdown.c
542
if ((logfd = open(_PATH_NOLOGIN, O_WRONLY|O_CREAT|O_TRUNC,
sbin/svc/execute.c
192
cmd->logfd = open(cmd->logfile, O_WRONLY|O_CREAT|O_APPEND, 0640);
sbin/svc/execute.c
731
fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0640);
sbin/svc/subs.c
113
*pfdp = open(pidfile, O_RDWR|O_CREAT|O_EXLOCK|O_NONBLOCK, 0640);
stand/boot/pc32/btxld/btxld.c
246
if ((fdo = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0666)) == -1)
sys/bus/u4b/uvc/uvc_buf.c
740
error = kern_openat(td, AT_FDCWD, path, UIO_SYSSPACE, O_CREAT | O_RDWR, 0666);
sys/dev/video/fb/vga.c
113
if (mode & (O_CREAT | O_APPEND | O_TRUNC))
sys/kern/imgact_elf.c
973
fp->f_flag = O_CREAT|O_WRONLY|O_NOFOLLOW;
sys/kern/kern_checkpoint.c
818
error = fp_open(buf, O_WRONLY|O_CREAT|O_TRUNC|O_NOFOLLOW, 0600, &fp);
sys/kern/kern_sig.c
2567
O_CREAT | FWRITE | O_NOFOLLOW,
sys/kern/sys_mqueue.c
447
if (oflag & O_CREAT) {
sys/kern/sys_mqueue.c
542
if ((oflag & O_CREAT) && (oflag & O_EXCL)) {
sys/kern/sys_mqueue.c
566
if ((oflag & O_CREAT) == 0) {
sys/kern/vfs_syscalls.c
2202
if ((flags & (O_CREAT|O_TRUNC)) == 0) {
sys/kern/vfs_syscalls.c
4841
if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT))
sys/kern/vfs_vnops.c
148
if (fmode & O_CREAT) {
sys/kern/vfs_vnops.c
203
((fmode & O_CREAT) && nd->nl_nch.ncp->nc_vp == NULL)) {
sys/kern/vfs_vnops.c
210
if (fmode & O_CREAT) {
sys/kern/vfs_vnops.c
233
fmode &= ~O_CREAT;
sys/kern/vfs_vnops.c
276
if ((fmode & O_CREAT) == 0) {
sys/platform/vkernel64/platform/init.c
1390
fd = open(pid_file, O_RDWR|O_CREAT|O_EXLOCK|O_NONBLOCK, 0666);
sys/platform/vkernel64/platform/init.c
557
fd = open(tmpfile, O_RDWR|O_CREAT|O_EXCL, 0600);
sys/vfs/dirfs/dirfs_vnops.c
245
(O_CREAT | O_RDWR));
sys/vfs/fuse/fuse_vnops.c
185
if (foi->flags & O_CREAT) {
sys/vfs/fuse/fuse_vnops.c
187
foi->flags &= ~O_CREAT;
test/debug/posixlock.c
58
if ((fd = open("test", O_CREAT|O_RDWR, 0666)) < 0) {
test/debug/umtx.c
81
if ((fd = open(path, O_RDWR|O_CREAT, 0666)) < 0) {
test/libpthread/sem_d.c
91
assert(SEM_FAILED == sem_open("/foo", O_CREAT | O_EXCL, 0644, 0));
test/lockf/lockf.c
142
fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666);
test/stress/fsx/fsx.c
1126
fd = open(fname, O_RDWR|(lite ? 0 : O_CREAT|O_TRUNC), 0666);
test/stress/fsx/fsx.c
1133
fsxgoodfd = open(goodfile, O_RDWR|O_CREAT|O_TRUNC, 0666);
test/stress/stress2/lib/resources.c
158
O_CREAT | O_TRUNC | O_WRONLY | O_EXCL, 0644)) != -1)
test/stress/stress2/lib/resources.c
172
O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1) {
test/stress/stress2/testcases/lockf/lockf.c
96
if ((fd = open(file,O_CREAT | O_TRUNC | O_RDWR, 0600)) == -1)
test/stress/stress2/testcases/lockf2/lockf2.c
58
if ((fd = open(file,O_CREAT | O_TRUNC | O_RDWR, 0600)) == -1)
test/stress/stress2/testcases/mmap/mmap.c
87
if ((fdout = open(file, O_RDWR | O_CREAT | O_TRUNC, 0600)) < 0)
test/stress/stress2/testcases/openat/doat.c
155
i = open("tmp/foo", O_RDONLY | O_CREAT, 0644);
test/stress/stress2/testcases/openat/doat.c
492
tests[9].tests[4].params[2].i = O_RDONLY | O_CREAT;
test/stress/stress2/testcases/openat/openat.c
121
if ((tfd = openat(fd, file, O_RDONLY|O_CREAT, 0660)) == -1)
test/stress/stress2/testcases/openat/openat.c
146
if ((tfd = openat(fd, file, O_RDONLY|O_CREAT, 0660)) == -1)
test/stress/stress2/testcases/openat/openat.c
99
if ((tfd = openat(fd, file, O_RDONLY|O_CREAT, 0660)) == -1)
test/stress/stress2/testcases/rename/rename.c
110
if ((tfd = open(file1, O_RDONLY|O_CREAT, 0660)) == -1)
test/stress/tuxload.c
180
if ((fd[i] = open(name, O_RDWR | O_CREAT, 0644)) < 1) {
test/sysperf/lockmgr2.c
30
close(open("/tmp/lockmgr2.test", O_RDWR|O_CREAT, 0666));
test/sysperf/lockmgr2.c
50
close(open(path, O_RDWR|O_CREAT, 0666));
test/sysperf/lockmgr3.c
30
fd = open("/tmp/lockmgr3.test", O_RDWR|O_CREAT, 0666);
test/sysperf/lockmgr3.c
52
fd = open(path, O_RDWR|O_CREAT, 0666);
test/sysperf/read1.c
46
fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
test/sysperf/read1.c
50
fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
test/testcases/mem/mmap_madvise_1/mmap_madvise_1.c
39
fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC, 0777);
test/testcases/posixipc/create_excl_existing_sem/create_excl_existing_sem.c
15
retval = sem_open_should_fail(TEST_PATH, O_CREAT | O_EXCL, 0777, 1, EEXIST);
test/testcases/posixipc/create_excl_existing_sem/create_excl_existing_sem.c
8
id = sem_open(TEST_PATH, O_CREAT, 0777, 1);
test/testcases/posixipc/destroy_named_semaphore/destroy_named_semaphore.c
8
id = sem_open(TEST_PATH, O_CREAT, 0777, 1);
test/testcases/posixipc/file_test/file_test.c
9
id = sem_open(TEST_PATH, O_CREAT, 0777, 0);
test/testcases/posixipc/open_after_unlink/open_after_unlink.c
8
id = sem_open(TEST_PATH, O_CREAT, 0777, 1);
test/testcases/posixipc/open_bad_value/open_bad_value.c
8
retval = sem_open_should_fail(TEST_PATH, O_CREAT, 0777,
test/testcases/posixipc/open_named_semaphore/open_named_semaphore.c
7
id = sem_open(TEST_PATH, O_CREAT, 0777, 1);
test/testcases/posixipc/use_after_unlink/use_after_unlink.c
11
id = sem_open(TEST_PATH, O_CREAT | O_EXCL, 0777, 1);
test/testcases/posixipc/wait_two_proc/wait_two_proc.c
9
id = sem_open(TEST_PATH, O_CREAT, 0777, 0);
test/unix/passdesc/passdesc.c
166
fd = open(TEST_FILENAME, O_RDWR | O_TRUNC | O_CREAT,
tools/regression/nfsmmap/test1/test1.c
21
fd = open("test1.data", O_RDWR|O_CREAT, 0666);
tools/regression/nfsmmap/test1/test1.c
44
fd2 = open("test1.scratch", O_RDWR|O_CREAT, 0666);
tools/regression/nfsmmap/test2/test2.c
21
fd = open("test2.data", O_RDWR|O_CREAT, 0666);
tools/regression/nfsmmap/test2/test2.c
42
fd2 = open("test2.scratch", O_RDWR|O_CREAT, 0666);
tools/regression/p1003_1b/sched.c
221
q(__LINE__, (fd = open(nam, O_RDWR|O_CREAT, 0666)),
tools/regression/priv/test_acct.c
12
int fh = open(tmp_file, O_CREAT | O_TRUNC | O_WRONLY, 0666);
tools/tools/net80211/w00t/prga/prga.c
126
fd = open(p->fname, O_WRONLY | O_CREAT, 0644);
tools/tools/net80211/wesside/wesside/wesside.c
2102
fd = open(KEY_FILE, O_WRONLY | O_CREAT | 0644);
tools/tools/net80211/wesside/wesside/wesside.c
2419
weplog.fd = open(WEP_FILE, O_WRONLY | O_CREAT,
tools/tools/net80211/wesside/wesside/wesside.c
864
fd = open(PRGA_FILE, O_WRONLY | O_CREAT,
tools/tools/net80211/wesside/wesside/wesside.c
978
fd = open(path, O_WRONLY | O_CREAT, 0644);
usr.bin/at/at.c
243
if ((lockdes = open(LFILE, O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR)) < 0)
usr.bin/cap_mkdb/cap_mkdb.c
111
if ((capdbp = dbopen(capname, O_CREAT | O_TRUNC | O_RDWR,
usr.bin/chkey/chkey.c
195
fd = open(ROOTKEY, O_WRONLY|O_TRUNC|O_CREAT, 0);
usr.bin/dsynth/build.c
2132
tmpfd = open(pkg.logfile, O_RDWR|O_CREAT|O_TRUNC, 0666);
usr.bin/dsynth/build.c
214
CheckDBM = dbm_open(dbmpath, O_CREAT|O_RDWR, 0644);
usr.bin/dsynth/build.c
2622
fdlog = open(pkg->logfile, O_RDWR|O_CREAT|O_APPEND, 0644);
usr.bin/dsynth/build.c
3068
fd2 = open(tmp, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0644);
usr.bin/dsynth/dsynth.c
322
fd = open(lkpath, O_RDWR | O_CREAT | O_APPEND, 0644);
usr.bin/dsynth/dsynth.c
341
lkfd = open(lkpath, O_RDWR | O_CREAT | O_CLOEXEC, 0644);
usr.bin/dsynth/monitor.c
78
StatsFd = open(StatsFilePath, O_RDWR|O_CREAT|O_CLOEXEC, 0644);
usr.bin/dsynth/monitor.c
83
LockFd = open(StatsLockPath, O_RDWR|O_CREAT|O_NOFOLLOW|O_CLOEXEC,
usr.bin/dsynth/mount.c
141
fd = open(goodbuf, O_RDWR|O_CREAT|O_TRUNC, 0644);
usr.bin/dsynth/subs.c
159
(void)dlogfd(i, O_RDWR|O_CREAT|O_TRUNC|O_APPEND);
usr.bin/dsynth/subs.c
214
fd = dlogfd(DLOG_ALL, O_RDWR|O_CREAT|O_APPEND);
usr.bin/dsynth/subs.c
222
fd = dlogfd(which, O_RDWR|O_CREAT|O_APPEND);
usr.bin/dsynth/subs.c
248
return(dlogfd(DLOG_ALL, O_RDWR|O_CREAT|O_APPEND));
usr.bin/gcore/gcore.c
165
fd = open(corefile, O_RDWR|O_CREAT|O_TRUNC, DEFFILEMODE);
usr.bin/gencat/gencat.c
186
if ((ofd = open(catfile, O_WRONLY | O_TRUNC | O_CREAT, 0666)) < 0)
usr.bin/gzip/gzip.c
1224
out = open(outfile, O_WRONLY | O_CREAT | O_EXCL, 0600);
usr.bin/gzip/gzip.c
1388
zfd = open(outfile, O_WRONLY|O_CREAT|O_EXCL, 0600);
usr.bin/kcollect/kcollect.c
666
db = dbm_open(datafile, (O_RDWR | O_CREAT),
usr.bin/ktrace/ktrace.c
129
if ((fd = open(tracefile, O_CREAT | O_WRONLY, DEFFILEMODE)) < 0)
usr.bin/ktrace/ktrace.c
137
if ((fd = open(tracefile, O_CREAT | O_EXCL | O_WRONLY,
usr.bin/lockf/lockf.c
160
if ((fd = open(name, O_RDONLY|O_CREAT|O_EXLOCK|O_NONBLOCK, 0666)) == -1) {
usr.bin/mail/main.c
90
if ((i = open(Tflag, O_CREAT | O_TRUNC | O_WRONLY,
usr.bin/mail/quit.c
230
close(open(mbox, O_CREAT | O_TRUNC | O_WRONLY, 0600));
usr.bin/mail/v7.local.c
68
close(open(mailname, O_CREAT | O_TRUNC | O_WRONLY, 0600));
usr.bin/msgs/msgs.c
761
fd = open(fname, O_RDWR|O_EXCL|O_CREAT|O_APPEND);
usr.bin/nohup/nohup.c
105
fd = open(p = path, O_RDWR | O_CREAT | O_APPEND,
usr.bin/nohup/nohup.c
99
fd = open(p, O_RDWR | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR);
usr.bin/patch/inp.c
295
if ((tifd = open(TMPINNAME, O_EXCL | O_CREAT | O_WRONLY, 0666)) < 0)
usr.bin/patch/util.c
170
tofd = open(to, O_CREAT|O_TRUNC|O_WRONLY, 0666);
usr.bin/sed/compile.c
288
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/compile.c
741
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/process.c
244
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/process.c
482
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, DEFFILEMODE)) == -1)
usr.bin/shlock/shlock.c
127
while ((fd = open(tmpf, O_RDWR | O_CREAT | O_EXCL, 0644)) == -1){
usr.bin/tee/tee.c
87
flags = O_WRONLY|O_CREAT|O_APPEND;
usr.bin/tee/tee.c
89
flags = O_WRONLY|O_CREAT|O_TRUNC;
usr.bin/touch/touch.c
165
O_WRONLY | O_CREAT, DEFFILEMODE);
usr.bin/truncate/truncate.c
103
oflags = O_WRONLY | O_CREAT;
usr.bin/unzip/unzip.c
644
if ((fd = open(*path, O_RDWR|O_CREAT|O_TRUNC, mode)) < 0)
usr.bin/usbhidaction/usbhidaction.c
168
fp = open(pidfile, O_WRONLY|O_CREAT, S_IRUSR|S_IRGRP|S_IROTH);
usr.bin/uudecode/uudecode.c
254
flags = O_WRONLY | O_CREAT | O_EXCL;
usr.bin/xinstall/xinstall.c
991
return (open(path, O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR));
usr.sbin/authpf/authpf.c
203
if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 ||
usr.sbin/boot0cfg/boot0cfg.c
154
write_mbr(fpath, O_CREAT | O_TRUNC, mbr, mbr_size);
usr.sbin/bthcid/parser.y
361
if ((f = open(tmp, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0600)) < 0) {
usr.sbin/clog/clog.c
197
fd = open(lname,O_RDWR|O_CREAT,0666);
usr.sbin/cron/lib/misc.c
243
if ((-1 == (fd = open(pidfile, O_RDWR|O_CREAT, 0644)))
usr.sbin/cron/lib/misc.c
449
LogFD = open(LOG_FILE, O_WRONLY|O_APPEND|O_CREAT, 0600);
usr.sbin/daemon/daemon.c
172
outfd = open(outfn, O_CREAT | O_WRONLY | O_APPEND | O_CLOEXEC, 0600);
usr.sbin/daemon/daemon.c
374
logpar.outfd = open(outfn, O_CREAT |
usr.sbin/edquota/edquota.c
349
fd = open(qfpathname, O_RDWR|O_CREAT, 0640);
usr.sbin/fwcontrol/fwdv.c
105
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
usr.sbin/installer/dfuibe_installer/fn_configure.c
421
fd = open("/tmp/t1", O_RDWR | O_CREAT | O_TRUNC,
usr.sbin/keyserv/keyserv.c
289
fd = open(ROOTKEY, O_WRONLY|O_TRUNC|O_CREAT, 0);
usr.sbin/lpr/common_source/common.c
364
fd = open(lfname, O_WRONLY|O_CREAT, newbits);
usr.sbin/lpr/common_source/ctlinfo.c
447
newfd = open(tfname2, O_WRONLY|O_CREAT|O_TRUNC, 0660);
usr.sbin/lpr/lpc/cmds.c
361
fd = open(statfile, O_WRONLY|O_CREAT|O_EXLOCK, STAT_FILE_MODE);
usr.sbin/lpr/lpd/lpd.c
271
lfd = open(_PATH_MASTERLOCK, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK,
usr.sbin/lpr/lpd/printjob.c
184
lfd = open(pp->lock_file, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK,
usr.sbin/lpr/lpd/printjob.c
1856
fd = open(pp->status_file, O_WRONLY|O_CREAT|O_EXLOCK, STAT_FILE_MODE);
usr.sbin/lpr/lpd/recvjob.c
248
fd = open(file, O_CREAT|O_EXCL|O_WRONLY, FILMOD);
usr.sbin/lpr/lpr/lpr.c
634
f = open(n, O_WRONLY | O_EXCL | O_CREAT, FILMOD);
usr.sbin/lpr/lpr/lpr.c
842
if ((fd = open(buf, O_RDWR|O_CREAT, 0661)) < 0) {
usr.sbin/makefs/ffs.c
513
int oflags = O_RDWR | O_CREAT;
usr.sbin/makefs/hammer2.c
2252
fd = open(out, O_WRONLY | O_CREAT | O_TRUNC, 0666);
usr.sbin/makefs/hammer2.c
882
oflags = O_RDWR | O_CREAT;
usr.sbin/mpsutil/mps_flash.c
92
fd = open(firmware_file, O_CREAT | O_TRUNC | O_RDWR, 0644);
usr.sbin/mptable/mptable.c
815
ofd = open( "/tmp/mpdump", O_CREAT | O_RDWR );
usr.sbin/pflogd/privsep.c
145
O_RDWR|O_CREAT|O_APPEND|O_NONBLOCK|O_NOFOLLOW,
usr.sbin/pflogd/privsep.c
204
fd = open(ren, O_CREAT|O_EXCL, 0);
usr.sbin/powerd/powerd.c
306
PowerFd = open("/var/run/powerd.pid", O_CREAT|O_RDWR, 0644);
usr.sbin/pw/cpdir.c
93
} else if (S_ISREG(st.st_mode) && (outfd = open(dst, O_RDWR | O_CREAT | O_EXCL, st.st_mode)) != -1) {
usr.sbin/pw/edgroup.c
68
if ((infd = open(groupfile, O_RDWR | O_CREAT | O_EXLOCK, 0644)) != -1) {
usr.sbin/pw/edgroup.c
76
if ((outfd = open(grouptmp, O_RDWR | O_CREAT | O_TRUNC, 0644)) != -1) {
usr.sbin/pw/fileupd.c
76
int infd = open(filename, O_RDWR | O_CREAT | O_EXLOCK, fmode);
usr.sbin/pw/fileupd.c
92
outfd = open(file, O_RDWR | O_CREAT | O_TRUNC, fmode);
usr.sbin/pw/pw_conf.c
383
if ((fd = open(file, O_CREAT | O_RDWR | O_TRUNC | O_EXLOCK, 0644)) != -1) {
usr.sbin/pw/pw_log.c
40
int fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600);
usr.sbin/pw/pw_user.c
746
close(open(line, O_RDWR | O_CREAT, 0600)); /* Preserve contents &
usr.sbin/pwd_mkdb/pwd_mkdb.c
276
O_RDWR|O_CREAT|O_EXCL, PERM_INSECURE, DB_HASH, &openinfo);
usr.sbin/pwd_mkdb/pwd_mkdb.c
282
O_RDWR|O_CREAT|O_EXCL, PERM_SECURE, DB_HASH, &openinfo);
usr.sbin/pwd_mkdb/pwd_mkdb.c
301
O_WRONLY|O_CREAT|O_EXCL, PERM_INSECURE)) < 0)
usr.sbin/pwd_mkdb/pwd_mkdb.c
676
if ((to_fd = open(to, O_WRONLY|O_CREAT|O_EXCL, mode)) < 0)
usr.sbin/rpc.statd/file.c
150
status_fd = open(filename, O_RDWR | O_CREAT, 0644);
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
399
#define FLAGS O_RDWR|O_CREAT
usr.sbin/rpcbind/rpcbind.c
124
O_RDONLY|O_CREAT, 0444))) == -1)
usr.sbin/rwhod/rwhod.c
355
whod = open(path, O_WRONLY | O_CREAT, 0644);
usr.sbin/sa/pdb.c
162
saved_pacct_db = dbopen(_PATH_SAVACCT, O_RDWR|O_CREAT|O_TRUNC, 0644,
usr.sbin/sa/usrdb.c
181
saved_usracct_db = dbopen(_PATH_USRACCT, O_RDWR|O_CREAT|O_TRUNC, 0644,
usr.sbin/syslogd/syslogd.c
376
logflags |= O_CREAT;
usr.sbin/sysvipcd/shmd.c
106
fd = open(filename, O_RDWR | O_CREAT, 0666);
usr.sbin/sysvipcd/sysvipcd.c
101
fd_tmp = open(LISTEN_SOCKET_FILE, O_EXCL | O_CREAT, 0666);
usr.sbin/tzsetup/tzsetup.c
1027
O_WRONLY | O_CREAT | O_TRUNC,
usr.sbin/tzsetup/tzsetup.c
760
fd2 = open(path_localtime, O_CREAT | O_EXCL | O_WRONLY,
usr.sbin/usbdump/usbdump.c
748
p->wfd = open(w_arg, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR);
usr.sbin/usbdump/usbdump.c
871
p->bfd = open(b_arg, O_CREAT | O_TRUNC |
usr.sbin/vnconfig/vnconfig.c
376
fd = open(file, O_RDWR|O_CREAT|O_TRUNC, 0600);
usr.sbin/yp_mkdb/yp_mkdb.c
194
if ((dbp = open_db(map, O_RDWR|O_EXLOCK|O_EXCL|O_CREAT)) == NULL)
usr.sbin/ypbind/ypbind.c
384
if ((yplockfd = (open(YPBINDLOCK, O_RDONLY|O_CREAT, 0444))) == -1)
usr.sbin/ypbind/ypbind.c
904
if ((fd = open(path, O_CREAT|O_SHLOCK|O_RDWR|O_TRUNC, 0644)) == -1) {
usr.sbin/ypbind/ypbind.c
906
if ((fd = open(path, O_CREAT|O_SHLOCK|O_RDWR|O_TRUNC, 0644)) == -1)
usr.sbin/ypbind/ypbind.c
910
if ((fd = open(path, O_CREAT|O_RDWR|O_TRUNC, 0644)) == -1) {
usr.sbin/ypbind/ypbind.c
912
if ((fd = open(path, O_CREAT|O_RDWR|O_TRUNC, 0644)) == -1)