Symbol: O_CREAT
bin/cp/utils.c
160
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
bin/cp/utils.c
169
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
bin/csh/csh.c
903
if ((fp = open(short2str(hfile), O_WRONLY | O_CREAT | O_TRUNC,
bin/csh/dol.c
829
if (open(tmp, O_RDWR | O_CREAT | O_TRUNC | O_EXCL, 0600) < 0) {
bin/csh/sem.c
593
if ((fd = open(tmp, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
bin/dd/args.c
448
{ "creat", O_CREAT, C_OFLAG },
bin/dd/dd.c
85
#define oflag O_CREAT
bin/dd/dd.c
88
u_int oflag = O_CREAT; /* open(2) flags for output file */
bin/ksh/exec.c
1144
flags = O_WRONLY | O_APPEND | O_CREAT;
bin/ksh/exec.c
1148
flags = O_WRONLY | O_CREAT | O_TRUNC;
bin/ksh/exec.c
1158
flags = O_RDWR | O_CREAT;
bin/ksh/exec.c
1190
if (Flag(FRESTRICTED) && (flags & O_CREAT)) {
bin/ksh/history.c
756
if ((fd = open(hname, O_WRONLY | O_CREAT | O_TRUNC | O_EXLOCK, 0600)) != -1) {
bin/ksh/history.c
854
if ((fd = open(hname, O_RDWR|O_CREAT|O_APPEND, 0600)) < 0)
bin/ksh/io.c
158
O_WRONLY|O_APPEND|O_CREAT, 0600,
bin/ksh/io.c
478
fd = open(pathx, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600);
bin/mv/mv.c
287
open(to, O_CREAT | O_TRUNC | O_WRONLY, sbp->st_mode)) < 0) {
bin/pax/ar_io.c
80
#define AR_MODE (O_WRONLY | O_CREAT | O_TRUNC) /* mode for archive */
bin/rcp/rcp.c
650
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
bin/sh/histedit.c
473
n = open_history_file(name, O_WRONLY|O_CREAT|O_APPEND|O_CLOEXEC);
bin/sh/histedit.c
540
fd = open_history_file(file, O_WRONLY|O_CREAT|O_TRUNC);
bin/sh/redir.c
404
if ((f = open(fname, O_RDWR|O_CREAT, 0666)) < 0)
bin/sh/redir.c
412
if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL,
bin/sh/redir.c
432
if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
bin/sh/redir.c
438
if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0)
bin/sh/redir.c
952
#ifndef O_CREAT
bin/sh/redir.c
977
O_NOFOLLOW|O_CREAT|O_TRUNC|O_EXCL|O_NOCTTY|O_DIRECTORY|O_REGULAR)
bin/sh/show.c
148
fd = open(s, O_WRONLY|O_APPEND|O_CREAT, 0666);
common/dist/zlib/examples/gun.c
572
outfile = open(outname, O_CREAT | O_TRUNC | O_WRONLY, 0666);
common/dist/zlib/examples/gzlog.c
1016
fd = open(log->path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
common/dist/zlib/examples/gzlog.c
354
while ((fd = open(log->path, O_CREAT | O_EXCL, 0644)) < 0) {
common/dist/zlib/examples/gzlog.c
831
log->fd = open(log->path, O_RDWR | O_CREAT, 0644);
common/dist/zlib/examples/gzlog.c
955
fd = open(log->path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
common/dist/zlib/examples/gzlog.c
965
fd = open(log->path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
common/dist/zlib/gzlib.c
238
(O_WRONLY | O_CREAT |
crypto/dist/ipsec-tools/src/racoon/dump.c
97
fd = open(path, O_WRONLY|O_CREAT|O_APPEND, 0600);
crypto/dist/ipsec-tools/src/racoon/plainrsa-gen.c
256
fd = open(fname, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW, S_IRUSR | S_IWUSR);
dist/pf/sbin/pflogd/privsep.c
165
O_RDWR|O_CREAT|O_APPEND|O_NONBLOCK|O_NOFOLLOW,
dist/pf/sbin/pflogd/privsep.c
224
fd = open(ren, O_CREAT|O_EXCL, 0);
dist/pf/usr.sbin/authpf/authpf.c
201
if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 ||
distrib/utils/ssh/ssh.c
486
child_newfd(1, ofile, O_WRONLY|O_CREAT);
distrib/utils/ssh/ssh.c
488
child_newfd(2, efile, O_WRONLY|O_CREAT);
games/atc/log.c
124
score_fd = open(_PATH_SCORE, O_CREAT|O_RDWR|O_NOFOLLOW, 0664);
games/atc/log.c
126
score_fd = open(_PATH_SCORE, O_CREAT|O_RDWR, 0664);
games/snake/snake/snake.c
146
rawscores = open(SNAKE_PATH_RAWSCORES, O_RDWR|O_CREAT, 0664);
games/tetris/scores.c
392
mint = O_RDWR | O_CREAT;
lib/libc/compat-43/creat.c
51
return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
lib/libc/db/db/db.c
65
(O_CREAT | O_EXCL | O_EXLOCK | O_NONBLOCK | O_RDONLY | \
lib/libc/gen/utmpx.c
349
if ((fd = open(file, O_CREAT|O_WRONLY|O_EXLOCK|O_CLOEXEC, 0644)) == -1)
lib/libc/gen/utmpx.c
474
db = dbopen(fname, O_RDWR|O_CREAT|O_EXLOCK|O_CLOEXEC, 0644, DB_HASH, NULL);
lib/libc/gmon/gmon.c
445
#define OPEN_FLAGS (O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC)
lib/libc/stdio/flags.c
75
o = O_CREAT | O_TRUNC;
lib/libc/stdio/flags.c
81
o = O_CREAT | O_APPEND;
lib/libc/stdio/gettemp.c
144
if ((*doopen = open(path, O_CREAT|O_EXCL|O_RDWR|oflags,
lib/libc/time/zic.c
1651
int oflags = O_WRONLY | O_BINARY | O_CREAT | O_EXCL;
lib/libedit/history.c
893
if ((i = open(fname, O_WRONLY|O_CREAT|O_TRUNC,
lib/libperfuse/ops.c
1225
fci->flags = O_CREAT | O_TRUNC | O_RDWR;
lib/libperfuse/ops.c
1391
mode &= ~(O_CREAT|O_EXCL|O_APPEND);
lib/libpuffs/null.c
342
fd = open(PCNPATH(pcn), O_RDWR | O_CREAT | O_TRUNC);
lib/librefuse/refuse.c
601
fi.flags = O_WRONLY | O_CREAT | O_EXCL;
lib/librefuse/refuse.c
790
fi->flags = (mode & ~(O_CREAT | O_EXCL | O_TRUNC)) - 1;
lib/librmt/rmtlib.c
835
return rmtopen(path, O_WRONLY | O_CREAT, mode);
lib/librmt/rmtlib.c
837
return open(path, O_CREAT | O_TRUNC | O_WRONLY, mode);
lib/librt/sem.c
280
if (oflag & O_CREAT) {
lib/librumpuser/rumpuser_daemonize.c
63
if ((fd = open(path, O_WRONLY|O_CREAT)) == -1)
lib/librumpuser/rumpuser_daemonize.c
69
if ((fd = open(path, O_WRONLY|O_CREAT)) == -1)
lib/librumpuser/rumpuser_file.c
207
TESTSET(RUMPUSER_OPEN_CREATE, O_CREAT);
lib/libutil/compat/compat_login.c
69
if (tty > 0 && (fd = open(_PATH_UTMP, O_WRONLY|O_CREAT, 0644)) >= 0) {
lib/libutil/login.c
61
if (tty > 0 && (fd = open(_PATH_UTMP, O_WRONLY|O_CREAT, 0644)) >= 0) {
lib/libutil/opendisk.c
80
if ((flags & O_CREAT) != 0) {
lib/libutil/passwd.c
124
fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, 0600);
lib/libutil/passwd.c
127
fd = open(filename, O_WRONLY|O_CREAT|O_EXCL,
lib/libutil/pidfile.c
256
opts = O_RDWR | O_CREAT | O_NONBLOCK;
lib/libutil/pidlock.c
88
if ((f = open(tempfile, O_WRONLY|O_CREAT|O_TRUNC, 0600)) == -1)
libexec/atrun/atrun.c
273
O_WRONLY | O_CREAT | O_EXCL, S_IWUSR | S_IRUSR)) == -1)
libexec/ftpd/conf.c
906
if ((fd = open(fn, O_RDWR | O_CREAT, 0600)) == -1)
libexec/ftpd/ftpd.c
768
xferlogfd = open(xferlogname, O_WRONLY | O_APPEND | O_CREAT,
libexec/ftpd/logutmp.c
105
&& (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) < 0))
libexec/mail.local/mail.local.c
223
if((lfd = open(lpath, O_CREAT|O_WRONLY|O_EXCL,
libexec/mail.local/mail.local.c
245
(mbfd = open(path, O_APPEND|O_CREAT|O_WRONLY|O_EXLOCK|O_EXCL,
libexec/makewhatis/makewhatis.c
378
outfd = open(whatisdb_new, O_WRONLY|O_CREAT|O_EXCL,
libexec/tftpd/tftpd.c
874
create = O_CREAT;
regress/sys/fs/lfs/9994/9994_f.c
114
testfd = open(buf, O_RDWR | O_CREAT, 0644);
regress/sys/fs/lfs/9994/9994_f.c
125
controlfd = open(buf, O_RDWR | O_CREAT, 0644);
regress/sys/kern/kqueue/vnode/vnode.c
56
fd = open(argv[1], O_RDONLY|O_CREAT, 0644);
regress/sys/kern/unfdpass/unfdpass.c
150
if ((fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) == -1)
sbin/dump/snapshot.c
122
fd = open(fss.fss_bstore, O_CREAT|O_EXCL|O_WRONLY, 0600);
sbin/dump/tape.c
672
pipeout ? 1 : open(tape, O_WRONLY|O_CREAT, 0666))) < 0)
sbin/dump/tape.c
675
open(tape, O_WRONLY|O_CREAT, 0666))) < 0)
sbin/fdisk/fdisk.c
2519
wfd = open(disk_file, update ? O_RDWR|O_CREAT : O_RDONLY, 0777);
sbin/fsdb/fsdb.c
1759
wrinfo.fd = open(argv[1], O_WRONLY | O_TRUNC | O_CREAT, 0644);
sbin/fsdb/fsdb.c
572
wrinfo.fd = open(argv[1], O_WRONLY | O_TRUNC | O_CREAT, 0644);
sbin/gpt/gpt.c
520
gpt->fd = open(dev, O_RDWR|O_EXCL|O_CREAT, 0644);
sbin/mount_portal/pt_file.c
154
fd = open(pbuf, O_RDWR | O_CREAT, 0666);
sbin/newfs/newfs.c
494
fl = O_RDWR | O_CREAT;
sbin/newfs_ext2fs/newfs_ext2fs.c
241
fl = O_RDWR | O_CREAT;
sbin/newfs_lfs/newfs.c
291
fso = open(special, O_CREAT | O_RDWR, DEFFILEMODE);
sbin/newfs_msdos/mkfs_msdos.c
266
int oflags = O_RDWR | O_CREAT;
sbin/newfs_sysvbfs/newfs_sysvbfs.c
134
fd = open(device, O_RDWR|O_CREAT|O_TRUNC, 0666);
sbin/newfs_udf/newfs_udf.c
258
error = udf_opendisc(dev_name, O_RDWR | O_CREAT | O_TRUNC);
sbin/newfs_udf/udf_core.c
3352
if ((open_flags & O_CREAT) == 0) {
sbin/newfs_udf/udf_core.c
3357
dev_fd = open(dev_name, O_RDWR | O_CREAT | O_TRUNC, 0666);
sbin/newfs_v7fs/newfs_v7fs.c
166
fd = open(device, O_RDWR|O_CREAT|O_TRUNC, 0666);
sbin/nvmectl/wdc.c
125
fd2 = open(tmpl, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sbin/restore/dirs.c
723
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
sbin/restore/tape.c
792
if (!Nflag && (ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC,
sbin/rndctl/rndctl.c
267
if ((fd_seed = open(tmp, O_CREAT|O_TRUNC|O_WRONLY, 0600)) == -1)
sbin/rndctl/rndctl.c
309
if ((fd_new = open(tmp, O_CREAT|O_TRUNC|O_WRONLY, 0600)) == -1) {
sbin/savecore/savecore.c
929
fd = open(file, O_WRONLY | O_CREAT | O_TRUNC, mode);
sbin/shutdown/shutdown.c
558
if ((fastfd = open(_PATH_FASTBOOT, O_WRONLY|O_CREAT|O_TRUNC,
sbin/shutdown/shutdown.c
580
if ((logfd = open(_PATH_NOLOGIN, O_WRONLY|O_CREAT|O_TRUNC,
share/examples/refuse/fanoutfs/fanoutfs.c
174
if ((fdto = open(to, O_WRONLY | O_CREAT | O_EXCL, st.st_mode & 07777)) < 0) {
share/examples/refuse/fanoutfs/fanoutfs.c
436
if ((fd = open(name, O_RDWR | O_CREAT | O_EXCL, 0666)) < 0) {
share/examples/refuse/icfs/icfs.c
337
if ((fd = open(name, O_RDWR | O_CREAT | O_EXCL, 0666)) < 0) {
share/examples/rump/sdread/sdread.c
173
fd_h = open(argv[2], O_RDWR | O_CREAT, 0777);
sys/arch/alpha/stand/mkbootimage/mkbootimage.c
155
} else if ((outfd = open(outfile, O_WRONLY|O_CREAT, 0666)) == -1)
sys/arch/alpha/stand/setnetbootinfo/setnetbootinfo.c
232
if ((fd = open(outfilename, O_WRONLY | O_CREAT, 0666)) == -1)
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
460
ofd = open(argv[1], O_CREAT|O_WRONLY, 0644);
sys/arch/ews4800mips/stand/common/coffhdrfix.c
118
if ((fdout = open(argp[2], O_CREAT | O_TRUNC | O_RDWR, 0644)) < 0) {
sys/arch/hp300/stand/mkboot/mkboot.c
152
if ((to = open(argv[0], O_WRONLY | O_TRUNC | O_CREAT, 0644)) == -1)
sys/arch/hppa/stand/mkboot/mkboot.c
166
if ((to = open(to_file, O_RDWR | O_TRUNC | O_CREAT, 0644)) < 0)
sys/arch/macppc/stand/mkboothfs/mkboothfs.c
84
if ((ofd = open(boothfs, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1)
sys/arch/mvme68k/stand/wrtvid/wrtvid.c
168
if ((fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC, 0644)) < 0) {
sys/arch/sgimips/stand/undist/undist.c
880
outfd = createpath(dst, O_WRONLY | O_CREAT, ent->mode, 0755);
sys/coda/coda_venus.c
154
if (from & O_CREAT) to |= C_O_CREAT; \
sys/coda/coda_vnops.c
242
if (flag & (FWRITE | O_TRUNC | O_CREAT | O_EXCL)) {
sys/compat/common/vfs_syscalls_43.c
311
SCARG(&nuap, flags) = O_WRONLY | O_CREAT | O_TRUNC;
sys/compat/linux/common/linux_file.c
106
res |= cvtto_bsd_mask(lflags, LINUX_O_CREAT, O_CREAT);
sys/compat/linux/common/linux_file.c
132
res |= cvtto_linux_mask(bflags, O_CREAT, LINUX_O_CREAT);
sys/compat/linux/common/linux_file.c
187
SCARG(&oa, flags) = O_CREAT | O_TRUNC | O_WRONLY;
sys/compat/linux/common/linux_mqueue.c
90
if ((oflag & O_CREAT) != 0 && SCARG(uap, attr) != NULL) {
sys/compat/linux32/common/linux32_unistd.c
533
SCARG(&ua, flags) = O_CREAT | O_TRUNC | O_WRONLY;
sys/compat/netbsd32/netbsd32_compat_43.c
113
SCARG(&ua, flags) = O_WRONLY | O_CREAT | O_TRUNC;
sys/compat/netbsd32/netbsd32_mqueue.c
64
if ((SCARG(uap, oflag) & O_CREAT) && SCARG_P32(uap, attr) != NULL) {
sys/compat/sunos/sunos_misc.c
142
SCARG(&ouap, flags) = O_WRONLY | O_CREAT | O_TRUNC;
sys/compat/sunos32/sunos32_misc.c
219
SCARG(&ua, flags) = O_WRONLY | O_CREAT | O_TRUNC;
sys/compat/ultrix/ultrix_pathname.c
87
SCARG(&ap, flags) = O_WRONLY | O_CREAT | O_TRUNC;
sys/dev/microcode/aic7xxx/aicasm_symbol.c
138
O_CREAT | O_NONBLOCK | O_RDWR, /*mode*/0, DB_HASH,
sys/dev/microcode/ral/build.c
38
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/rum/build.c
38
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/run/build.c
38
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/dev/microcode/zyd/build.c
37
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
sys/fs/union/union_subr.c
894
int fmode = FFLAGS(O_WRONLY|O_CREAT|O_TRUNC|O_EXCL);
sys/fs/unionfs/unionfs_subr.c
610
fmode = FFLAGS(O_WRONLY | O_CREAT | O_TRUNC | O_EXCL);
sys/kern/kern_core.c
239
error = vn_open(NULL, pb, 0, O_CREAT | O_NOFOLLOW | FWRITE,
sys/kern/kern_veriexec.c
1316
if (!(fmode & O_CREAT))
sys/kern/sys_mqueue.c
513
if (oflag & O_CREAT) {
sys/kern/sys_mqueue.c
548
if ((oflag & O_CREAT) == 0) {
sys/kern/sys_mqueue.c
607
if ((SCARG(uap, oflag) & O_CREAT) != 0 && SCARG(uap, attr) != NULL) {
sys/kern/uipc_sem.c
683
if (oflag & O_CREAT) {
sys/kern/uipc_sem.c
720
if ((oflag & O_CREAT) == 0) {
sys/kern/vfs_syscalls.c
2186
if ((flags & O_CREAT))
sys/kern/vfs_syscalls.c
2478
O_CREAT);
sys/kern/vfs_vnops.c
188
if ((fmode & (O_CREAT | O_DIRECTORY)) == (O_CREAT | O_DIRECTORY))
sys/kern/vfs_vnops.c
197
if (fmode & O_CREAT) {
sys/kern/vfs_vnops.c
240
if ((fmode & O_CREAT) != 0 && nd.ni_dvp != NULL) {
sys/kern/vfs_vnops.c
264
if ((fmode & O_CREAT) != 0 && nd.ni_dvp != NULL) {
sys/kern/vfs_vnops.c
293
fmode &= ~O_CREAT;
sys/kern/vfs_vnops.c
295
} else if ((fmode & O_CREAT) != 0) {
sys/kern/vfs_vnops.c
305
fmode &= ~O_CREAT;
sys/kern/vfs_vnops.c
318
if ((fmode & O_CREAT) == 0) {
sys/rump/kern/lib/libsys_cygwin/rump_cygwin_compat.c
154
flags = sflags & (3 | O_APPEND | O_ASYNC | O_CREAT | O_TRUNC | O_EXCL);
sys/rump/kern/lib/libsys_sunos/rump_sunos_compat.c
201
flags |= (sflags & 0x100) ? O_CREAT : 0;
sys/sys/fcntl.h
141
O_ASYNC|O_SYNC|O_CREAT|O_TRUNC|O_EXCL|O_DSYNC|\
sys/ufs/lfs/ulfs_extattr.c
233
error = vn_open(NULL, pb, 0, O_CREAT|O_EXCL|O_RDWR, 0600,
sys/ufs/ufs/ufs_extattr.c
233
error = vn_open(NULL, pb, 0, O_CREAT|O_EXCL|O_RDWR, 0600,
tests/dev/cgd/t_cgd_3des.c
700
fd = open(imgpath, O_CREAT | O_RDWR | O_TRUNC, 0600);
tests/dev/cgd/t_cgd_adiantum.c
339
RL(dkfd = open(imgpath, O_CREAT|O_RDWR|O_TRUNC, 0600));
tests/dev/cgd/t_cgd_aes.c
3101
fd = open(imgpath, O_CREAT | O_RDWR | O_TRUNC, 0600);
tests/dev/cgd/t_cgd_blowfish.c
1936
fd = open(imgpath, O_CREAT | O_RDWR | O_TRUNC, 0600);
tests/fs/common/fstest_zfs.c
68
if ((fd = open(image, O_RDWR | O_CREAT, 0777)) == -1)
tests/fs/common/snapshot.c
29
fd = rump_sys_open(path, O_CREAT | O_RDWR, 0777);
tests/fs/common/snapshot.c
62
fd = rump_sys_open("/mnt/myfile", O_RDWR | O_CREAT, 0777);
tests/fs/ffs/h_quota2_tests.c
146
fd = rump_sys_open(buf, O_CREAT | O_RDWR, 0644);
tests/fs/ffs/h_quota2_tests.c
187
fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644);
tests/fs/ffs/h_quota2_tests.c
197
fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644);
tests/fs/ffs/h_quota2_tests.c
241
fd = rump_sys_open(FSTEST_MNTNAME "/le_snap", O_CREAT | O_RDWR, 0777);
tests/fs/ffs/h_quota2_tests.c
263
fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644);
tests/fs/ffs/h_quota2_tests.c
317
O_EXCL| O_CREAT | O_RDWR, 0644);
tests/fs/ffs/h_quota2_tests.c
61
fd = rump_sys_open("test_fillup", O_CREAT | O_RDWR, 0644);
tests/fs/ffs/h_quota2_tests.c
94
fd = rump_sys_open("test_fillup", O_CREAT | O_RDWR, 0644);
tests/fs/ffs/t_extattr.c
132
if ((fd = rump_sys_open(M, O_RDWR | O_CREAT, 0600)) == -1)
tests/fs/ffs/t_extattr.c
203
if ((fd = rump_sys_open(M, O_RDWR | O_CREAT, 0600)) == -1)
tests/fs/ffs/t_quota2_1.c
53
RL(fd = rump_sys_open(buf, O_CREAT | O_RDWR, 0755));
tests/fs/ffs/t_quota2_remount.c
85
RL(fd = rump_sys_open(buf, O_CREAT | O_RDWR, 0755));
tests/fs/ffs/t_update_log.c
130
RL(fd = rump_sys_open("dummy", O_CREAT | O_RDWR, 0755));
tests/fs/ffs/t_update_log.c
77
RL(fd = rump_sys_open("dummy", O_CREAT | O_RDWR, 0755));
tests/fs/lfs/util.c
65
int flags = O_CREAT|O_WRONLY;
tests/fs/nfs/t_mountd.c
66
fd = rump_sys_open("file", O_RDWR | O_CREAT, 0600);
tests/fs/nullfs/t_basic.c
36
fd = rump_sys_open(path, O_CREAT | O_RDWR, 0777);
tests/fs/puffs/t_basic.c
237
fd = rump_sys_open("file", O_CREAT | O_RDWR, 0777);
tests/fs/puffs/t_basic.c
274
fd = rump_sys_open("file", O_CREAT | O_RDWR, 0777);
tests/fs/puffs/t_basic.c
315
fd = rump_sys_open("file", O_CREAT | O_RDWR, 0777);
tests/fs/puffs/t_basic.c
367
fd = rump_sys_open("file", O_CREAT | O_RDWR, 0777);
tests/fs/puffs/t_io.c
46
RL(fd = rump_sys_open("afile", O_CREAT | O_RDWR, 0755));
tests/fs/tmpfs/t_renamerace.c
45
fd = rump_sys_open("/file", O_CREAT | O_RDWR, 0777);
tests/fs/umapfs/t_basic.c
36
fd = rump_sys_open(path, O_CREAT | O_RDWR, 0777);
tests/fs/union/t_pr.c
189
fd = rump_sys_open("/mp/null", O_WRONLY | O_CREAT | O_TRUNC, 0600);
tests/fs/union/t_pr.c
223
fd = rump_sys_open("/mp/null", O_WRONLY | O_CREAT | O_APPEND, 0600);
tests/fs/vfs/t_full.c
71
fd = rump_sys_open("afile", O_CREAT | O_RDWR, 0600);
tests/fs/vfs/t_io.c
125
RL(fd = rump_sys_open("testi", O_CREAT | O_RDWR, 0666));
tests/fs/vfs/t_io.c
164
RL(fd = rump_sys_open("file", O_RDWR|O_CREAT|O_TRUNC, 0666));
tests/fs/vfs/t_io.c
181
RL(fd = rump_sys_open("file", O_RDWR|O_CREAT, 0666));
tests/fs/vfs/t_io.c
208
RL(fd = rump_sys_open("file", O_RDWR|O_CREAT, 0666));
tests/fs/vfs/t_io.c
232
RL(fd = rump_sys_open("file", O_CREAT | O_RDWR, 0777));
tests/fs/vfs/t_io.c
57
RL(fd = rump_sys_open("file", O_RDWR|O_CREAT|O_TRUNC, 0666));
tests/fs/vfs/t_io.c
88
O_CREAT | O_RDWR | (seekcnt ? O_APPEND : 0), 0600));
tests/fs/vfs/t_link.c
83
if ((fd = rump_sys_open(name, O_RDWR|O_CREAT, 0666)) == -1)
tests/fs/vfs/t_mtime_otrunc.c
54
int f = rump_sys_open(LOCKFILE, O_WRONLY|O_CREAT|O_TRUNC, 0666);
tests/fs/vfs/t_mtime_write.c
54
int f = rump_sys_open(LOCKFILE, O_WRONLY|O_CREAT, 0666);
tests/fs/vfs/t_renamerace.c
51
O_WRONLY|O_CREAT|O_TRUNC, 0666);
tests/fs/vfs/t_ro.c
65
RL(fd = rump_sys_open(AFILE, O_CREAT | O_RDWR, 0777));
tests/fs/vfs/t_ro.c
82
ATF_REQUIRE_ERRNO(EROFS, rump_sys_open(AFILE, O_CREAT|O_RDONLY,
tests/fs/vfs/t_rwtoro.c
107
RL(file_fd = rump_sys_open(file_path, O_CREAT | O_RDWR, 0777));
tests/fs/vfs/t_rwtoro.c
118
RL(file_fd = rump_sys_open(file_path, O_CREAT | O_RDWR, 0777));
tests/fs/vfs/t_rwtoro.c
97
RL(file_fd = rump_sys_open(file_path, O_CREAT | O_RDWR, 0777));
tests/fs/vfs/t_union.c
35
RL(fd = rump_sys_open(pathb, O_CREAT | O_RDWR, 0777));
tests/fs/vfs/t_unpriv.c
101
if ((fd = rump_sys_open(name, O_RDWR|O_CREAT, 0666)) == -1)
tests/fs/vfs/t_unpriv.c
137
if ((fd = rump_sys_open(name, O_RDWR|O_CREAT, 0666)) == -1)
tests/fs/vfs/t_unpriv.c
183
if ((fd = rump_sys_open(name, O_RDWR|O_CREAT, 0666)) == -1)
tests/fs/vfs/t_unpriv.c
97
if (rump_sys_open(name, O_RDWR|O_CREAT, 0666) != -1 || errno != EACCES)
tests/fs/vfs/t_vfsops.c
133
RL(fd = rump_sys_open(FNAME, O_RDWR | O_CREAT, 0777));
tests/fs/vfs/t_vfsops.c
84
fd = rump_sys_open(fpath, O_RDWR | O_CREAT, 0777);
tests/fs/vfs/t_vnops.c
1002
RL(fd = rump_sys_open("tfile", O_CREAT | O_RDWR, 0777));
tests/fs/vfs/t_vnops.c
230
fd = rump_sys_open(pb2, O_RDWR | O_CREAT, 0777);
tests/fs/vfs/t_vnops.c
524
RL(fd = rump_sys_open(buf, O_RDWR|O_CREAT|O_EXCL, 0666));
tests/fs/vfs/t_vnops.c
556
fd = rump_sys_open(buf, O_RDWR|O_CREAT|O_EXCL, 0666);
tests/fs/vfs/t_vnops.c
594
fd = rump_sys_open(name, O_RDWR|O_CREAT, 0666);
tests/fs/vfs/t_vnops.c
615
RL(fd = rump_sys_open(name, O_RDWR|O_CREAT|O_EXCL, 0666));
tests/fs/vfs/t_vnops.c
618
RL(fd = rump_sys_open(name, O_RDWR|O_CREAT, 0666));
tests/fs/vfs/t_vnops.c
620
RL(fd = rump_sys_open(name, O_RDWR|O_CREAT, 0666));
tests/fs/vfs/t_vnops.c
623
(fd = rump_sys_open(name, O_RDWR|O_CREAT|O_EXCL, 0666)));
tests/fs/vfs/t_vnops.c
654
fd = rump_sys_open("dummy", O_RDWR|O_CREAT, 0666);
tests/fs/vfs/t_vnops.c
746
RL(fd = rump_sys_open(TESTFILE, O_RDWR | O_CREAT, 0755));
tests/fs/vfs/t_vnops.c
804
RL(fd = rump_sys_open(TESTFILE, O_RDWR | O_CREAT, 0755));
tests/fs/vfs/t_vnops.c
915
int oflags = O_RDWR | O_CREAT;
tests/kernel/kqueue/read/t_file.c
98
RL(fd = open(FILENAME, O_RDONLY|O_CREAT, 0644));
tests/kernel/kqueue/read/t_file2.c
59
RL(fd1 = open("afile", O_RDONLY|O_CREAT, 0644));
tests/kernel/kqueue/read/t_file2.c
60
RL(fd2 = open("bfile", O_RDONLY|O_CREAT, 0644));
tests/kernel/kqueue/t_vnode.c
535
O_RDWR | O_CREAT | O_TRUNC, 0600)) != -1);
tests/kernel/kqueue/t_vnode.c
63
fd = open(file, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR);
tests/kernel/kqueue/t_vnode.c
633
O_RDWR | O_CREAT | O_TRUNC, 0600)) != -1);
tests/kernel/kqueue/t_vnode.c
690
ATF_REQUIRE((file_fd = open(file_inside1, O_RDONLY | O_CREAT,
tests/kernel/t_cloexec.c
140
RL(fd = open("file", O_RDWR|O_CREAT|O_CLOEXEC, 0644));
tests/kernel/t_cloexec.c
150
RL(fd = open("file", O_RDWR|O_CREAT, 0644));
tests/kernel/t_cloexec.c
161
RL(fd = open("file", O_RDWR|O_CREAT, 0644));
tests/kernel/t_clofork.c
141
RL(fd = open("file", O_RDWR|O_CREAT|O_CLOFORK, 0644));
tests/kernel/t_clofork.c
151
RL(fd = open("file", O_RDWR|O_CREAT, 0644));
tests/kernel/t_ksem.c
115
ATF_REQUIRE_EQ(_ksem_open("/ksem_b", O_CREAT | O_EXCL, 0644, 0, &ksem),
tests/kernel/t_ksem.c
121
ATF_REQUIRE_EQ(_ksem_open("/ksem_b", O_CREAT | O_EXCL, 0644, 1, &ksem1),
tests/kernel/t_ksem.c
92
ATF_REQUIRE_EQ(_ksem_open("/ksem_x", O_CREAT | O_EXCL, 0644, 0, &ksem),
tests/kernel/t_lockf.c
130
fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666);
tests/kernel/t_lockf.c
225
fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666);
tests/kernel/t_lua.c
121
RL(fd = open(path, O_WRONLY|O_CREAT));
tests/kernel/t_mqueue.c
117
mqfd = mq_open(mq_name, O_RDWR | O_CREAT,
tests/kernel/t_sysv.c
109
output = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0600);
tests/kernel/t_sysv.c
156
fd = open(token_key, O_RDWR | O_CREAT | O_EXCL, 0600);
tests/lib/libc/c063/t_faccessat.c
128
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_faccessat.c
146
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_faccessat.c
187
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_faccessat.c
63
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_faccessat.c
82
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_fchmodat.c
141
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_fchmodat.c
159
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_fchmodat.c
69
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_fchmodat.c
92
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_fchownat.c
113
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_fchownat.c
176
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_fchownat.c
198
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_fchownat.c
85
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_fstatat.c
137
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_fstatat.c
156
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_fstatat.c
64
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_fstatat.c
87
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_linkat.c
117
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_linkat.c
134
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_linkat.c
154
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_linkat.c
187
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_linkat.c
68
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_linkat.c
95
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_mkdirat.c
106
ATF_REQUIRE((fd = open(SDIR, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_mkfifoat.c
106
ATF_REQUIRE((fd = open(FIFO, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_mknodat.c
137
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_o_search.c
112
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_o_search.c
144
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_o_search.c
177
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_o_search.c
206
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_o_search.c
236
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_o_search.c
268
ATF_REQUIRE((dfd = open(FILE, O_CREAT|O_SEARCH, 0644)) != -1);
tests/lib/libc/c063/t_o_search.c
286
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_o_search.c
326
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_o_search.c
82
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_openat.c
131
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_openat.c
149
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_openat.c
61
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_openat.c
81
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_readlinkat.c
141
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_readlinkat.c
65
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_readlinkat.c
91
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_renameat.c
118
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_renameat.c
135
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_renameat.c
66
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_renameat.c
95
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_symlinkat.c
114
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_symlinkat.c
135
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_symlinkat.c
66
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_symlinkat.c
91
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_unlinkat.c
126
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_unlinkat.c
144
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_unlinkat.c
61
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_unlinkat.c
80
ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
tests/lib/libc/c063/t_utimensat.c
122
RL(fd = open(FILE, O_CREAT|O_RDWR, 0644));
tests/lib/libc/c063/t_utimensat.c
174
RL(fd = open(FILE, O_CREAT|O_RDWR, 0644));
tests/lib/libc/c063/t_utimensat.c
193
RL(fd = open(FILE, O_CREAT|O_RDWR, 0644));
tests/lib/libc/c063/t_utimensat.c
97
RL(fd = open(FILE, O_CREAT|O_RDWR, 0644));
tests/lib/libc/db/h_db.c
114
oflags = O_CREAT | O_RDWR;
tests/lib/libc/db/h_db.c
129
O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
tests/lib/libc/db/h_lfsr.c
77
db = dbopen(NULL, O_CREAT|O_TRUNC|O_RDWR, 0, DB_HASH, &hi);
tests/lib/libc/db/t_db_hash_seq.c
108
if (errno == ENOENT && (flags & O_CREAT) == 0)
tests/lib/libc/db/t_db_hash_seq.c
252
db = state_open(NULL, O_RDWR|O_CREAT|O_TRUNC, 0600);
tests/lib/libc/gen/posix_spawn/t_fileactions.c
91
CHECKFILE, O_WRONLY|O_CREAT, 0600));
tests/lib/libc/gen/posix_spawn/t_spawn.c
452
RL(fd = open(FILENAME, O_WRONLY | O_CREAT | O_TRUNC, 0644));
tests/lib/libc/gen/t_closefrom.c
56
fd = open(path, O_RDONLY | O_CREAT, 0400);
tests/lib/libc/gen/t_closefrom.c
97
buf[i] = open(path, O_RDWR | O_CREAT, 0600);
tests/lib/libc/gen/t_ftok.c
68
fd = open(path, O_RDONLY | O_CREAT, 0600);
tests/lib/libc/gen/t_realpath.c
131
fd = open(path, O_RDONLY | O_CREAT, 0600);
tests/lib/libc/stdio/t_fopen.c
133
fd = open(path, O_RDWR | O_CREAT, 0600);
tests/lib/libc/stdio/t_fopen.c
65
fd = open(path, O_RDWR | O_CREAT, 0600);
tests/lib/libc/stdio/t_fopen.c
92
fd = open(path, O_RDONLY | O_CREAT, 0600);
tests/lib/libc/sys/t_access.c
61
fd = open(path, O_RDONLY | O_CREAT, 0600);
tests/lib/libc/sys/t_chroot.c
205
fd = open("file", O_RDONLY | O_CREAT, 0600);
tests/lib/libc/sys/t_chroot.c
82
fd = open("file", O_RDONLY | O_CREAT, 0600);
tests/lib/libc/sys/t_dup.c
69
fd1 = open(path, mode[i] | O_CREAT, perm[j]);
tests/lib/libc/sys/t_futex_ops.c
225
RL(bs_fd = open(bs_path, O_RDWR | O_CREAT | O_EXCL, 0644));
tests/lib/libc/sys/t_getrusage.c
140
fd = open(DUMP_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0222);
tests/lib/libc/sys/t_link.c
117
fd = open(path, O_RDWR | O_CREAT, 0600);
tests/lib/libc/sys/t_link.c
192
fd = open(path, O_RDWR | O_CREAT, 0600);
tests/lib/libc/sys/t_link.c
80
fd = open(path, O_RDWR | O_CREAT, 0600);
tests/lib/libc/sys/t_listen.c
68
fdc = open("listen", O_RDWR | O_CREAT, 0600);
tests/lib/libc/sys/t_mincore.c
171
fd = open(path, O_RDWR | O_CREAT, 0700);
tests/lib/libc/sys/t_mmap.c
253
fd = open(path, O_RDWR | O_CREAT, 0600);
tests/lib/libc/sys/t_mmap.c
306
fd = open(path, O_WRONLY | O_CREAT, 0700);
tests/lib/libc/sys/t_mmap.c
381
fd = open(path, O_RDWR | O_CREAT, 0700);
tests/lib/libc/sys/t_mmap.c
488
fd = open(path, O_RDWR | O_CREAT, 0700);
tests/lib/libc/sys/t_mmap.c
536
fd = open(path, O_RDWR | O_CREAT, 0700);
tests/lib/libc/sys/t_mprotect.c
91
fd = open(path, O_RDONLY | O_CREAT, 0600);
tests/lib/libc/sys/t_msync.c
69
fd = open(path, O_RDWR | O_CREAT, 0700);
tests/lib/libc/sys/t_posix_fadvise.c
130
RL(rfd = rump_sys_open("/a_file", O_CREAT, 0666));
tests/lib/libc/sys/t_revoke.c
137
fd = open(path, O_RDWR | O_CREAT, 0600);
tests/lib/libc/sys/t_revoke.c
70
buf[0] = open(path, O_RDWR | O_CREAT, 0600);
tests/lib/libc/sys/t_setrlimit.c
187
fd = open(path, O_RDWR | O_CREAT, 0700);
tests/lib/libc/sys/t_stat.c
213
fd[i] = open(path, O_WRONLY | O_CREAT, 0600);
tests/lib/libc/sys/t_stat.c
257
fd = open(path, O_RDONLY | O_CREAT, 0600);
tests/lib/libc/sys/t_stat.c
291
fd = open(path, O_WRONLY | O_CREAT, 0600);
tests/lib/libc/sys/t_stat.c
380
fd = open(path, O_WRONLY | O_CREAT, 0600);
tests/lib/libc/sys/t_stat.c
67
fd = open(path, O_RDONLY | O_CREAT, 0600);
tests/lib/libc/sys/t_syscall.c
71
fd = open(FILE_NAME, O_RDWR|O_CREAT|O_TRUNC, 0666);
tests/lib/libc/sys/t_syscall.c
96
fd = open(FILE_NAME, O_RDWR|O_CREAT|O_TRUNC, 0666);
tests/lib/libc/sys/t_truncate.c
119
fd = open(path, O_RDWR | O_CREAT, 0600);
tests/lib/libc/sys/t_truncate.c
59
fd = open(path, O_RDWR | O_CREAT, 0600);
tests/lib/libc/sys/t_umask.c
127
fd = open(path, O_RDWR | O_CREAT, 0777);
tests/lib/libc/sys/t_unlink.c
59
fd = open(path, O_RDWR | O_CREAT, 0666);
tests/lib/libc/sys/t_write.c
146
fd = open(path, O_RDWR | O_CREAT, 0600);
tests/lib/libc/sys/t_write.c
176
fd = open(path, O_WRONLY | O_CREAT, 0600);
tests/lib/libc/sys/t_write.c
74
fd = open(path, O_RDWR | O_CREAT, 0600);
tests/lib/libcurses/director/testlang_parse.y
937
check_fd = open(check_file, O_WRONLY | O_CREAT, 0644);
tests/lib/libposix/t_rename.c
57
REQUIRE_LIBC(open("t1", O_CREAT | O_TRUNC | O_WRONLY, 0600), -1);
tests/lib/libpthread/t_cancellation.c
269
RL(fd = open("file", O_RDWR|O_CREAT, 0666));
tests/lib/libpthread/t_cancellation.c
286
RL(fd = open("file", O_RDWR|O_CREAT, 0666));
tests/lib/libpthread/t_cancellation.c
301
RL(fd = open("file", O_RDWR|O_CREAT, 0666));
tests/lib/libpthread/t_cancellation.c
311
RL(fd = open("file", O_RDWR|O_CREAT, 0666));
tests/lib/libpthread/t_cancellation.c
336
RL(fd = open("file", O_RDWR|O_CREAT, 0666));
tests/lib/libpthread/t_cancellation.c
347
RL(mq = mq_open("mq", O_RDWR|O_CREAT, 0666, NULL));
tests/lib/libpthread/t_cancellation.c
358
RL(mq = mq_open("mq", O_RDWR|O_CREAT, 0666, NULL));
tests/lib/libpthread/t_cancellation.c
370
RL(mq = mq_open("mq", O_RDWR|O_CREAT, 0666, NULL));
tests/lib/libpthread/t_cancellation.c
382
RL(mq = mq_open("mq", O_RDWR|O_CREAT, 0666, NULL));
tests/lib/libpthread/t_cancellation.c
420
RL(fd = open("file", O_RDWR|O_CREAT, 0666));
tests/lib/libpthread/t_cancellation.c
482
RL(fd = open("file", O_RDWR|O_CREAT, 0666));
tests/lib/libpthread/t_cancellation.c
512
RL(fd = open("file", O_RDWR|O_CREAT, 0666));
tests/lib/libpthread/t_cancellation.c
609
RL(fd = open("file", O_RDWR|O_CREAT, 0666));
tests/lib/libpthread/t_cancellation.c
620
RL(fd = open("file", O_RDWR|O_CREAT, 0666));
tests/lib/libpthread/t_cancellation.c
632
RL(fd = open("file", O_RDWR|O_CREAT, 0666));
tests/lib/libpthread/t_cancellation.c
871
RL(fd = open("file", O_RDWR|O_CREAT, 0666));
tests/lib/libpthread/t_cancellation.c
883
RL(fd = open("file", O_RDWR|O_CREAT, 0666));
tests/lib/libpthread/t_compat_cancel.c
155
RL(mq = mq_open("mq", O_RDWR|O_CREAT, 0666, NULL));
tests/lib/libpthread/t_compat_cancel.c
167
RL(mq = mq_open("mq", O_RDWR|O_CREAT, 0666, NULL));
tests/lib/libpthread/t_compat_cancel.c
86
RL(fd = open("file", O_RDWR|O_CREAT, 0666));
tests/lib/libpthread/t_sem.c
129
semp = sem_open("/foo", O_CREAT | O_EXCL, 0644, 0);
tests/lib/librt/t_sem.c
135
sem_a = sem_open("/sem_a", O_CREAT | O_EXCL, 0644, 0);
tests/lib/librt/t_sem.c
225
master_region = get_shared_region(O_RDWR | O_CREAT | O_EXCL);
tests/lib/librt/t_sem.c
302
sem = sem_open("/sem_c", O_CREAT | O_EXCL, 0644, 0);
tests/lib/librt/t_sem.c
326
sem = sem_open("/sem_d", O_CREAT | O_EXCL, 0777, 0);
tests/lib/librt/t_sem.c
328
sem2 = sem_open("/sem_d", O_CREAT | O_EXCL, 0777, 0);
tests/lib/librt/t_sem.c
90
sem_b = sem_open("/sem_b", O_CREAT | O_EXCL, 0644, 0);
tests/lib/librumphijack/h_netget.c
77
fd = open(argv[3], O_CREAT | O_RDWR, 0644);
tests/lib/semaphore/sem.c
253
sem1 = sem_open(SEM1, O_CREAT, 0444, 1);
tests/lib/semaphore/sem.c
257
rv = sem_open(SEM1, O_CREAT | O_EXCL);
tests/lib/semaphore/sem.c
261
sem2 = sem_open(SEM2, O_CREAT, 0444, 0);
tests/lib/semaphore/sem.c
307
sem = sem_open(SEM, O_CREAT, 0444, 0);
tests/net/fdpass/fdpass.c
205
fd = open("foo", O_RDWR|O_CREAT|O_TRUNC, 0666);
tests/net/tcp/t_tcp_connect_port.c
112
fd = open(SYSCTLBAKFILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL,
tests/rump/rumpkern/h_client/h_forkcli.c
27
fd = rump_sys_open("/dev/null", O_CREAT | O_RDWR, 0600);
tests/rump/rumpkern/t_lwproc.c
266
RL(fd = rump_sys_open("/file", O_RDWR | O_CREAT, 0777));
tests/rump/rumpvfs/t_basic.c
63
RL(fd = rump_sys_open(TESTFILE, O_RDWR | O_CREAT, 0777));
tests/rump/rumpvfs/t_etfs.c
275
RL(open("hostfile", O_RDWR | O_CREAT, 0777));
tests/rump/rumpvfs/t_etfs.c
71
localfd = open("./testfile", O_RDWR | O_CREAT, 0666);
usr.bin/at/at.c
211
if ((lockdes = open(_PATH_LOCKFILE, O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR)) < 0)
usr.bin/at/at.c
253
if ((fdes = open(atfile, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR)) == -1)
usr.bin/audio/record/record.c
224
ti.outfd = open(*argv, O_CREAT|(aflag ? O_APPEND : O_TRUNC)|O_WRONLY, 0666);
usr.bin/bthset/bthset.c
582
fd = open(pidfile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
usr.bin/cap_mkdb/cap_mkdb.c
137
if ((capdbp = dbopen(capname, O_CREAT | O_TRUNC | O_RDWR,
usr.bin/db/db.c
267
oi.dbflags = O_RDWR | O_CREAT | O_EXLOCK;
usr.bin/db/db.c
277
oi.dbflags = O_RDWR | O_CREAT | O_EXLOCK;
usr.bin/elf2aout/elf2aout.c
396
if ((outfile = open(argv[1], O_WRONLY | O_CREAT, 0777)) < 0)
usr.bin/elf2ecoff/elf2ecoff.c
391
if ((outfile = open(argv[1], O_WRONLY | O_CREAT, 0777)) < 0)
usr.bin/flock/flock.c
248
(fd = open(argv[0], O_RDWR|O_CREAT, 0600)) == -1)
usr.bin/gencat/gencat.c
175
ofd = open(catfile, O_WRONLY | O_CREAT | O_EXCL, 0666);
usr.bin/gzip/gzip.c
1381
out = open(outfile, O_WRONLY | O_CREAT | O_EXCL, 0600);
usr.bin/gzip/gzip.c
1570
zfd = open(outfile, O_WRONLY|O_CREAT|O_EXCL, 0600);
usr.bin/ktrace/ktrace.c
232
if ((fd = open(outfile, O_CREAT | O_WRONLY |
usr.bin/mail/dotlock.c
85
O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_SYNC|O_CLOEXEC, 0);
usr.bin/mail/mime_detach.c
126
flags = (detach_ctl.overwrite ? 0 : O_EXCL) | O_CREAT | O_TRUNC | O_WRONLY;
usr.bin/make/job.c
1380
fd = open(file, O_RDWR | O_CREAT, 0666);
usr.bin/midirecord/midirecord.c
195
int mode = O_CREAT|(aflag ? O_APPEND : O_TRUNC)|O_WRONLY;
usr.bin/midirecord/midirecord.c
207
int mode = O_CREAT|(aflag ? O_APPEND : O_TRUNC)|O_WRONLY;
usr.bin/mkdep/mkdep.c
233
aflag = O_WRONLY | O_APPEND | O_CREAT | O_TRUNC;
usr.bin/mkubootimage/mkubootimage.c
581
image_fd = open(dest, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr.bin/nohup/nohup.c
117
if ((fd = open(p, O_RDWR|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR)) >= 0)
usr.bin/nohup/nohup.c
123
if ((fd = open(p = path, O_RDWR|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR)) >= 0)
usr.bin/patch/inp.c
398
if ((tifd = open(TMPINNAME, O_EXCL | O_CREAT | O_WRONLY, 0666)) < 0)
usr.bin/patch/util.c
175
tofd = open(to, O_CREAT|O_TRUNC|O_WRONLY, 0666);
usr.bin/rump_allserver/rump_allserver.c
433
oflags = etfs[i].flen == DSIZE_E ? 0 : O_CREAT;
usr.bin/sed/compile.c
294
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/compile.c
770
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/process.c
246
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
usr.bin/sed/process.c
484
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, DEFFILEMODE)) == -1)
usr.bin/shlock/shlock.c
140
while ((fd = open(tempname, O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_EXCL, 0644))
usr.bin/split/split.c
367
if ((ofd = open(fname, O_WRONLY | O_CREAT | O_TRUNC, DEFFILEMODE)) < 0)
usr.bin/tee/tee.c
101
if ((fd = open(*argv, append ? O_WRONLY|O_CREAT|O_APPEND :
usr.bin/tee/tee.c
102
O_WRONLY|O_CREAT|O_TRUNC, DEFFILEMODE)) < 0) {
usr.bin/tip/cmds.c
115
if ((fd = open(cp, O_RDWR|O_CREAT, 0666)) < 0) {
usr.bin/tip/cmds.c
80
if ((sfd = open(cp, O_RDWR|O_CREAT, 0666)) < 0) {
usr.bin/touch/touch.c
188
O_WRONLY | O_CREAT, DEFFILEMODE);
usr.bin/unzip/unzip.c
664
if ((fd = open(*path, O_RDWR|O_CREAT|O_TRUNC, mode)) < 0)
usr.bin/vacation/vacation.c
294
db = dbopen(path, O_CREAT|O_RDWR | (iflag ? O_TRUNC : 0),
usr.bin/vndcompress/vndcompress.c
446
oflags = (O_WRONLY | O_TRUNC | O_CREAT);
usr.bin/vndcompress/vndcompress.c
448
oflags = (O_RDWR | O_CREAT);
usr.bin/vndcompress/vnduncompress.c
73
(O_WRONLY | O_CREAT | O_TRUNC), 0777);
usr.bin/xinstall/xinstall.c
754
O_CREAT | O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR)) < 0)
usr.bin/xlint/xlint/xlint.c
529
if ((ofd = open(dest, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1) {
usr.sbin/acpitools/acpidump/acpi.c
4651
fd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, mode);
usr.sbin/acpitools/acpidump/acpi.c
4695
fd = open(tmpstr, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
usr.sbin/bta2dpd/bta2dpd/bta2dpd.c
900
int flags = O_WRONLY | O_CREAT;
usr.sbin/bthcid/config.c
184
fd = open(new_key_file, O_WRONLY|O_TRUNC|O_CREAT|O_EXLOCK, 0600);
usr.sbin/dev_mkdb/dev_mkdb.c
115
db_compat = dbopen(db_name_tmp, O_CREAT|O_EXCL|O_EXLOCK|O_RDWR|O_TRUNC,
usr.sbin/dev_mkdb/dev_mkdb.c
77
fd = open(db_name_tmp, O_CREAT|O_EXCL|O_WRONLY, FILE_PERMISSION);
usr.sbin/edquota/edquota.c
361
fd = open(qfpathname, O_RDWR|O_CREAT, 0640);
usr.sbin/extattrctl/extattrctl.c
108
flags = O_CREAT | O_WRONLY | O_TRUNC | O_EXCL;
usr.sbin/fssconfig/fssconfig.c
168
fd = prog_open(fss.fss_bstore, O_CREAT|O_TRUNC|O_WRONLY, 0600);
usr.sbin/fwctl/fwdv.c
109
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
usr.sbin/fwctl/fwmpegts.c
157
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
usr.sbin/kvm_mkdb/kvm_mkdb.c
163
db = dbopen(dbtemp, O_CREAT | O_EXLOCK | O_TRUNC | O_RDWR,
usr.sbin/lockstat/main.c
259
fd = open(outf, O_WRONLY | O_CREAT | O_TRUNC, 0600);
usr.sbin/lpr/lpc/cmds.c
144
if ((fd = open(line, O_WRONLY|O_CREAT, 0760)) < 0)
usr.sbin/lpr/lpc/cmds.c
194
fd = open(statfile, O_WRONLY|O_CREAT, 0664);
usr.sbin/lpr/lpc/cmds.c
470
if ((fd = open(line, O_WRONLY|O_CREAT, 0670)) < 0)
usr.sbin/lpr/lpc/cmds.c
545
if ((fd = open(line, O_WRONLY|O_CREAT, 0770)) < 0)
usr.sbin/lpr/lpc/cmds.c
559
fd = open(line, O_WRONLY|O_CREAT, 0664);
usr.sbin/lpr/lpc/cmds.c
841
if ((fd = open(line, O_WRONLY|O_CREAT, 0760)) < 0)
usr.sbin/lpr/lpd/lpd.c
242
lfd = open(_PATH_MASTERLOCK, O_WRONLY|O_CREAT, 0644);
usr.sbin/lpr/lpd/printjob.c
1630
fd = open(ST, O_WRONLY|O_CREAT, 0664);
usr.sbin/lpr/lpd/printjob.c
185
lfd = open(LO, O_WRONLY|O_CREAT, 0644);
usr.sbin/lpr/lpd/printjob.c
734
n = open(tempfile, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0664);
usr.sbin/lpr/lpd/printjob.c
899
pfd = open(tempremote, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0664);
usr.sbin/lpr/lpd/recvjob.c
219
fd = open(file, O_CREAT|O_EXCL|O_WRONLY, FILMOD);
usr.sbin/lpr/lpr/lpr.c
542
f = open(n, O_WRONLY | O_EXCL | O_CREAT, FILMOD);
usr.sbin/lpr/lpr/lpr.c
701
if ((fd = open(buf, O_RDWR|O_CREAT, 0664)) < 0)
usr.sbin/makefs/chfs.c
166
if ((fsopts->fd = open(image, O_RDWR | O_CREAT | O_TRUNC, 0666)) == -1) {
usr.sbin/makefs/ffs.c
482
int oflags = O_RDWR | O_CREAT;
usr.sbin/makefs/udf.c
1190
if (udf_opendisc(image, O_CREAT)) {
usr.sbin/makefs/v7fs.c
115
if ((fd = open(image, O_RDWR | O_CREAT | O_TRUNC, 0666)) == -1) {
usr.sbin/mdsetimage/mdsetimage.c
160
if ((fsfd = open(fsfile, O_WRONLY|O_CREAT, 0777)) == -1)
usr.sbin/memswitch/memswitch.c
422
fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr.sbin/ndbootd/ndbootd.c
496
if ((fd = open(NDBOOTD_PID_FILE, O_WRONLY | O_CREAT | O_TRUNC, 0644)) >= 0) {
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
164
db = dbopen(buf, O_RDWR | O_CREAT | O_EXCL,
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
215
db = dbopen(NULL, O_RDWR | O_CREAT | O_EXCL, 0, DB_HASH, NULL);
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
318
xdb = dbopen(NULL, O_RDWR | O_CREAT | O_EXCL, 0, DB_HASH, NULL);
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
431
DB *udb = dbopen(NULL, O_RDWR | O_CREAT | O_EXCL, 0,
usr.sbin/npf/npfctl/npf_build.c
151
if ((fd = open(outfile, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1) {
usr.sbin/pf/pfs/pfs.c
132
wfd = open(filename, O_WRONLY|O_TRUNC|O_CREAT, 0600);
usr.sbin/pwd_mkdb/pwd_mkdb.c
351
flags = O_RDWR | O_CREAT | O_EXCL;
usr.sbin/pwd_mkdb/pwd_mkdb.c
399
if ((tfd = open(oldpwdfile, O_WRONLY | O_CREAT | O_EXCL,
usr.sbin/pwd_mkdb/pwd_mkdb.c
645
if ((to_fd = open(to, O_WRONLY | O_CREAT | O_EXCL, mode)) < 0) {
usr.sbin/rpc.statd/statd.c
496
db = dbopen(filename, O_RDWR|O_CREAT|O_NDELAY|O_EXLOCK, 0644, DB_HASH,
usr.sbin/rpcbind/rpcbind.c
178
if ((rpcbindlockfd = open(RPCBINDDLOCK, O_RDONLY|O_CREAT, 0444)) == -1)
usr.sbin/rpcbind/warmstart.c
81
fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR);
usr.sbin/rwhod/rwhod.c
307
whod = open(path, O_WRONLY | O_CREAT, 0644);
usr.sbin/sa/pdb.c
183
saved_pacct_db = dbopen(_PATH_SAVACCT, O_RDWR|O_CREAT|O_TRUNC, 0644,
usr.sbin/sa/pdb.c
65
pacct_db = dbopen(NULL, O_RDWR|O_CREAT|O_TRUNC, 0644, DB_BTREE, NULL);
usr.sbin/sa/usrdb.c
200
saved_usracct_db = dbopen(_PATH_USRACCT, O_RDWR|O_CREAT|O_TRUNC, 0644,
usr.sbin/sa/usrdb.c
68
usracct_db = dbopen(NULL, O_RDWR|O_CREAT|O_TRUNC, 0644, DB_BTREE, &bti);
usr.sbin/services_mkdb/output_cdb.c
55
if ((cdbw_fd = open(tname, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1) {
usr.sbin/services_mkdb/output_db.c
74
db = dbopen(tname, O_RDWR | O_CREAT | O_EXCL,
usr.sbin/tpctl/data.c
278
if ((fd = open(tempfile, O_RDWR|O_CREAT|O_EXCL, 0644)) < 0) {
usr.sbin/tprof/tprof.c
449
outfd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
usr.sbin/ypbind/ypbind.c
1691
lockfd = open_locked(_PATH_YPBIND_LOCK, O_CREAT|O_RDWR|O_TRUNC, 0644);
usr.sbin/ypbind/ypbind.c
377
fd = open_locked(path, O_CREAT|O_RDWR|O_TRUNC, 0644);
usr.sbin/ypbind/ypbind.c
380
fd = open_locked(path, O_CREAT|O_RDWR|O_TRUNC, 0644);