bin/cp/utils.c
105
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
bin/csh/csh.c
848
if ((fd = open(short2str(hfile), O_WRONLY | O_CREAT | O_TRUNC,
bin/csh/sem.c
571
if ((fd = open(tmp, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1)
bin/dd/dd.c
114
(O_CREAT | (ddflags & (C_SEEK | C_NOTRUNC) ? 0 : O_TRUNC))
bin/ksh/exec.c
1074
flags = O_WRONLY | O_APPEND | O_CREAT;
bin/ksh/exec.c
1078
flags = O_WRONLY | O_CREAT | O_TRUNC;
bin/ksh/exec.c
1088
flags = O_RDWR | O_CREAT;
bin/ksh/exec.c
1120
if (Flag(FRESTRICTED) && (flags & O_CREAT)) {
bin/ksh/history.c
726
if ((fd = open(hname, O_RDWR | O_CREAT | O_EXLOCK, 0600)) == -1)
bin/ksh/io.c
174
O_WRONLY|O_APPEND|O_CREAT, 0600, SHF_WR|SHF_MAPHI);
bin/mt/mt.c
218
flags = comp->c_ronly ? O_RDONLY : O_WRONLY | O_CREAT;
bin/mv/cp.c
449
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
bin/mv/mv.c
283
if ((to_fd = open(to, O_CREAT | O_TRUNC | O_WRONLY, 0600)) == -1) {
bin/pax/ar_io.c
60
#define AR_MODE (O_WRONLY | O_CREAT | O_TRUNC) /* mode for archive */
bin/pax/file_subs.c
106
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC,
bin/pax/file_subs.c
88
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_EXCL,
bin/pax/tables.c
679
fd = open(path0, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, 0600);
distrib/special/libstubs/db.c
50
(O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
games/atc/log.c
122
score_fd = open(scorefile, O_CREAT|O_RDWR, 0644);
games/backgammon/common_source/save.c
102
O_CREAT | O_TRUNC | O_WRONLY,
games/backgammon/common_source/save.c
89
O_CREAT | O_TRUNC | O_WRONLY,
games/canfield/canfield/canfield.c
1642
dbfd = open(scorepath, O_RDWR | O_CREAT, 0644);
games/hack/hack.bones.c
134
if((fd = open(bones, O_CREAT | O_TRUNC | O_WRONLY, FMASK)) == -1) return;
games/hack/hack.do.c
197
fd = open(lock, O_CREAT | O_TRUNC | O_WRONLY, FMASK);
games/hack/hack.main.c
539
if((fd = open(RECORD, O_RDWR | O_CREAT, FMASK)) == -1) {
games/hack/hack.main.c
544
if((fd = open(HLOCK, O_RDONLY | O_CREAT, FMASK)) == -1) {
games/hack/hack.save.c
104
if((fd = open(SAVEF, O_CREAT | O_TRUNC | O_WRONLY, FMASK)) == -1) {
games/hack/hack.save.c
196
if((nfd = open(lock, O_CREAT | O_TRUNC | O_WRONLY, FMASK)) == -1)
games/hack/hack.unix.c
246
fd = open(lock, O_CREAT | O_TRUNC | O_WRONLY, FMASK);
games/mille/save.c
111
if ((outf = open(buf, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1) {
games/phantasia/setup.c
123
if ((fd = open(path, O_CREAT | O_TRUNC | O_WRONLY, 0660)) == -1)
games/robots/main.c
111
if ((score_wfd = open(Scorefile, O_RDWR | O_CREAT, 0666)) == -1)
games/robots/main.c
73
if ((score_wfd = open(Scorefile, O_RDWR | O_CREAT, 0666)) == -1)
games/snake/snake.c
960
modint = O_RDWR | O_CREAT;
games/tetris/scores.c
99
mint = O_RDWR | O_CREAT;
lib/libc/compat-43/creat.c
36
return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
lib/libc/db/db/db.c
50
(O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
lib/libc/gen/shm_open.c
109
fd = shm_open(t, O_RDWR | O_EXCL | O_CREAT, 0600);
lib/libc/gen/shm_open.c
36
(O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC | O_CLOFORK | O_NOFOLLOW)
lib/libc/gmon/gmon.c
375
log = open("gmon.log", O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0664);
lib/libc/stdio/flags.c
61
o = O_CREAT | O_TRUNC;
lib/libc/stdio/flags.c
67
o = O_CREAT | O_APPEND;
lib/libc/stdio/flags.c
87
if (o & O_CREAT)
lib/libc/stdlib/mkstemp.c
29
flags |= O_CREAT | O_EXCL | O_RDWR;
lib/libc/sys/w_open.c
29
if (flags & O_CREAT) {
lib/libc/sys/w_openat.c
29
if (flags & O_CREAT) {
lib/libcrypto/rand/randfile.c
108
fd = open(file, O_WRONLY|O_CREAT|O_CLOEXEC, 0600);
lib/libcurses/tinfo/hashed_db.c
164
modify ? (O_CREAT | O_RDWR) : O_RDONLY,
lib/libcurses/trace/lib_trace.c
159
#define SAFE_MODE (O_CREAT | O_EXCL | O_RDWR)
lib/librthread/rthread_sem.c
122
sempshared = sem_open(name, O_CREAT | O_EXCL, 0, value);
lib/librthread/rthread_sem.c
325
if (oflag & ~(O_CREAT | O_EXCL)) {
lib/librthread/rthread_sem.c
330
if (oflag & O_CREAT) {
lib/librthread/rthread_sem.c
359
if (!(oflag & O_CREAT)) {
lib/librthread/rthread_sem_compat.c
134
sempshared = sem_open(name, O_CREAT | O_EXCL, 0, value);
lib/librthread/rthread_sem_compat.c
340
if (oflag & ~(O_CREAT | O_EXCL)) {
lib/librthread/rthread_sem_compat.c
345
if (oflag & O_CREAT) {
lib/librthread/rthread_sem_compat.c
374
if (!(oflag & O_CREAT)) {
lib/libutil/login.c
50
if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT|O_CLOEXEC, 0644))
lib/libutil/opendisk.c
50
if ((flags & O_CREAT) != 0) {
lib/libutil/passwd.c
103
fd = open(pw_lck, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0600);
lib/libutil/passwd.c
106
fd = open(pw_lck, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0600);
lib/libutil/uucplock.c
73
tmpfd = open(lcktmpname, O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0664);
lib/libz/gzlib.c
238
(O_WRONLY | O_CREAT |
libexec/ftpd/ftpd.c
2553
fd = open(new, O_RDWR|O_CREAT|O_EXCL, 0666);
libexec/ftpd/logutmp.c
73
(fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) == -1))
libexec/login_token/tokendb.c
210
dbopen(tt->db, O_CREAT | O_RDWR, 0640, DB_BTREE, 0)) )
libexec/mail.local/locking.c
75
if ((lfd = open(lpath, O_CREAT|O_WRONLY|O_EXCL,
libexec/mail.local/mail.local.c
189
if ((mbfd = open(path, O_APPEND|O_CREAT|O_EXCL|O_WRONLY|O_EXLOCK,
libexec/spamd/grey.c
1047
i = open(PATH_SPAMD_DB, O_RDWR|O_CREAT, 0644);
libexec/tradcpp/output.c
54
outputfd = open(mode.output_file, O_WRONLY|O_CREAT|O_TRUNC,
regress/lib/libc/db/dbtest.c
104
O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
regress/lib/libc/db/dbtest.c
89
oflags = O_CREAT | O_RDWR;
regress/lib/libc/sys/t_access.c
62
fd = open(path, O_RDONLY | O_CREAT, 0600);
regress/lib/libc/sys/t_chroot.c
206
fd = open("file", O_RDONLY | O_CREAT, 0600);
regress/lib/libc/sys/t_chroot.c
83
fd = open("file", O_RDONLY | O_CREAT, 0600);
regress/lib/libc/sys/t_dup.c
326
buf[0] = open(path, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR);
regress/lib/libc/sys/t_dup.c
70
fd1 = open(path, mode[i] | O_CREAT, perm[j]);
regress/lib/libc/sys/t_fsync.c
104
fd = open(buf, O_CREAT|O_EXCL|O_RDWR, 0600);
regress/lib/libc/sys/t_getrusage.c
142
fd = open(DUMP_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0222);
regress/lib/libc/sys/t_link.c
117
fd = open(path, O_RDWR | O_CREAT, 0600);
regress/lib/libc/sys/t_link.c
192
fd = open(path, O_RDWR | O_CREAT, 0600);
regress/lib/libc/sys/t_link.c
80
fd = open(path, O_RDWR | O_CREAT, 0600);
regress/lib/libc/sys/t_listen.c
71
fdc = open("listen", O_RDWR | O_CREAT, 0600);
regress/lib/libc/sys/t_mmap.c
261
fd = open(path, O_RDWR | O_CREAT, 0600);
regress/lib/libc/sys/t_mmap.c
314
fd = open(path, O_WRONLY | O_CREAT, 0700);
regress/lib/libc/sys/t_mmap.c
389
fd = open(path, O_RDWR | O_CREAT, 0700);
regress/lib/libc/sys/t_mmap.c
437
fd = open(path, O_RDWR | O_CREAT, 0700);
regress/lib/libc/sys/t_mmap.c
485
fd = open(path, O_RDWR | O_CREAT, 0700);
regress/lib/libc/sys/t_msync.c
70
fd = open(path, O_RDWR | O_CREAT, 0700);
regress/lib/libc/sys/t_revoke.c
142
fd = open(path, O_RDWR | O_CREAT, 0600);
regress/lib/libc/sys/t_revoke.c
71
buf[0] = open(path, O_RDWR | O_CREAT, 0600);
regress/lib/libc/sys/t_setrlimit.c
193
fd = open(path, O_RDWR | O_CREAT, 0700);
regress/lib/libc/sys/t_stat.c
214
fd[i] = open(path, O_WRONLY | O_CREAT, 0600);
regress/lib/libc/sys/t_stat.c
258
fd = open(path, O_RDONLY | O_CREAT, 0600);
regress/lib/libc/sys/t_stat.c
292
fd = open(path, O_WRONLY | O_CREAT, 0600);
regress/lib/libc/sys/t_stat.c
381
fd = open(path, O_WRONLY | O_CREAT, 0600);
regress/lib/libc/sys/t_stat.c
68
fd = open(path, O_RDONLY | O_CREAT, 0600);
regress/lib/libc/sys/t_truncate.c
120
fd = open(path, O_RDWR | O_CREAT, 0600);
regress/lib/libc/sys/t_truncate.c
60
fd = open(path, O_RDWR | O_CREAT, 0600);
regress/lib/libc/sys/t_umask.c
128
fd = open(path, O_RDWR | O_CREAT, 0777);
regress/lib/libc/sys/t_unlink.c
60
fd = open(path, O_RDWR | O_CREAT, 0666);
regress/lib/libc/sys/t_write.c
144
fd = open(path, O_RDWR | O_CREAT, 0600);
regress/lib/libc/sys/t_write.c
174
fd = open(path, O_WRONLY | O_CREAT, 0600);
regress/lib/libc/sys/t_write.c
72
fd = open(path, O_RDWR | O_CREAT, 0600);
regress/lib/libc/telldir/utils.c
26
if ((fd = open(file, O_CREAT | O_WRONLY, 0600)) == -1)
regress/lib/libpthread/dlopen/dlopen.c
304
fcntl_fd = open(LOCK_PATH, O_RDWR | O_CREAT, 0666);
regress/lib/libpthread/dlopen/dlopen.c
358
flock_fd = open(LOCK_PATH, O_RDWR | O_CREAT, 0666);
regress/lib/libpthread/stdfiles/stdfiles.c
84
new_fd = open("/dev/tty", O_RDWR|O_CREAT, 0666);
regress/lib/libsndio/fd/fd.c
301
recfd = open(recpath, O_CREAT | O_WRONLY | O_TRUNC, 0666);
regress/sys/dev/video/videotest.c
407
fd2 = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0644);
regress/sys/ffs/fstest.c
114
{ O_CREAT, "O_CREAT" },
regress/sys/ffs/fstest.c
331
if (flags & O_CREAT) {
regress/sys/ffs/fstest.c
346
rval = open(STR(0), O_CREAT | O_EXCL, NUM(1));
regress/sys/fileops/fileops.c
202
c_open(O_EXCL|O_CREAT|O_RDWR);
regress/sys/kern/access/access.c
97
if ((fd = open(filename, O_WRONLY|O_CREAT, 600)) < 0)
regress/sys/kern/kqueue/kqueue-flock.c
64
fd = open(FILE, O_CREAT|O_RDWR, 0666);
regress/sys/kern/mmap3/mmaptest.c
50
fd = open("test.out", O_WRONLY|O_CREAT|O_TRUNC, 0600);
regress/sys/kern/unfdpass/unfdpass.c
105
if ((fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) == -1)
regress/sys/kern/unveil-unmount/unveil-unlink.c
37
fd = open(path, O_WRONLY|O_CREAT, 0755);
regress/sys/kern/unveil/access.c
38
UV_SHOULD_SUCCEED(((fd = open(filename, O_WRONLY|O_CREAT, 0700)) == -1), "open");
regress/sys/kern/unveil/syscalls.c
171
UV_SHOULD_SUCCEED((open(uv_file1, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
177
UV_SHOULD_SUCCEED((open(filename, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
179
UV_SHOULD_SUCCEED((open(filename, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
181
UV_SHOULD_SUCCEED((open(filename, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
184
UV_SHOULD_ENOENT((open(filename, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
304
UV_SHOULD_ENOENT((open(filename, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
342
UV_SHOULD_SUCCEED((open(filename1, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
343
UV_SHOULD_SUCCEED((open(filename2, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
428
UV_SHOULD_SUCCEED((open(filename, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
470
UV_SHOULD_SUCCEED((open(filename1, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
473
UV_SHOULD_SUCCEED((open(filename2, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
487
UV_SHOULD_SUCCEED((open(filename1, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
489
UV_SHOULD_SUCCEED((open(filename1, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
491
UV_SHOULD_SUCCEED((open(filename1, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
494
UV_SHOULD_SUCCEED((open(filename1, O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
676
UV_SHOULD_SUCCEED((open(uv_file1, O_RDWR|O_CREAT, 0644) == -1), "open after fork");
regress/sys/kern/unveil/syscalls.c
679
UV_SHOULD_ENOENT((open(uv_file2, O_RDWR|O_CREAT, 0644) == -1), "open after fork");
regress/sys/kern/unveil/syscalls.c
69
UV_SHOULD_SUCCEED((openat(dirfd1before, "hooray", O_RDWR|O_CREAT, 0644) == -1), "openat");
regress/sys/kern/unveil/syscalls.c
70
UV_SHOULD_SUCCEED((openat(dirfd1before, uv_file1, O_RDWR|O_CREAT, 0644) == -1), "openat");
regress/sys/kern/unveil/syscalls.c
71
UV_SHOULD_ENOENT((openat(dirfd1before, uv_file2, O_RDWR|O_CREAT, 0644) == -1), "openat");
regress/sys/kern/unveil/syscalls.c
74
UV_SHOULD_ENOENT((openat(dirfd2before, "hooray", O_RDWR|O_CREAT, 0644) == -1), "openat");
regress/sys/kern/unveil/syscalls.c
75
UV_SHOULD_SUCCEED((openat(dirfd2before, uv_file1, O_RDWR|O_CREAT, 0644) == -1), "openat");
regress/sys/kern/unveil/syscalls.c
76
UV_SHOULD_ENOENT((openat(dirfd2before, uv_file2, O_RDWR|O_CREAT, 0644) == -1), "openat");
regress/sys/kern/unveil/syscalls.c
783
UV_SHOULD_SUCCEED((open("/tmp/hello", O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
79
UV_SHOULD_SUCCEED((openat(dirfd1after, "hooray", O_RDWR|O_CREAT, 0644) == -1), "openat");
regress/sys/kern/unveil/syscalls.c
791
UV_SHOULD_SUCCEED((open("./derp", O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
792
UV_SHOULD_SUCCEED((open("derp", O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
793
UV_SHOULD_ENOENT((open("../hello", O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
794
UV_SHOULD_ENOENT((open(".././hello", O_RDWR|O_CREAT, 0644) == -1), "open");
regress/sys/kern/unveil/syscalls.c
80
UV_SHOULD_SUCCEED((openat(dirfd1after, uv_file1, O_RDWR|O_CREAT, 0644) == -1), "openat");
regress/sys/kern/unveil/syscalls.c
81
UV_SHOULD_ENOENT((openat(dirfd1after, uv_file2, O_RDWR|O_CREAT, 0644) == -1), "openat");
regress/sys/kern/unveil/syscalls.c
84
UV_SHOULD_SUCCEED((openat(dirfd2after, "../derp", O_RDWR|O_CREAT, 0644) == -1), "openat");
regress/sys/kern/unveil/syscalls.c
85
UV_SHOULD_ENOENT((openat(dirfd2after, "../../derpyluvs", O_RDWR|O_CREAT, 0644) == -1), "openat");
regress/sys/kern/unveil/syscalls.c
87
UV_SHOULD_SUCCEED((openat(dirfd2after, "hooray", O_RDWR|O_CREAT, 0644) == -1), "openat");
regress/sys/kern/unveil/syscalls.c
88
UV_SHOULD_SUCCEED((openat(dirfd2after, uv_file1, O_RDWR|O_CREAT, 0644) == -1), "openat");
regress/sys/kern/unveil/syscalls.c
89
UV_SHOULD_ENOENT((openat(dirfd2after, uv_file2, O_RDWR|O_CREAT, 0644) == -1), "openat");
regress/sys/nfs/mmap-sysctl-copyin.c
41
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0777)) == -1)
regress/sys/nfs/mmap-sysctl-copyout.c
42
if ((fd = open(path, O_RDWR|O_CREAT|O_TRUNC, 0777)) == -1)
regress/sys/uvm/mmap_4g/mmap_4g.c
29
fd = open(file, O_WRONLY | O_CREAT | O_TRUNC, 0666);
regress/usr.bin/mandoc/db/makeinodes/makeinodes.c
52
if ((fd = open("1", O_WRONLY | O_CREAT | O_EXCL, 0644)) == -1)
regress/usr.bin/mandoc/db/makeinodes/makeinodes.c
58
if ((fd = open("2", O_WRONLY | O_CREAT | O_EXCL, 0644)) == -1)
regress/usr.bin/mandoc/db/makeinodes/makeinodes.c
65
if ((fd = open("3", O_WRONLY | O_CREAT | O_EXCL, 0644)) == -1)
regress/usr.sbin/rpki-client/test-http.c
159
if ((outfd = open(file, O_WRONLY|O_CREAT|O_TRUNC, 0666)) == -1)
sbin/dhcp6leased/dhcp6leased.c
211
lockfd = open(_PATH_LOCKFILE, O_CREAT|O_RDWR|O_EXLOCK|O_NONBLOCK, 0600);
sbin/dhcpleased/dhcpleased.c
223
lockfd = open(_PATH_LOCKFILE, O_CREAT|O_RDWR|O_EXLOCK|O_NONBLOCK, 0600);
sbin/dump/tape.c
662
while ((tapefd = (host ? rmtopen(tape, O_WRONLY|O_CREAT) :
sbin/dump/tape.c
663
pipeout ? 1 : open(tape, O_WRONLY|O_CREAT, 0666))) == -1)
sbin/dump/tape.c
666
open(tape, O_WRONLY|O_CREAT, 0666))) == -1)
sbin/isakmpd/monitor.c
251
flags = (mode[1] == '+' ? O_RDWR : O_WRONLY) | O_CREAT |
sbin/isakmpd/monitor.c
255
flags = (mode[1] == '+' ? O_RDWR : O_WRONLY) | O_CREAT |
sbin/mount_vnd/mount_vnd.c
155
fd = open(saltfile, O_RDWR|O_CREAT|O_EXCL, 0600);
sbin/newfs_ext2fs/newfs_ext2fs.c
242
fl |= O_CREAT;
sbin/pflogd/privsep.c
201
O_RDWR|O_CREAT|O_APPEND|O_NONBLOCK|O_NOFOLLOW,
sbin/resolvd/resolvd.c
195
lockfd = open(_PATH_LOCKFILE, O_CREAT|O_RDWR|O_EXLOCK|O_NONBLOCK, 0600);
sbin/resolvd/resolvd.c
587
if ((fd = open(_PATH_RESCONF_NEW, O_CREAT|O_TRUNC|O_RDWR, 0644)) == -1) {
sbin/restore/dirs.c
149
fd = open(dirfile, O_RDWR|O_CREAT|O_EXCL, 0666);
sbin/restore/dirs.c
164
fd = open(modefile, O_RDWR|O_CREAT|O_EXCL, 0666);
sbin/restore/dirs.c
646
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1) {
sbin/restore/tape.c
640
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC,
sbin/savecore/savecore.c
442
ofd = open(path, O_WRONLY | O_CREAT | O_TRUNC,
sbin/savecore/savecore.c
517
ofd = open(path, O_WRONLY | O_CREAT | O_TRUNC,
sbin/savecore/zopen.c
528
if ((fd = open(name, (*mode=='r'? O_RDONLY:O_WRONLY|O_CREAT),
sbin/shutdown/shutdown.c
585
if ((fastfd = open(_PATH_FASTBOOT, O_WRONLY|O_CREAT|O_TRUNC,
sbin/shutdown/shutdown.c
606
if ((logfd = open(_PATH_NOLOGIN, O_WRONLY|O_CREAT|O_TRUNC,
sbin/slaacd/slaacd.c
185
lockfd = open(_PATH_LOCKFILE, O_CREAT|O_RDWR|O_EXLOCK|O_NONBLOCK, 0600);
sbin/unwind/unwind.c
287
if ((ta_fd = open(TRUST_ANCHOR_FILE, O_RDWR | O_CREAT, 0644)) == -1)
sbin/vnconfig/vnconfig.c
194
fd = open(saltfile, O_RDWR|O_CREAT|O_EXCL, 0600);
sys/arch/alpha/stand/setnetbootinfo/setnetbootinfo.c
234
if ((fd = open(outfilename, O_WRONLY | O_CREAT, 0666)) == -1)
sys/arch/hppa/stand/mkboot/mkboot.c
108
if ((to = open(to_file, O_RDWR | O_TRUNC | O_CREAT, 0644)) < 0)
sys/dev/microcode/afb/build.c
37
fd = open(AFB_FW_NAME, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/aic7xxx/aicasm_symbol.c
135
O_CREAT | O_NONBLOCK | O_RDWR, /*mode*/0, DB_HASH,
sys/dev/microcode/atmel/build.c
40
fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/bnx/build.c
128
fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/bwi/build/build.c
96
if ((fdout = open(FILENAME, O_CREAT|O_TRUNC|O_RDWR, 0644)) == -1)
sys/dev/microcode/bwi/extract/extract.c
77
if ((fdout = open(h[i]->filename, O_CREAT|O_TRUNC|O_RDWR, 0644))
sys/dev/microcode/cirruslogic/build.c
34
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/fxp/build.c
49
fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/kue/build.c
59
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/neomagic/build.c
37
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/ral/build.c
37
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/rsu/build.c
37
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/rtwn/build.c
37
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/rum/build.c
37
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/tht/build.c
37
fd = open(THT_FW_NAME, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/tigon/build.c
89
fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/tusb3410/build.c
35
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/typhoon/build.c
46
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/urtwn/build.c
37
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/yds/build.c
75
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
sys/dev/microcode/zydas/build.c
37
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/pci/if_qwx_pci.c
3545
error = vn_open(&nd, FWRITE | O_CREAT | O_NOFOLLOW | O_TRUNC,
sys/dev/pci/if_qwz_pci.c
3409
error = vn_open(&nd, FWRITE | O_CREAT | O_NOFOLLOW | O_TRUNC,
sys/kern/kern_sig.c
1974
error = vn_open(&nd, O_CREAT | FWRITE | O_NOFOLLOW | O_NONBLOCK,
sys/kern/subr_prof.c
429
error = vn_open(&nd, O_CREAT | FWRITE | O_NOFOLLOW | O_NONBLOCK,
sys/kern/vfs_syscalls.c
1138
if (oflags & O_CREAT) {
sys/kern/vfs_syscalls.c
1255
oflags = O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW |
sys/kern/vfs_syscalls.c
1392
if ((flags & O_CREAT))
sys/kern/vfs_vnops.c
102
if ((fmode & (O_CREAT | O_DIRECTORY)) == (O_CREAT | O_DIRECTORY))
sys/kern/vfs_vnops.c
104
if (fmode & O_CREAT) {
sys/kern/vfs_vnops.c
141
fmode &= ~O_CREAT;
sys/kern/vfs_vnops.c
162
if ((fmode & O_CREAT) == 0) {
sys/miscfs/fuse/fuse_vnops.c
283
flags = OFLAGS(ap->a_mode) & ~(O_CREAT|O_EXCL|O_TRUNC);
usr.bin/at/at.c
171
fd = open(atfile, O_WRONLY | O_CREAT | O_EXCL, S_IRUSR);
usr.bin/aucat/afile.c
867
O_WRONLY | O_TRUNC | O_CREAT, 0666);
usr.bin/cap_mkdb/cap_mkdb.c
107
if ((capdbp = dbopen(capname, O_CREAT | O_TRUNC | O_RDWR,
usr.bin/cdio/rip.c
434
info->fd = open(info->name, O_CREAT | O_TRUNC | O_RDWR,
usr.bin/compress/main.c
536
fd = open(out, O_WRONLY|O_CREAT|O_TRUNC, S_IWUSR);
usr.bin/ctfconv/generate.c
414
fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
usr.bin/cvs/add.c
259
cf->repo_fd = open(cf->file_rpath, O_CREAT|O_RDONLY);
usr.bin/cvs/buf.c
216
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1) {
usr.bin/cvs/checkout.c
524
O_CREAT | O_RDWR | O_TRUNC);
usr.bin/cvs/client.c
1118
O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1) {
usr.bin/cvs/client.c
1137
O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1) {
usr.bin/cvs/client.c
771
if ((fd = open(fpath, O_CREAT | O_WRONLY | O_TRUNC)) == -1)
usr.bin/cvs/client.c
850
if ((fd = open(fpath, O_CREAT | O_WRONLY | O_TRUNC)) == -1)
usr.bin/cvs/commit.c
507
openflags = O_CREAT | O_RDONLY;
usr.bin/cvs/diff3.c
243
cf->fd = open(cf->file_path, O_CREAT | O_RDWR | O_TRUNC, 0644);
usr.bin/cvs/file.c
1096
if ((dst = open(to, O_CREAT|O_TRUNC|O_WRONLY,
usr.bin/cvs/import.c
340
cf->repo_fd = open(cf->file_rpath, O_CREAT | O_RDONLY);
usr.bin/cvs/init.c
153
if ((fd = open(path, O_WRONLY | O_CREAT | O_EXCL, 0444)) == -1)
usr.bin/cvs/repository.c
85
if ((i = open(fpath, O_WRONLY|O_CREAT|O_TRUNC, 0755)) == -1) {
usr.bin/cvs/server.c
420
if ((fd = open(fpath, O_WRONLY | O_CREAT | O_TRUNC)) == -1)
usr.bin/cvs/util.c
548
if ((fd = open(buf, O_WRONLY|O_CREAT|O_EXCL, 0666 & ~cvs_umask))
usr.bin/ftp/fetch.c
1016
out = open(savefile, O_CREAT | O_WRONLY | O_APPEND,
usr.bin/ftp/fetch.c
1020
out = open(savefile, O_CREAT | O_WRONLY | O_TRUNC,
usr.bin/ftp/fetch.c
225
out = open(savefile, O_CREAT | O_WRONLY | O_TRUNC, 0666);
usr.bin/ftp/main.c
282
if ((tls_session_fd = open(str, O_RDWR|O_CREAT,
usr.bin/gencat/gencat.c
163
if ((ofd = open(catfile, O_WRONLY | O_TRUNC | O_CREAT, 0666)) == -1)
usr.bin/indent/indent.c
1311
bakchn = open(bakfile, O_CREAT | O_TRUNC | O_WRONLY, 0600);
usr.bin/kdump/kdump.c
1755
if ((arg1 & O_CREAT) == O_CREAT) {
usr.bin/ktrace/ktrace.c
180
if ((fd = open(tracefile, O_CREAT | O_WRONLY, DEFFILEMODE)) == -1)
usr.bin/ktrace/ktrace.c
188
if ((fd = open(tracefile, O_CREAT | O_EXCL | O_WRONLY,
usr.bin/less/edit.c
643
logfile = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0644);
usr.bin/mail/quit.c
225
if ((fdx = open(mbox, O_CREAT | O_TRUNC | O_WRONLY, 0600)) != -1)
usr.bin/mail/v7.local.c
77
fd = open(mailname, O_CREAT | O_TRUNC | O_WRONLY, 0600);
usr.bin/make/engine.c
222
fd = open(name, O_RDWR | O_CREAT, 0666);
usr.bin/mandoc/term_tag.c
117
tfd = open(tagfilename, O_WRONLY | O_CREAT | O_EXCL, 0644);
usr.bin/mandoc/term_tag.c
98
ofd = open(outfilename, O_WRONLY | O_CREAT | O_EXCL, 0644);
usr.bin/mg/fileio.c
107
fd = open(fn, O_RDWR | O_CREAT | O_TRUNC, fmode);
usr.bin/mg/fileio.c
398
if ((ofd = open(toname, O_WRONLY|O_CREAT|O_TRUNC, fmode)) == -1) {
usr.bin/midicat/midicat.c
102
ofd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
usr.bin/nohup/nohup.c
113
if ((fd = open(p, O_RDWR|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR)) >= 0)
usr.bin/nohup/nohup.c
120
if ((fd = open(p = path, O_RDWR|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR)) >= 0)
usr.bin/patch/inp.c
162
if ((fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0666)) != -1)
usr.bin/patch/inp.c
288
if ((tifd = open(TMPINNAME, O_EXCL | O_CREAT | O_WRONLY, 0666)) == -1)
usr.bin/patch/util.c
157
tofd = open(to, O_CREAT|O_TRUNC|O_WRONLY, 0666);
usr.bin/rcs/buf.c
281
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1) {
usr.bin/rcs/co.c
472
if ((fd = open(dst, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1)
usr.bin/rsync/copy.c
82
O_WRONLY | O_NOFOLLOW | O_TRUNC | O_CREAT | O_EXCL,
usr.bin/rsync/mktemp.c
105
flags |= O_CREAT | O_EXCL | O_RDWR;
usr.bin/sed/compile.c
271
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/compile.c
597
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/process.c
227
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/process.c
428
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, DEFFILEMODE)) == -1)
usr.bin/signify/signify.c
246
fd = xopen(filename, O_CREAT|oflags|O_NOFOLLOW|O_WRONLY, mode);
usr.bin/signify/signify.c
449
fd = xopen(sigfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
usr.bin/signify/signify.c
583
fd = xopen(msgfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
usr.bin/signify/zsig.c
224
fdout = xopen(msgfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
usr.bin/signify/zsig.c
294
fdout = xopen(sigfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
usr.bin/skeyinit/skeyinit.c
280
O_RDWR | O_NONBLOCK | O_CREAT | O_TRUNC |O_NOFOLLOW,
usr.bin/ssh/authfile.c
484
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0644)) == -1)
usr.bin/ssh/log.c
287
if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0600)) == -1) {
usr.bin/ssh/scp.c
1832
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) == -1) {
usr.bin/ssh/sftp-client.c
1626
local_fd = open(local_path, O_WRONLY | O_CREAT |
usr.bin/ssh/sftp-server.c
260
flags |= O_CREAT;
usr.bin/ssh/sftp-server.c
751
(flags & (O_CREAT|O_TRUNC)) != 0)) {
usr.bin/ssh/ssh-keygen.c
2564
if ((wfd = open(wfile, O_WRONLY|O_CREAT|O_TRUNC,
usr.bin/ssh/sshbuf-io.c
103
if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)) == -1)
usr.bin/tee/tee.c
102
if ((fd = open(*argv, O_WRONLY | O_CREAT |
usr.bin/tftp/main.c
456
fd = open(cp, O_CREAT | O_TRUNC | O_WRONLY, 0644);
usr.bin/tftp/main.c
468
fd = open(cp, O_CREAT | O_TRUNC | O_WRONLY, 0644);
usr.bin/tmux/client.c
85
if ((lockfd = open(lockfile, O_WRONLY|O_CREAT, 0600)) == -1) {
usr.bin/tmux/file.c
577
const int flags = O_NONBLOCK|O_WRONLY|O_CREAT;
usr.bin/tmux/tty.c
89
tty_log_fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
usr.bin/touch/touch.c
139
fd = open(*argv, O_WRONLY | O_CREAT, DEFFILEMODE);
usr.bin/uudecode/uudecode.c
268
flags = O_WRONLY|O_CREAT|O_EXCL|O_NOFOLLOW;
usr.bin/vacation/vacation.c
147
flags = O_CREAT|O_RDWR|O_TRUNC;
usr.bin/vacation/vacation.c
149
flags = O_CREAT|O_RDWR;
usr.bin/vi/common/exf.c
1106
flags = O_CREAT | O_EXCL;
usr.bin/vi/common/exf.c
818
oflags = O_CREAT | O_WRONLY |
usr.bin/vi/common/log.c
99
ep->log = dbopen(NULL, O_CREAT | O_NONBLOCK | O_RDWR,
usr.bin/vi/ex/ex_mkexrc.c
64
if ((fd = open(fname, O_CREAT | O_TRUNC | O_WRONLY,
usr.sbin/acme-client/chngproc.c
120
fd = open(fs[fsz - 1], O_WRONLY|O_CREAT|O_TRUNC, 0444);
usr.sbin/acpidump/acpidump.c
375
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, mode);
usr.sbin/authpf/authpf.c
219
if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 ||
usr.sbin/bgpd/mrt.c
1143
O_WRONLY|O_NONBLOCK|O_CREAT|O_TRUNC|O_CLOEXEC, 0644);
usr.sbin/config/exec_elf.c
143
if ((fd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0700)) == -1)
usr.sbin/crunchgen/mangle.c
96
key_fd = open(filename, O_WRONLY|O_TRUNC|O_CREAT, 0666);
usr.sbin/dev_mkdb/dev_mkdb.c
96
db = dbopen(dbtmp, O_CREAT|O_EXLOCK|O_RDWR|O_TRUNC,
usr.sbin/dhcpd/db.c
199
db_fd = open(path_dhcpd_db, O_WRONLY|O_CREAT, 0640);
usr.sbin/edquota/edquota.c
270
fd = open(qfpathname, O_RDWR|O_CREAT, 0640);
usr.sbin/httpd/logger.c
186
if ((fd = open(path, O_WRONLY|O_APPEND|O_CREAT, 0644)) == -1) {
usr.sbin/ikectl/ikeca.c
604
if ((ofd = open(dst, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1) {
usr.sbin/ikectl/ikeca.c
633
if ((ofd = open(dst, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1)
usr.sbin/ikectl/ikeca.c
814
if ((fd = open(dst, O_WRONLY|O_CREAT, 0644)) == -1)
usr.sbin/ikectl/ikeca.c
963
if ((fd = open(ca->index, O_WRONLY | O_CREAT, 0644))
usr.sbin/ikectl/ikeca.c
977
if ((fd = open(ca->serial, O_WRONLY | O_CREAT, 0644))
usr.sbin/installboot/util.c
148
fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC,
usr.sbin/installboot/util.c
56
dfd = open(dstfile, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
usr.sbin/kvm_mkdb/kvm_mkdb.c
188
db = dbopen(dbtemp, O_CREAT | O_EXLOCK | O_TRUNC | O_RDWR,
usr.sbin/ldapd/btree.c
1149
oflags = O_RDWR | O_CREAT | O_APPEND;
usr.sbin/ldapd/ldapd.c
397
oflags = O_RDWR | O_CREAT | O_APPEND;
usr.sbin/ldomctl/ldomctl.c
371
if ((fd = open(imgfile_path, O_RDWR | O_CREAT | O_TRUNC | O_EXCL,
usr.sbin/lpd/lp.c
476
fd = open(path, O_WRONLY|O_CREAT|O_NOFOLLOW|O_NONBLOCK|O_EXLOCK|O_TRUNC,
usr.sbin/lpd/lp.c
740
fd = open(path, O_WRONLY|O_CREAT|O_NOFOLLOW|O_EXLOCK|O_TRUNC, 0660);
usr.sbin/lpd/lp.c
838
fd = open(path, O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW, 0660);
usr.sbin/lpr/lpc/cmds.c
141
if ((fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW,
usr.sbin/lpr/lpc/cmds.c
196
fd = safe_open(statfile, O_WRONLY|O_CREAT|O_NOFOLLOW, 0660);
usr.sbin/lpr/lpc/cmds.c
498
if ((fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW, 0670)) < 0)
usr.sbin/lpr/lpc/cmds.c
579
if ((fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW, 0770)) < 0)
usr.sbin/lpr/lpc/cmds.c
594
fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW, 0660);
usr.sbin/lpr/lpc/cmds.c
934
if ((fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW, 0760)) < 0)
usr.sbin/lpr/lpd/printjob.c
1595
fd = open(ST, O_WRONLY|O_CREAT|O_NOFOLLOW|O_EXLOCK, 0660);
usr.sbin/lpr/lpd/printjob.c
176
lfd = safe_open(LO, O_WRONLY|O_CREAT|O_NOFOLLOW|O_EXLOCK, 0640);
usr.sbin/lpr/lpd/printjob.c
650
if ((fo = open(".railmag", O_CREAT|O_WRONLY|O_EXCL, FILMOD)) < 0) {
usr.sbin/lpr/lpd/printjob.c
733
n = open(tempfile, O_WRONLY|O_CREAT|O_EXCL, 0664);
usr.sbin/lpr/lpd/recvjob.c
232
if ((fd = open(file, O_CREAT|O_EXCL|O_WRONLY, FILMOD)) < 0)
usr.sbin/lpr/lpr/lpr.c
507
f = open(n, O_WRONLY|O_EXCL|O_CREAT, FILMOD);
usr.sbin/lpr/lpr/lpr.c
669
if ((fd = safe_open(buf, O_RDWR|O_CREAT|O_NOFOLLOW, 0661)) < 0)
usr.sbin/makefs/ffs.c
481
int oflags = O_RDWR | O_CREAT;
usr.sbin/makefs/msdos/mkfs_msdos.c
245
int oflags = O_RDWR | O_CREAT;
usr.sbin/mkuboot/mkuboot.c
232
ofd = open(oname, O_RDWR | O_TRUNC | O_CREAT, 0644);
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
152
db = dbopen(buf, O_RDWR | O_CREAT | O_EXCL,
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
203
db = dbopen(NULL, O_RDWR | O_CREAT | O_EXCL, 0, DB_HASH, NULL);
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
308
xdb = dbopen(NULL, O_RDWR | O_CREAT | O_EXCL, 0, DB_HASH, NULL);
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
432
udb = dbopen(NULL, O_RDWR | O_CREAT | O_EXCL, 0, DB_HASH, NULL);
usr.sbin/npppd/npppd/privsep.c
601
if ((f = open(a->path, a->flags & ~O_CREAT))
usr.sbin/nsd/nsd.c
645
if((fd = open(nsd->pidfile, O_WRONLY | O_CREAT | O_TRUNC
usr.sbin/nsd/server.c
587
nsd->zonestatfd[0] = open(nsd->zonestatfname[0], O_CREAT|O_RDWR, 0600);
usr.sbin/nsd/server.c
593
nsd->zonestatfd[1] = open(nsd->zonestatfname[1], O_CREAT|O_RDWR, 0600);
usr.sbin/nsd/server.c
744
nsd->statfd = open(nsd->statfname, O_CREAT|O_RDWR, 0600);
usr.sbin/nsd/udb.c
261
int fd = open(fname, O_CREAT|O_RDWR, 0600);
usr.sbin/ocspcheck/ocspcheck.c
596
staplefd = open(outfile, O_WRONLY|O_CREAT,
usr.sbin/pcidump/pcidump.c
207
romfd = open(romfile, O_WRONLY|O_CREAT|O_TRUNC, 0777);
usr.sbin/pppd/main.c
1062
errfd = open(_PATH_CONNERRS, O_WRONLY | O_APPEND | O_CREAT, 0600);
usr.sbin/pppd/sys-bsd.c
1423
while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) == -1) {
usr.sbin/pwd_mkdb/pwd_mkdb.c
226
O_RDWR|O_CREAT|O_EXCL, PERM_SECURE, DB_HASH, &openinfo);
usr.sbin/pwd_mkdb/pwd_mkdb.c
249
dp = dbopen(buf, O_RDWR|O_CREAT|O_EXCL, PERM_INSECURE,
usr.sbin/pwd_mkdb/pwd_mkdb.c
268
O_WRONLY|O_CREAT|O_EXCL, PERM_INSECURE)) == -1)
usr.sbin/pwd_mkdb/pwd_mkdb.c
391
if ((to_fd = open(to, O_WRONLY|O_CREAT|O_EXCL, mode)) == -1)
usr.sbin/radiusd/radiusd_ipcp.c
1443
if ((db = dbopen(_PATH_RADIUSD_IPCP_DB, O_CREAT | O_RDWR | O_EXLOCK,
usr.sbin/rdsetroot/rdsetroot.c
86
fsfd = open(fs, O_RDWR | O_CREAT | O_TRUNC, 0644);
usr.sbin/rmt/rmt.c
169
f &= ~O_CREAT;
usr.sbin/rmt/rmt.c
185
f |= O_CREAT | O_EXCL;
usr.sbin/rpc.statd/statd.c
492
db = dbopen(filename, O_RDWR|O_CREAT|O_NDELAY|O_EXLOCK, 0644, DB_HASH,
usr.sbin/rpki-client/repo.c
1012
flags = O_WRONLY|O_CREAT|O_TRUNC;
usr.sbin/rpki-client/repo.c
404
O_WRONLY | O_CREAT | O_TRUNC | O_NOFOLLOW | O_CLOEXEC,
usr.sbin/sa/pdb.c
161
saved_pacct_db = dbopen(_PATH_SAVACCT, O_RDWR|O_CREAT|O_TRUNC, 0644,
usr.sbin/sa/usrdb.c
178
saved_usracct_db = dbopen(_PATH_USRACCT, O_RDWR|O_CREAT|O_TRUNC, 0644,
usr.sbin/smtpd/mail.maildir.c
180
fd = open(tmp, O_CREAT | O_EXCL | O_WRONLY, 0600);
usr.sbin/smtpd/mail.mboxfile.c
71
fd = open(filename, O_CREAT | O_APPEND | O_WRONLY | O_EXLOCK, 0600);
usr.sbin/smtpd/mda_mbox.c
69
if ((fd = open(buffer, O_CREAT|O_EXCL, 0)) == -1) {
usr.sbin/smtpd/queue_backend.c
368
return open(buf, O_RDWR | O_CREAT | O_EXCL, 0600);
usr.sbin/smtpd/queue_fs.c
481
if ((fd = open(path, O_RDWR | O_CREAT | O_EXCL, 0600)) == -1) {
usr.sbin/tcpdump/privsep.c
451
file = open(WFileName, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr.sbin/tftpd/tftpd.c
1032
wmode |= O_CREAT;
usr.sbin/tftpd/tftpd.c
1064
if ((wmode & O_CREAT) && fchmod(fd, 0666) == -1) {
usr.sbin/unbound/daemon/unbound.c
378
if((fd = open(pidfile, O_WRONLY | O_CREAT | O_TRUNC
usr.sbin/vmd/vioqcow2.c
712
fd = open(imgfile_path, O_RDWR | O_CREAT | O_TRUNC | O_EXCL,
usr.sbin/vmd/vioraw.c
111
fd = open(imgfile_path, O_RDWR | O_CREAT | O_TRUNC | O_EXCL,
usr.sbin/ypbind/ypbind.c
1014
if ((fd = open(path, O_CREAT|O_SHLOCK|O_RDWR|O_TRUNC, 0644)) == -1) {
usr.sbin/ypbind/ypbind.c
1016
if ((fd = open(path, O_CREAT|O_SHLOCK|O_RDWR|O_TRUNC,
usr.sbin/ypldap/yp.c
201
fd = open(path, O_CREAT|O_SHLOCK|O_RDWR|O_TRUNC, 0644);
usr.sbin/ypldap/yp.c
204
fd = open(path, O_CREAT|O_SHLOCK|O_RDWR|O_TRUNC,
usr.sbin/ypserv/makedbm/makedbm.c
211
new_db = ypdb_open(db_tempname, O_RDWR|O_CREAT, 0444);