Symbol: O_RDWR
bin/chio/chio.c
165
if ((changer_fd = open(changer_name, O_RDWR, 0600)) == -1)
bin/csh/dol.c
829
if (open(tmp, O_RDWR | O_CREAT | O_TRUNC | O_EXCL, 0600) < 0) {
bin/dd/args.c
459
{ "rdwr", O_RDWR, C_IFLAG },
bin/dd/dd.c
221
out.fd = ddop_open(out, out.name, O_RDWR | OFLAGS, DEFFILEMODE);
bin/ksh/exec.c
1158
flags = O_RDWR | O_CREAT;
bin/ksh/history.c
854
if ((fd = open(hname, O_RDWR|O_CREAT|O_APPEND, 0600)) < 0)
bin/ksh/io.c
327
if (!(mode & X_OK) && fl != O_RDWR
bin/ksh/io.c
478
fd = open(pathx, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600);
bin/ksh/sh.h
28
# define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
bin/ksh/shf.c
151
case O_RDWR: sflags |= SHF_RDWR; break;
bin/ksh/shf.c
98
case O_RDWR: sflags |= SHF_RDWR; break;
bin/ksh/tty.c
112
if ((tfd = open(devtty, O_RDWR, 0)) < 0) {
bin/pax/ar_io.c
146
if ((arfd = rmtopen(name, O_RDWR, DMOD)) == -1) {
bin/pax/ar_io.c
81
#define APP_MODE O_RDWR /* mode for append */
bin/pax/file_subs.c
141
return (open(arcn->name, O_TRUNC | O_EXCL | O_RDWR, 0));
bin/pax/tty_subs.c
83
if ((ttyfd = open(DEVTTY, O_RDWR)) >= 0) {
bin/rcp/rcp.c
834
ttyfd = open(_PATH_TTY, O_RDWR | O_CLOEXEC);
bin/rm/rm.c
406
if ((fd = open(file, O_RDWR|O_SYNC|O_RSYNC|O_NOFOLLOW, 0)) == -1)
bin/sh/jobs.c
179
if ((ttyfd = open("/dev/tty", O_RDWR)) == -1) {
bin/sh/redir.c
404
if ((f = open(fname, O_RDWR|O_CREAT, 0666)) < 0)
bin/sh/redir.c
976
#define IGNFLAGS (O_ACCMODE|O_RDONLY|O_WRONLY|O_RDWR|O_SHLOCK|O_EXLOCK| \
common/dist/zlib/examples/gzappend.c
270
gz.fd = open(name, O_RDWR, 0);
common/dist/zlib/examples/gzlog.c
831
log->fd = open(log->path, O_RDWR | O_CREAT, 0644);
dist/pf/libexec/tftp-proxy/filter.c
177
dev = open("/dev/pf", O_RDWR);
dist/pf/sbin/pfctl/pfctl.c
1974
mode = O_RDWR;
dist/pf/sbin/pfctl/pfctl.c
1983
mode = O_RDWR;
dist/pf/sbin/pfctl/pfctl.c
1994
mode = O_RDWR;
dist/pf/sbin/pfctl/pfctl.c
2006
mode = O_RDWR;
dist/pf/sbin/pfctl/pfctl.c
2015
mode = O_RDWR;
dist/pf/sbin/pfctl/pfctl.c
2031
mode = O_RDWR;
dist/pf/sbin/pfctl/pfctl.c
2084
mode = O_RDWR;
dist/pf/sbin/pfctl/pfctl.c
2088
mode = O_RDWR;
dist/pf/sbin/pfctl/pfctl.c
2106
mode = strchr("acdefkrz", ch) ? O_RDWR : O_RDONLY;
dist/pf/sbin/pflogd/privsep.c
165
O_RDWR|O_CREAT|O_APPEND|O_NONBLOCK|O_NOFOLLOW,
dist/pf/usr.sbin/authpf/authpf.c
122
dev = open(PATH_DEVFILE, O_RDWR);
dist/pf/usr.sbin/authpf/authpf.c
201
if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 ||
dist/pf/usr.sbin/ftp-proxy/filter.c
205
dev = open("/dev/pf", O_RDWR);
dist/pf/usr.sbin/ftp-proxy/ipf.c
324
natfd = open(IPNAT_NAME, O_RDWR);
distrib/utils/edlabel/edlabel.c
367
fd = open(dn, O_RDWR, 0);
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/backgammon/common_source/save.c
94
if ((fdesc = open(fname, O_RDWR)) == -1 && errno == ENOENT) {
games/canfield/canfield/canfield.c
1646
dbfd = open(_PATH_SCORE, O_RDWR);
games/hack/hack.main.c
570
if ((fd = open(RECORD, O_RDWR)) < 0) {
games/robots/main.c
124
score_wfd = open(Scorefile, O_RDWR);
games/robots/main.c
73
score_wfd = open(Scorefile, O_RDWR);
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/libarch/alpha/alpha_bus_window.c
88
fd = open(_PATH_MEM, O_RDWR, 0600);
lib/libarch/alpha/alpha_pci_mem.c
103
fd = open(_PATH_MEM, O_RDWR, 0600);
lib/libc/db/btree/bt_open.c
199
case O_RDWR:
lib/libc/db/btree/bt_open.c
208
if ((flags & O_ACCMODE) != O_RDWR)
lib/libc/db/db/db.c
66
O_RDWR | O_SHLOCK | O_TRUNC | O_CLOEXEC)
lib/libc/db/hash/hash.c
194
hashp->save_file = file && (hashp->flags & O_RDWR);
lib/libc/db/hash/ndbm.c
78
flags |= O_RDWR;
lib/libc/db/recno/rec_open.c
145
case O_RDWR:
lib/libc/db/recno/rec_open.c
90
O_RDWR, S_IRUSR | S_IWUSR, &btopeninfo, dflags);
lib/libc/db/recno/rec_open.c
92
dbp = __bt_open(NULL, O_RDWR, S_IRUSR | S_IWUSR, NULL, dflags);
lib/libc/gen/daemon.c
71
if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
lib/libc/gen/getpass.c
111
O_RDWR | O_CLOEXEC)) == -1) {
lib/libc/gen/getpwent.c
1769
state->exclude = dbopen(NULL, O_RDWR, 600, DB_HASH, NULL);
lib/libc/gen/utmpx.c
474
db = dbopen(fname, O_RDWR|O_CREAT|O_EXLOCK|O_CLOEXEC, 0644, DB_HASH, NULL);
lib/libc/gen/wordexp.c
142
if ((devnull = open(_PATH_DEVNULL, O_RDWR, 0666)) < 0)
lib/libc/stdio/fdopen.c
90
if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) {
lib/libc/stdio/flags.c
100
m = O_RDWR;
lib/libc/stdio/fmemopen.c
185
if ((oflags & O_RDWR) == 0 && buf == NULL)
lib/libc/stdio/gettemp.c
144
if ((*doopen = open(path, O_CREAT|O_EXCL|O_RDWR|oflags,
lib/libc/stdio/vdprintf.c
86
if (tmp != O_RDWR && tmp != O_WRONLY) {
lib/libc/stdlib/malloc.c
119
{ if ((fdzero = open(_PATH_DEVZERO, O_RDWR | O_CLOEXEC, 0000)) == -1) \
lib/libdm/libdm_ioctl.c
113
if ((fd = rump_sys_open(path, O_RDWR)) < 0)
lib/libdm/libdm_ioctl.c
116
if ((fd = open(path, O_RDWR)) < 0)
lib/libkvm/kvm.c
328
if (flag & ~O_RDWR) {
lib/libossaudio/oss4_mixer.c
451
if ((newfd = open(devname, O_RDWR)) < 0)
lib/libossaudio/oss4_mixer.c
522
if ((newfd = open(devname, O_RDWR)) < 0)
lib/libpam/modules/pam_lastlog/pam_lastlog.c
356
if ((fd = open(_PATH_LASTLOG, O_RDWR, 0)) == -1) {
lib/libperfuse/ops.c
1225
fci->flags = O_CREAT | O_TRUNC | O_RDWR;
lib/libperfuse/ops.c
1439
fmode |= (mode & FWRITE) ? O_RDWR : O_RDONLY;
lib/libpuffs/null.c
342
fd = open(PCNPATH(pcn), O_RDWR | O_CREAT | O_TRUNC);
lib/libpuffs/puffs.c
485
fd = open(_PATH_DEVNULL, O_RDWR, 0);
lib/libpuffs/puffs.c
599
fd = open(_PATH_PUFFS, O_RDWR);
lib/libquota/quota_oldfiles.c
366
fd = open(path, O_RDWR);
lib/librumpclient/rumpclient.c
1244
int fd = open("/dev/null", O_RDWR);
lib/librumpuser/rumpuser_daemonize.c
150
fd = open(_PATH_DEVNULL, O_RDWR);
lib/librumpuser/rumpuser_file.c
199
flags = O_RDWR;
lib/libukfs/ukfs.c
453
devfd = open(devpath, rdonly ? O_RDONLY : O_RDWR);
lib/libutil/logout.c
61
if ((fd = open(_PATH_UTMP, O_RDWR, 0)) < 0)
lib/libutil/pidfile.c
256
opts = O_RDWR | O_CREAT | O_NONBLOCK;
lib/libutil/pty.c
106
if ((master = open(line, O_RDWR, 0)) == -1) {
lib/libutil/pty.c
119
(slave = open(line, O_RDWR, 0)) != -1) {
lib/libutil/pty.c
81
if ((master = open("/dev/ptm", O_RDWR)) != -1) {
lib/lua/gpio/gpio.c
73
*fd = open(luaL_checkstring(L, -2), O_RDWR);
libexec/ftpd/conf.c
906
if ((fd = open(fn, O_RDWR | O_CREAT, 0600)) == -1)
libexec/ftpd/logutmp.c
105
&& (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) < 0))
libexec/getty/main.c
232
while ((i = open(ttyn, O_RDWR)) == -1) {
libexec/identd/npf.c
83
if ((dev = open("/dev/npf", O_RDWR)) == -1) {
libexec/identd/pf.c
69
if ((dev = open("/dev/pf", O_RDWR)) == -1) {
libexec/ld.elf_so/xmalloc.c
395
fd = open("/dev/zero", O_RDWR, 0);
libexec/rshd/rshd.c
284
int t = open(_PATH_TTY, O_RDWR);
libexec/telnetd/sys_term.c
454
t = open(_PATH_TTY, O_RDWR);
libexec/telnetd/telnetd.c
884
t = open(_PATH_TTY, O_RDWR);
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);
sbin/apmlabel/apmlabel.c
333
if ((sd = opendisk(argv[0], write_it ? O_RDWR : O_RDONLY, name,
sbin/atactl/atactl.c
513
fd = opendisk(dvname, O_RDWR, dvname_store, sizeof(dvname_store), 0);
sbin/atactl/atactl.c
523
fd = opendisk(dvname, O_RDWR, dvname_store,
sbin/bioctl/bioctl.c
168
fd = open("/dev/bio", O_RDWR);
sbin/blkdiscard/blkdiscard.c
173
int fd = open(name, O_RDWR);
sbin/ccdconfig/ccdconfig.c
501
if ((fd = open(path, O_RDWR, 0640)) < 0) {
sbin/cgdconfig/cgdconfig.c
707
fd = opendisk1(*argv, O_RDWR, buf, sizeof(buf), 1, prog_open);
sbin/cgdconfig/cgdconfig.c
764
fd = opendisk1(*argv, O_RDWR, cgdname, sizeof(cgdname), 1, prog_open)
sbin/cgdconfig/cgdconfig.c
969
fd = opendisk1(cgd, O_RDWR, buf, buflen, 0, prog_open);
sbin/clri/clri.c
98
if ((fd = open(fs, O_RDWR, 0)) < 0)
sbin/devpubd/devpubd.c
290
drvctl_fd = open(DRVCTLDEV, O_RDWR);
sbin/disklabel/main.c
679
f = opendisk(dkname, op == READ ? O_RDONLY : O_RDWR,
sbin/dkctl/dkctl.c
112
O_RDWR },
sbin/dkctl/dkctl.c
117
O_RDWR },
sbin/dkctl/dkctl.c
122
O_RDWR },
sbin/dkctl/dkctl.c
142
O_RDWR },
sbin/dkctl/dkctl.c
152
O_RDWR },
sbin/dkctl/dkctl.c
157
O_RDWR },
sbin/dkctl/dkctl.c
162
O_RDWR },
sbin/dkctl/dkctl.c
167
O_RDWR },
sbin/dkscan_bsdlabel/dkscan_bsdlabel.c
96
disk_fd = opendisk(argv[optind], O_RDWR, buf, PATH_MAX, 0);
sbin/drvctl/drvctl.c
42
(((mode) == 'd' || (mode) == 'r') ? O_RDWR \
sbin/dump/snapshot.c
117
fd = open(fss.fss_bstore, O_RDWR);
sbin/dump/snapshot.c
155
if ((fd = open(fss_dev, O_RDWR, 0)) < 0)
sbin/fdisk/fdisk.c
2492
int flags = update && disk_file == NULL ? O_RDWR : O_RDONLY;
sbin/fdisk/fdisk.c
2519
wfd = open(disk_file, update ? O_RDWR|O_CREAT : O_RDONLY, 0777);
sbin/fsck_lfs/setup.c
190
open_flags = O_RDWR;
sbin/fsck_msdos/check.c
59
dosfs = open(filename, rdonly ? O_RDONLY : O_RDWR, 0);
sbin/fsck_udf/main.c
4212
open_flags = rdonly ? O_RDONLY : O_RDWR;
sbin/fsck_v7fs/fsck_v7fs.c
73
int openflags = O_RDWR;
sbin/fsirand/fsirand.c
267
openflags = pflag ? O_RDONLY : O_RDWR;
sbin/gpt/gpt.c
503
mode = (gpt->flags & GPT_READONLY) ? O_RDONLY : O_RDWR|O_EXCL;
sbin/gpt/gpt.c
520
gpt->fd = open(dev, O_RDWR|O_EXCL|O_CREAT, 0644);
sbin/init/init.c
629
if ((fd = open(name, O_RDWR)) == -1) {
sbin/init/init.c
975
if ((session_db = dbopen(NULL, O_RDWR, 0, DB_HASH, NULL)) == 0) {
sbin/luactl/luactl.c
85
if ((devfd = open(_PATH_DEV_LUA, O_RDWR)) == -1)
sbin/mbrlabel/mbrlabel.c
337
if ((sd = opendisk(argv[0], write_it ? O_RDWR : O_RDONLY, name,
sbin/mount_portal/pt_file.c
154
fd = open(pbuf, O_RDWR | O_CREAT, 0666);
sbin/mount_qemufwcfg/fwcfg.c
268
fwcfg_fd = open(path, O_RDWR);
sbin/newfs/newfs.c
494
fl = O_RDWR | O_CREAT;
sbin/newfs/newfs.c
496
fl = O_RDWR;
sbin/newfs_ext2fs/newfs_ext2fs.c
241
fl = O_RDWR | O_CREAT;
sbin/newfs_ext2fs/newfs_ext2fs.c
243
fl = O_RDWR;
sbin/newfs_lfs/newfs.c
288
fso = open(special, O_RDWR, DEFFILEMODE);
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_msdos/mkfs_msdos.c
297
} else if ((fd = open(fname, o.no_create ? O_RDONLY : O_RDWR)) == -1 ||
sbin/newfs_sysvbfs/newfs_sysvbfs.c
134
fd = open(device, O_RDWR|O_CREAT|O_TRUNC, 0666);
sbin/newfs_sysvbfs/newfs_sysvbfs.c
95
if ((fd = open(device, O_RDWR)) == -1) {
sbin/newfs_udf/newfs_udf.c
258
error = udf_opendisc(dev_name, O_RDWR | O_CREAT | O_TRUNC);
sbin/newfs_udf/udf_core.c
3344
if ((dev_fd = open(dev_name, O_RDWR, 0)) == -1) {
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
130
if ((fd = open(device, O_RDWR)) == -1) {
sbin/newfs_v7fs/newfs_v7fs.c
166
fd = open(device, O_RDWR|O_CREAT|O_TRUNC, 0666);
sbin/nvmectl/nvmectl.c
213
*fd = open(full_path, O_RDWR);
sbin/raidctl/raidctl.c
142
openmode = O_RDWR; /* default to read/write */
sbin/resize_ffs/resize_ffs.c
2213
fd = open(special, O_RDWR, 0);
sbin/rndctl/rndctl.c
317
if ((fd_old = open(filename, O_RDWR)) == -1) {
sbin/routed/trace.c
208
fd = open(_PATH_DEVNULL, O_RDWR);
sbin/savecore/savecore.c
364
dumpfd = Open(ddname, O_RDWR);
sbin/savecore/savecore.c
366
kd_dump = kvm_openfiles(kernel, ddname, NULL, O_RDWR, errbuf);
sbin/scan_ffs/scan_ffs.c
416
ttyfd = open(_PATH_TTY, O_RDWR | O_CLOEXEC);
sbin/scsictl/scsictl.c
155
fd = opendisk(dvname, O_RDWR, dvname_store, sizeof(dvname_store), 0);
sbin/scsictl/scsictl.c
165
fd = opendisk(dvname, O_RDWR, dvname_store,
sbin/slattach/slattach.c
127
if ((fd = open(dev, O_RDWR | O_NDELAY)) < 0)
sbin/svhlabel/svhlabel.c
331
if ((sd = opendisk(argv[0], write_it ? O_RDWR : O_RDONLY, name,
sbin/ttyflags/ttyflags.c
217
if ((fd = open(path, O_RDWR | O_NONBLOCK, 0)) == -1) {
sbin/tunefs/tunefs.c
234
openflags = Nflag ? O_RDONLY : O_RDWR;
sbin/umount/umount.c
491
if ((fd = opendisk(dev, O_RDWR, rdev, sizeof(rdev), 0)) == -1) {
sbin/veriexecctl/veriexecctl.c
231
if ((gfd = open(VERIEXEC_DEVICE, O_RDWR, 0)) == -1)
sbin/wdogctl/wdogctl.c
195
fd = open(_PATH_WATCHDOG, O_RDWR, 0644);
sbin/wdogctl/wdogctl.c
213
fd = open(_PATH_WATCHDOG, O_RDWR, 0644);
sbin/wdogctl/wdogctl.c
239
fd = open(_PATH_WATCHDOG, O_RDWR, 0644);
sbin/wdogctl/wdogctl.c
316
fd = open(_PATH_WATCHDOG, O_RDWR, 0644);
sbin/wdogctl/wdogctl.c
332
fd = open(_PATH_WATCHDOG, O_RDWR, 0644);
share/examples/pud/intro/doioctl.c
21
fd = open(argv[1], O_RDWR);
share/examples/pud/intro/intro.c
57
fd = open(argv[1], O_RDWR);
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/dmtest/dmt.c
65
fd = rump_sys_open("/dev/mapper/control", O_RDWR, 0);
share/examples/rump/sdread/sdread.c
173
fd_h = open(argv[2], O_RDWR | O_CREAT, 0777);
share/examples/rump/sdread/sdread.c
65
fd = rump_sys_open("/dev/rcd0d", O_RDWR);
share/examples/rump/tipsy/tipsy.c
108
com = rump_sys_open("/dev/dtyU0", O_RDWR);
share/examples/rump/ttyserv/ttyserv.c
172
fd = open(_PATH_PUD, O_RDWR);
share/examples/rump/ulptprint/ulptprint.c
69
fd_dst = rump_sys_open("/dev/ulpt0", O_RDWR);
share/examples/rump/umserv/umserv.c
106
fd = open(_PATH_PUD, O_RDWR);
sys/arch/atari/stand/ahdilabel/write.c
59
if (!(fd = openraw (diskname, O_RDWR)))
sys/arch/atari/stand/binpatch/binpatch.c
198
if ((fd = open(fname, replace ? O_RDWR : O_RDONLY, 0)) == -1)
sys/arch/atari/stand/bootpref/bootpref.c
309
if ((fd = open (nvrdev, O_RDWR)) < 0) {
sys/arch/atari/stand/edahdi/edahdi.c
126
if ((fd = open(argv[1], O_RDWR)) < 0)
sys/arch/atari/stand/installboot/installboot.c
504
if ((fd = open(nvrdev, O_RDWR)) < 0)
sys/arch/ews4800mips/stand/common/coffhdrfix.c
118
if ((fdout = open(argp[2], O_CREAT | O_TRUNC | O_RDWR, 0644)) < 0) {
sys/arch/ews4800mips/stand/common/coffhdrfix.c
122
fd = open(argp[1], O_RDWR);
sys/arch/ews4800mips/stand/common/coffhdrfix.c
92
if ((fd = open(argp[1], O_RDWR)) < 0) {
sys/arch/hppa/stand/mkboot/mkboot.c
166
if ((to = open(to_file, O_RDWR | O_TRUNC | O_CREAT, 0644)) < 0)
sys/arch/i386/stand/lib/test/stand_user.c
107
memfd = open("/dev/mem", O_RDWR, 0);
sys/arch/macppc/stand/fixcoff/fixcoff.c
146
if ((fd = open(argv[0], O_RDWR, 0)) == -1)
sys/arch/macppc/stand/installboot/installboot.c
82
if ((params->fsfd = open(params->filesystem, O_RDWR, 0600)) == -1)
sys/arch/mvme68k/stand/installboot/installboot.c
163
if ((devfd = open(dev, O_RDWR, 0)) < 0)
sys/arch/pmax/stand/smallnet/setnetimage/setnetimage.c
102
if ((ofd = open(bootfile, O_RDWR)) < 0)
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c
323
if ((prep_fd = open(outname, O_RDWR|O_TRUNC, 0)) < 0) {
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c
491
if ((rs6000_fd = open(outname, O_RDWR|O_TRUNC, 0)) < 0) {
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c
719
if ((bebox_fd = open(outname, O_RDWR|O_TRUNC, 0)) < 0) {
sys/arch/prep/stand/installboot/installboot.c
279
if ((devfd = open(dev, O_RDWR, 0)) < 0) {
sys/arch/sgimips/stand/sgivol/sgivol.c
202
(opt_i | opt_m | opt_w | opt_d | opt_p) ? O_RDWR : O_RDONLY);
sys/arch/sgimips/stand/sgivol/sgivol.c
208
? O_RDWR : O_RDONLY);
sys/arch/usermode/dev/ld_thunkbus.c
106
sc->sc_fd = thunk_open(path, O_RDWR, 0);
sys/arch/usermode/dev/vatapi.c
132
sc->sc_fd = thunk_open(taa->u.vdev.path, O_RDWR, 0);
sys/arch/usermode/usermode/thunk.c
840
fd = open(device, O_RDWR);
sys/arch/usermode/usermode/thunk.c
905
return open(path, O_RDWR);
sys/arch/x68k/usr.bin/bellctrl/bellctrl.c
210
if ((fd = open("/dev/bell", O_RDWR)) < 0)
sys/arch/x68k/usr.bin/bellctrl/bellctrl.c
224
if ((fd = open("/dev/bell", O_RDWR)) < 0)
sys/arch/x68k/usr.bin/palette/palette.c
41
if ((fd = open("/dev/grf0", O_RDWR, 0)) < 0) {
sys/compat/linux/common/linux_file.c
104
res |= cvtto_bsd_mask(lflags, LINUX_O_RDWR, O_RDWR);
sys/compat/linux/common/linux_file.c
130
res |= cvtto_linux_mask(bflags, O_RDWR, LINUX_O_RDWR);
sys/dev/microcode/aic7xxx/aicasm_symbol.c
138
O_CREAT | O_NONBLOCK | O_RDWR, /*mode*/0, DB_HASH,
sys/modules/examples/ping/cmd_ping.c
49
if ((devfd = open(_PATH_DEV_PING, O_RDWR)) == -1)
sys/modules/examples/ping_block/cmd_ping.c
49
if ((devfd = open(_PATH_DEV_PING, O_RDWR)) == -1)
sys/modules/examples/pollpal/cmd_pollpal.c
83
fd = open(dev, O_RDWR, 0);
sys/rump/dev/lib/libugenhc/ugenhc.c
813
|| sc->sc_fdmodes[endpt] == O_RDWR)
sys/rump/dev/lib/libugenhc/ugenhc.c
819
oflags = O_RDWR;
sys/rump/net/lib/libvirtif/virtif_user.c
85
fd = open(tapdev, O_RDWR);
sys/rump/net/lib/libvirtif/virtif_user.c
95
fd = open("/dev/net/tun", O_RDWR);
sys/rump/net/lib/libwg/wg_user.c
93
fd = open(tun_path, O_RDWR);
sys/sys/eventfd.h
44
#define EFD_SEMAPHORE O_RDWR
sys/sys/midiio.h
626
fd = open("/dev/music", O_RDWR);
sys/sys/timerfd.h
45
#define TFD_TIMER_CANCEL_ON_SET O_RDWR
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/crypto/opencrypto/h_aescbc.c
130
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_aesctr1.c
216
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_aesctr2.c
58
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_arc4.c
54
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_camellia.c
60
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_cbc3des.c
59
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_cbcdes.c
55
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_comp.c
50
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_comp_zlib.c
50
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_comp_zlib_rnd.c
55
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_gcm.c
61
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_ioctl.c
430
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_md5.c
79
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_md5hmac.c
147
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_null.c
50
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_sha1hmac.c
157
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_sha2hmac.c
236
fd = open("/dev/crypto", O_RDWR, 0);
tests/crypto/opencrypto/h_thread.c
179
if ((fd = open("/dev/crypto", O_RDWR, 0)) == -1)
tests/crypto/opencrypto/h_xcbcmac.c
81
fd = open("/dev/crypto", O_RDWR, 0);
tests/dev/audio/audiotest.c
1266
return O_RDWR;
tests/dev/audio/audiotest.c
1293
if (mode == O_RDWR && hw_bidir() && hw_fulldup() == 0)
tests/dev/audio/audiotest.c
1442
DEF(open_mode_RDWR) { test_open_mode(O_RDWR); }
tests/dev/audio/audiotest.c
1673
DEF(open_audio_RDWR) { test_open("audio", O_RDWR); }
tests/dev/audio/audiotest.c
1676
DEF(open_sound_RDWR) { test_open("sound", O_RDWR); }
tests/dev/audio/audiotest.c
1679
DEF(open_audioctl_RDWR) { test_open("audioctl", O_RDWR); }
tests/dev/audio/audiotest.c
1897
DEF(open_simul_RDONLY_RDWR) { test_open_simul(O_RDONLY, O_RDWR); }
tests/dev/audio/audiotest.c
1900
DEF(open_simul_WRONLY_RDWR) { test_open_simul(O_WRONLY, O_RDWR); }
tests/dev/audio/audiotest.c
1901
DEF(open_simul_RDWR_RDONLY) { test_open_simul(O_RDWR, O_RDONLY); }
tests/dev/audio/audiotest.c
1902
DEF(open_simul_RDWR_WRONLY) { test_open_simul(O_RDWR, O_WRONLY); }
tests/dev/audio/audiotest.c
1903
DEF(open_simul_RDWR_RDWR) { test_open_simul(O_RDWR, O_RDWR); }
tests/dev/audio/audiotest.c
2310
test_rdwr_fallback(O_RDWR, true, expread);
tests/dev/audio/audiotest.c
2419
DEF(rdwr_two_RDONLY_RDWR) { test_rdwr_two(O_RDONLY, O_RDWR); }
tests/dev/audio/audiotest.c
2422
DEF(rdwr_two_WRONLY_RDWR) { test_rdwr_two(O_WRONLY, O_RDWR); }
tests/dev/audio/audiotest.c
2423
DEF(rdwr_two_RDWR_RDONLY) { test_rdwr_two(O_RDWR, O_RDONLY); }
tests/dev/audio/audiotest.c
2424
DEF(rdwr_two_RDWR_WRONLY) { test_rdwr_two(O_RDWR, O_WRONLY); }
tests/dev/audio/audiotest.c
2425
DEF(rdwr_two_RDWR_RDWR) { test_rdwr_two(O_RDWR, O_RDWR); }
tests/dev/audio/audiotest.c
2688
DEF(mmap_mode_RDWR_NONE) { test_mmap_mode(O_RDWR, PROT_NONE); }
tests/dev/audio/audiotest.c
2689
DEF(mmap_mode_RDWR_READ) { test_mmap_mode(O_RDWR, PROT_READ); }
tests/dev/audio/audiotest.c
2690
DEF(mmap_mode_RDWR_WRITE) { test_mmap_mode(O_RDWR, PROT_WRITE); }
tests/dev/audio/audiotest.c
2691
DEF(mmap_mode_RDWR_READWRITE) { test_mmap_mode(O_RDWR, PROT_READWRITE); }
tests/dev/audio/audiotest.c
2980
if (hw_fulldup()) test_poll_mode(O_RDWR, IN, IN);
tests/dev/audio/audiotest.c
2981
else test_poll_mode(O_RDWR, IN, 0);
tests/dev/audio/audiotest.c
2983
DEF(poll_mode_RDWR_OUT) { test_poll_mode(O_RDWR, OUT, OUT); }
tests/dev/audio/audiotest.c
2986
if (hw_fulldup()) test_poll_mode(O_RDWR, IN|OUT, IN|OUT);
tests/dev/audio/audiotest.c
2987
else test_poll_mode(O_RDWR, IN|OUT, OUT);
tests/dev/audio/audiotest.c
3616
test_kqueue_mode(O_RDWR, EVFILT_READ, expected);
tests/dev/audio/audiotest.c
3620
test_kqueue_mode(O_RDWR, EVFILT_WRITE, 1);
tests/dev/audio/audiotest.c
4624
fd = OPEN(devaudio, O_RDWR);
tests/dev/audio/audiotest.c
4668
XP_EQ(mode2rec(O_RDWR), ai.record.open);
tests/dev/audio/audiotest.c
4708
XP_EQ(mode2rec(O_RDWR), ai.record.open);
tests/dev/audio/audiotest.c
4730
fd = OPEN(devaudio, O_RDWR);
tests/dev/audio/audiotest.c
4785
fd1 = OPEN(devaudio, O_RDWR);
tests/dev/audio/audiotest.c
4802
fd = OPEN(devaudio, O_RDWR);
tests/dev/audio/audiotest.c
5012
test_AUDIO_SETINFO_mode(O_RDWR, index, setmode, expected); \
tests/dev/audio/audiotest.c
5051
if (!hw_fulldup() && openmode == O_RDWR) {
tests/dev/audio/audiotest.c
5101
DEF(AUDIO_SETINFO_params_set_RDWR_0) { f(O_RDWR, 0, 0); }
tests/dev/audio/audiotest.c
5102
DEF(AUDIO_SETINFO_params_set_RDWR_1) { f(O_RDWR, 0, 1); }
tests/dev/audio/audiotest.c
5103
DEF(AUDIO_SETINFO_params_set_RDWR_2) { f(O_RDWR, 1, 0); }
tests/dev/audio/audiotest.c
5104
DEF(AUDIO_SETINFO_params_set_RDWR_3) { f(O_RDWR, 1, 1); }
tests/dev/audio/audiotest.c
5135
fd1 = OPEN(devaudio, O_RDWR);
tests/dev/audio/audiotest.c
5427
if (!hw_fulldup() && openmode == O_RDWR) {
tests/dev/audio/audiotest.c
5497
DEF(AUDIO_SETINFO_pause_RDWR_0) { test_AUDIO_SETINFO_pause(O_RDWR, 0, 0); }
tests/dev/audio/audiotest.c
5498
DEF(AUDIO_SETINFO_pause_RDWR_1) { test_AUDIO_SETINFO_pause(O_RDWR, 0, 1); }
tests/dev/audio/audiotest.c
5499
DEF(AUDIO_SETINFO_pause_RDWR_2) { test_AUDIO_SETINFO_pause(O_RDWR, 1, 0); }
tests/dev/audio/audiotest.c
5500
DEF(AUDIO_SETINFO_pause_RDWR_3) { test_AUDIO_SETINFO_pause(O_RDWR, 1, 1); }
tests/dev/audio/audiotest.c
5522
mixerfd = OPEN(devmixer, O_RDWR);
tests/dev/audio/audiotest.c
6205
getenc_check_encodings(O_RDWR, expected);
tests/dev/audio/audiotest.c
6283
DEF(AUDIO_ERROR_RDWR) { test_AUDIO_ERROR(O_RDWR); }
tests/dev/audio/audiotest.c
6370
DEF(AUDIO_GETIOFFS_one_RDWR) { test_AUDIO_GETIOFFS_one(O_RDWR); }
tests/dev/audio/audiotest.c
6492
DEF(AUDIO_GETOOFFS_one_RDWR) { test_AUDIO_GETOOFFS_one(O_RDWR); }
tests/dev/audio/audiotest.c
6616
DEF(AUDIO_GETOOFFS_wrap_RDWR) { test_AUDIO_GETOOFFS_wrap(O_RDWR); }
tests/dev/audio/audiotest.c
6743
DEF(AUDIO_GETOOFFS_flush_RDWR) { test_AUDIO_GETOOFFS_flush(O_RDWR); }
tests/dev/audio/audiotest.c
6830
DEF(AUDIO_GETOOFFS_set_RDWR) { test_AUDIO_GETOOFFS_set(O_RDWR); }
tests/dev/audio/audiotest.c
6867
DEF(audioctl_open_1_RDONLY_RDWR) { test_audioctl_open_1(O_RDONLY, O_RDWR); }
tests/dev/audio/audiotest.c
6870
DEF(audioctl_open_1_WRONLY_RDWR) { test_audioctl_open_1(O_WRONLY, O_RDWR); }
tests/dev/audio/audiotest.c
6871
DEF(audioctl_open_1_RDWR_RDONLY) { test_audioctl_open_1(O_RDWR, O_RDONLY); }
tests/dev/audio/audiotest.c
6872
DEF(audioctl_open_1_RDWR_RWONLY) { test_audioctl_open_1(O_RDWR, O_WRONLY); }
tests/dev/audio/audiotest.c
6873
DEF(audioctl_open_1_RDWR_RDWR) { test_audioctl_open_1(O_RDWR, O_RDWR); }
tests/dev/audio/audiotest.c
6910
DEF(audioctl_open_2_RDONLY_RDWR) { test_audioctl_open_2(O_RDONLY, O_RDWR); }
tests/dev/audio/audiotest.c
6913
DEF(audioctl_open_2_WRONLY_RDWR) { test_audioctl_open_2(O_WRONLY, O_RDWR); }
tests/dev/audio/audiotest.c
6914
DEF(audioctl_open_2_RDWR_RDONLY) { test_audioctl_open_2(O_RDWR, O_RDONLY); }
tests/dev/audio/audiotest.c
6915
DEF(audioctl_open_2_RDWR_RWONLY) { test_audioctl_open_2(O_RDWR, O_WRONLY); }
tests/dev/audio/audiotest.c
6916
DEF(audioctl_open_2_RDWR_RDWR) { test_audioctl_open_2(O_RDWR, O_RDWR); }
tests/dev/audio/audiotest.c
6929
ctl0 = OPEN(devaudioctl, O_RDWR);
tests/dev/audio/audiotest.c
6932
ctl1 = OPEN(devaudioctl, O_RDWR);
tests/dev/audio/audiotest.c
6961
fd1 = OPEN(dev1, O_RDWR);
tests/dev/audio/audiotest.c
6968
fd2 = OPEN(dev2, O_RDWR);
tests/dev/audio/audiotest.c
7088
DEF(audioctl_rw_RDWR) { test_audioctl_rw(O_RDWR); }
tests/dev/audio/h_pad.c
149
audiofd = rump_sys_open("/dev/audio0", O_RDWR);
tests/dev/cgd/t_cgd_3des.c
700
fd = open(imgpath, O_CREAT | O_RDWR | O_TRUNC, 0600);
tests/dev/cgd/t_cgd_3des.c
727
return rump_sys_open(devpath, O_RDWR, 0);
tests/dev/cgd/t_cgd_adiantum.c
339
RL(dkfd = open(imgpath, O_CREAT|O_RDWR|O_TRUNC, 0600));
tests/dev/cgd/t_cgd_adiantum.c
345
RL(cgdfd = rump_sys_open(cgdpath, O_RDWR));
tests/dev/cgd/t_cgd_aes.c
3101
fd = open(imgpath, O_CREAT | O_RDWR | O_TRUNC, 0600);
tests/dev/cgd/t_cgd_aes.c
3128
return rump_sys_open(devpath, O_RDWR, 0);
tests/dev/cgd/t_cgd_blowfish.c
1936
fd = open(imgpath, O_CREAT | O_RDWR | O_TRUNC, 0600);
tests/dev/cgd/t_cgd_blowfish.c
1963
return rump_sys_open(devpath, O_RDWR, 0);
tests/dev/dm/h_dm.c
110
fd = rump_sys_open("/dev/mapper/control", O_RDWR, 0);
tests/dev/dm/h_dm.c
70
fd = rump_sys_open("/dev/mapper/control", O_RDWR, 0);
tests/dev/md/h_mdserv.c
86
if ((fd = rump_sys_open(argv[1], O_RDWR)) == -1)
tests/dev/scsipi/t_cd.c
66
RL(fd = rump_sys_open(fname, O_RDWR));
tests/dev/sysmon/t_swwdog.c
90
fd = rump_sys_open("/dev/watchdog", O_RDWR);
tests/fs/common/fstest_puffs.c
386
fd = rump_sys_open("/dev/puffs", O_RDWR);
tests/fs/common/fstest_zfs.c
68
if ((fd = open(image, O_RDWR | O_CREAT, 0777)) == -1)
tests/fs/common/snapshot.c
199
fssfd = rump_sys_open("/dev/rfss0", O_RDWR);
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/common/snapshot.c
68
fssfd = rump_sys_open("/dev/rfss0", O_RDWR);
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
245
fssfd = rump_sys_open("/dev/rfss0", O_RDWR);
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/ffs/t_update_log.c
85
RL(fd = rump_sys_open("dummy", O_APPEND | O_RDWR, 0755));
tests/fs/kernfs/t_basic.c
102
if ((fd = rump_sys_open("/kern/hostname", O_RDWR)) == -1)
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/psshfs/h_have_puffs.c
39
fd = open("/dev/puffs", O_RDWR);
tests/fs/ptyfs/t_nullpts.c
108
if (rump_sys_open(path, O_RDWR) == -1)
tests/fs/ptyfs/t_nullpts.c
95
ptm = rump_sys_open("/dev/ptm", O_RDWR);
tests/fs/puffs/t_basic.c
168
fd = rump_sys_open(FSTEST_MNTNAME, O_RDWR);
tests/fs/puffs/t_basic.c
201
fd = rump_sys_open(FSTEST_MNTNAME, O_RDWR);
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_basic.c
94
fd = rump_sys_open(FSTEST_MNTNAME, O_RDWR);
tests/fs/puffs/t_fuzz.c
119
kargs->pa_fd = rump_sys_open("/dev/putter", O_RDWR);
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/tmpfs/t_renamerace.c
68
fd = rump_sys_open("/dir/file1", O_RDWR);
tests/fs/umapfs/t_basic.c
36
fd = rump_sys_open(path, O_CREAT | O_RDWR, 0777);
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
129
RL(fd = rump_sys_open("testi", O_RDWR));
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
189
RL(fd = rump_sys_open("file", O_RDWR));
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_ro.c
116
ATF_REQUIRE_ERRNO(expected, rump_sys_open(AFILE, O_RDWR) == -1);
tests/fs/vfs/t_ro.c
65
RL(fd = rump_sys_open(AFILE, O_CREAT | O_RDWR, 0777));
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
183
fd = rump_sys_fhopen(fhp, fhsize, O_RDWR);
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
812
RL(fd2 = rump_sys_open(TESTFILE, O_RDWR, 0));
tests/fs/vfs/t_vnops.c
915
int oflags = O_RDWR | O_CREAT;
tests/fs/vfs/t_vnops.c
935
oflags = O_RDWR;
tests/kernel/kqueue/t_vnode.c
535
O_RDWR | O_CREAT | O_TRUNC, 0600)) != -1);
tests/kernel/kqueue/t_vnode.c
548
ATF_REQUIRE((fd = open(testfile, O_RDWR)) != -1);
tests/kernel/kqueue/t_vnode.c
633
O_RDWR | O_CREAT | O_TRUNC, 0600)) != -1);
tests/kernel/kqueue/t_vnode.c
655
ATF_REQUIRE((fd = open(testfile, O_RDWR)) != -1);
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_filedesc.c
83
fd = fd_wrk = rump_sys_open("/dev/null", O_RDWR, 0);
tests/kernel/t_filedesc.c
95
fd_wrk = rump_sys_open("/dev/null", O_RDWR, 0);
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_lockf.c
77
fd = open (lockfile, O_RDWR, 0);
tests/kernel/t_mqueue.c
117
mqfd = mq_open(mq_name, O_RDWR | O_CREAT,
tests/kernel/t_pty.c
137
if ((fd = posix_openpt(O_RDWR)) == -1)
tests/kernel/t_pty.c
158
if ((fd = open(ttydev, O_RDWR, 0)) == -1)
tests/kernel/t_rnd.c
59
fd = rump_sys_open("/dev/random", O_RDWR, 0);
tests/kernel/t_rnd.c
81
fd = rump_sys_open("/dev/random", O_RDWR, 0);
tests/kernel/t_sysv.c
156
fd = open(token_key, O_RDWR | O_CREAT | O_EXCL, 0600);
tests/kernel/tty/t_pr.c
111
slave = rump_sys_open("/dev/ttyp1", O_RDWR|O_NONBLOCK);
tests/kernel/tty/t_pr.c
114
master = rump_sys_open("/dev/ptyp1", O_RDWR);
tests/kernel/tty/t_pr.c
139
master = rump_sys_open("/dev/ptyp1", O_RDWR);
tests/kernel/tty/t_pr.c
142
slave = rump_sys_open("/dev/ttyp1", O_RDWR);
tests/kernel/tty/t_pr.c
166
fd = rump_sys_open("/dev/ptyp1", O_RDWR);
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
117
ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1);
tests/lib/libc/c063/t_o_search.c
122
ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1);
tests/lib/libc/c063/t_o_search.c
127
ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -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
149
ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1);
tests/lib/libc/c063/t_o_search.c
154
ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1);
tests/lib/libc/c063/t_o_search.c
159
ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -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
269
ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) == -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_o_search.c
87
ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1);
tests/lib/libc/c063/t_o_search.c
92
ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) == -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_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
252
db = state_open(NULL, O_RDWR|O_CREAT|O_TRUNC, 0600);
tests/lib/libc/gen/posix_spawn/t_fileactions.c
297
RZ(posix_spawn_file_actions_addopen(&fa, 6, "/dev/null", O_RDWR, 0));
tests/lib/libc/gen/t_closefrom.c
97
buf[i] = open(path, O_RDWR | 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/sys/t_dup.c
55
int mode[3] = { O_RDONLY, O_WRONLY, O_RDWR };
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_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
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_msync.c
69
fd = open(path, O_RDWR | O_CREAT, 0700);
tests/lib/libc/sys/t_poll.c
1003
RL(hostfd = posix_openpt(O_RDWR|O_NOCTTY));
tests/lib/libc/sys/t_poll.c
1007
RL(appfd = open(pts, O_RDWR|O_NOCTTY));
tests/lib/libc/sys/t_poll.c
1024
RL(hostfd = posix_openpt(O_RDWR|O_NOCTTY));
tests/lib/libc/sys/t_poll.c
1028
RL(appfd = open(pts, O_RDWR|O_NOCTTY));
tests/lib/libc/sys/t_posix_fadvise.c
96
RL(fd = open("/dev/null", O_RDWR));
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_revoke.c
74
buf[i] = open(path, O_RDWR);
tests/lib/libc/sys/t_setrlimit.c
187
fd = open(path, O_RDWR | O_CREAT, 0700);
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
74
fd = open(path, O_RDWR | O_CREAT, 0600);
tests/lib/libc/ttyio/t_ptm.c
132
if ((fdm = posix_openpt(O_RDWR|O_NOCTTY)) == -1) {
tests/lib/libc/ttyio/t_ptm.c
152
REQUIRE_ERRNO((fds = open(pty, O_RDWR|O_NOCTTY)), -1);
tests/lib/libc/ttyio/t_ptm.c
180
if ((fdm = posix_openpt(O_RDWR|O_NONBLOCK|O_CLOEXEC|O_CLOFORK)) == -1) {
tests/lib/libc/ttyio/t_ptm.c
187
ATF_CHECK_EQ(O_RDWR|O_NONBLOCK, fcntl(fdm, F_GETFL));
tests/lib/libc/ttyio/t_ptm.c
67
if ((fdm = open("/dev/ptm", O_RDWR)) == -1) {
tests/lib/libpthread/t_cancellation.c
204
RL(fd = open("/dev/null", O_RDWR));
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
444
RL(open("file", O_RDWR));
tests/lib/libpthread/t_cancellation.c
452
RL(openat(AT_FDCWD, "file", O_RDWR));
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
811
RL(hostfd = posix_openpt(O_RDWR|O_NOCTTY));
tests/lib/libpthread/t_cancellation.c
815
RL(appfd = open(pts, O_RDWR|O_NOCTTY));
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/librt/t_sem.c
225
master_region = get_shared_region(O_RDWR | O_CREAT | O_EXCL);
tests/lib/librt/t_sem.c
245
slave_region = get_shared_region(O_RDWR);
tests/lib/librt/t_sem.c
259
master_region = get_shared_region(O_RDWR);
tests/lib/librt/t_sem.c
276
master_region = get_shared_region(O_RDWR);
tests/lib/librumphijack/h_client.c
102
fd = open("/rump/dev/null", O_RDWR);
tests/lib/librumphijack/h_client.c
126
if ((fd = open("/dev/null", O_RDWR)) == -1)
tests/lib/librumphijack/h_client.c
129
fd = open("/dev/null", O_RDWR);
tests/lib/librumphijack/h_client.c
134
if ((fd = open("/rump/dev/null", O_RDWR)) != 8)
tests/lib/librumphijack/h_netget.c
77
fd = open(argv[3], O_CREAT | O_RDWR, 0644);
tests/modules/t_kcov.c
108
fd = open("/dev/kcov", O_RDWR);
tests/modules/t_kcov.c
53
fd = open("/dev/kcov", O_RDWR);
tests/modules/t_kcov.c
94
fd2 = open("/dev/kcov", O_RDWR);
tests/net/bpf/t_bpf.c
160
RL(bpfd = rump_sys_open("/dev/bpf", O_RDWR));
tests/net/bpf/t_bpf.c
188
RL(bpfd = rump_sys_open("/dev/bpf", O_RDWR));
tests/net/bpf/t_bpf.c
219
RL(bpfd = rump_sys_open("/dev/bpf", O_RDWR));
tests/net/bpf/t_bpf.c
244
RL(bpfd = rump_sys_open("/dev/bpf", O_RDWR));
tests/net/bpf/t_bpf.c
271
RL(bpfd = rump_sys_open("/dev/bpf", O_RDWR));
tests/net/bpf/t_bpf.c
303
RL(bpfd = rump_sys_open("/dev/bpf", O_RDWR));
tests/net/bpf/t_bpf.c
87
RL(bpfd = rump_sys_open("/dev/bpf", O_RDWR));
tests/net/bpf/t_div-by-zero.c
41
fd = rump_sys_open("/dev/bpf", O_RDWR);
tests/net/fdpass/fdpass.c
205
fd = open("foo", O_RDWR|O_CREAT|O_TRUNC, 0666);
tests/net/if_tap/rump_open_tap.c
52
fd = rump_sys_open(argv[1], O_RDWR);
tests/net/net/t_ip_reass.c
171
RL(fd = rump_sys_open("/dev/bpf", O_RDWR));
tests/net/net/t_ip_reass.c
173
fd = open("/dev/bpf0", O_RDWR);
tests/net/net/t_tcp.c
232
if (fl != (O_RDWR|O_NONBLOCK))
tests/net/net/t_tcp.c
233
FAIL("fl 0x%x != 0x%x\n", fl, O_RDWR|O_NONBLOCK);
tests/rump/rumpkern/h_client/h_forkcli.c
27
fd = rump_sys_open("/dev/null", O_CREAT | O_RDWR, 0600);
tests/rump/rumpkern/h_client/h_stresscli.c
62
fd = rump_sys_open("/dev/null", O_RDWR);
tests/rump/rumpkern/t_lwproc.c
266
RL(fd = rump_sys_open("/file", O_RDWR | O_CREAT, 0777));
tests/rump/rumpkern/t_lwproc.c
291
RL(fd = rump_sys_open("/file", O_RDWR, 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
199
tfd = rump_sys_open(TESTPATH1, O_RDWR);
tests/rump/rumpvfs/t_etfs.c
209
tfd = rump_sys_open(TESTPATH2, O_RDWR);
tests/rump/rumpvfs/t_etfs.c
250
tfd = rump_sys_open(TESTPATH1, O_RDWR);
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);
tests/rump/rumpvfs/t_etfs.c
89
tfd = rump_sys_open(TESTPATH2, O_RDWR);
usr.bin/aiomixer/draw.c
58
fd = open(mixer_path, O_RDWR);
usr.bin/aiomixer/main.c
469
if ((aio->fd = open(device, O_RDWR)) < 0)
usr.bin/aiomixer/main.c
567
fd = open(mixer_path, O_RDWR);
usr.bin/cap_mkdb/cap_mkdb.c
137
if ((capdbp = dbopen(capname, O_CREAT | O_TRUNC | O_RDWR,
usr.bin/crunch/crunchide/crunchide.c
240
fd = open(filename, O_RDWR, 0);
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/fdformat/fdformat.c
241
fd = open(filename, O_RDWR);
usr.bin/find/misc.c
154
ttyfd = open(_PATH_TTY, O_RDWR | O_CLOEXEC);
usr.bin/finger/util.c
256
(db = dbopen(NULL, O_RDWR, 0, DB_BTREE, NULL)) == NULL)
usr.bin/flock/flock.c
248
(fd = open(argv[0], O_RDWR|O_CREAT, 0600)) == -1)
usr.bin/gencat/gencat.c
178
if ((ofd = open(catfile, O_RDWR)) < 0) {
usr.bin/gzip/gzip.c
1722
ofd = open(outfile, O_RDWR, 0);
usr.bin/gzip/gzip.c
1774
ttyfd = open(_PATH_TTY, O_RDWR | O_CLOEXEC);
usr.bin/login/common.c
319
if ((fd = open(_PATH_LASTLOG, O_RDWR, 0)) >= 0) {
usr.bin/mail/names.c
299
image = open(tempname, O_RDWR | O_CLOEXEC);
usr.bin/make/filemon/filemon_dev.c
77
for (i = 0; (F->fd = open(_PATH_FILEMON, O_RDWR|O_CLOEXEC)) == -1; i++) {
usr.bin/make/filemon/filemon_ktrace.c
818
if ((flags & O_RDWR) == O_RDWR)
usr.bin/make/filemon/filemon_ktrace.c
847
if ((flags & O_RDWR) == O_RDWR)
usr.bin/make/filemon/filemon_ktrace.c
857
if ((flags & O_RDWR) == O_RDWR)
usr.bin/make/job.c
1380
fd = open(file, O_RDWR | O_CREAT, 0666);
usr.bin/mixerctl/mixerctl.c
382
fd = open(file, O_RDWR);
usr.bin/mixerctl/mixerctl.c
386
fd = open(file, O_RDWR);
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/pmap/main.c
369
n = open("/dev/null", O_RDWR);
usr.bin/rfcomm_sppd/rfcomm_sppd.c
314
if ((master = open(pty, O_RDWR)) == -1)
usr.bin/rump_allserver/rump_allserver.c
434
fd = open(etfs[i].hostpath, O_RDWR | oflags, 0644);
usr.bin/rump_dhcpclient/bpf.c
65
fd = rump_sys_open(_PATH_BPF, O_RDWR | O_NONBLOCK);
usr.bin/rump_dhcpclient/bpf.c
73
fd = rump_sys_open(device, O_RDWR | O_NONBLOCK);
usr.bin/scmdctl/scmdctl.c
217
fd = open(argv[0], O_RDWR, 0);
usr.bin/shlock/shlock.c
140
while ((fd = open(tempname, O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_EXCL, 0644))
usr.bin/shmif_pcapin/shmif_pcapin.c
149
fd = open(argv[1], O_RDWR);
usr.bin/skeyinit/skeyinit.c
68
i = open(_PATH_DEVNULL, O_RDWR);
usr.bin/tcopy/tcopy.c
130
op == COPY ? O_WRONLY : O_RDWR, DEFFILEMODE)) < 0) {
usr.bin/tip/aculib/dn11.c
88
if ((FD = open(DV, O_RDWR)) < 0) {
usr.bin/tip/aculib/v831.c
63
if ((AC = open(acu, O_RDWR)) < 0) {
usr.bin/tip/aculib/v831.c
91
if ((FD = open(DV, O_RDWR)) < 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/tip/hunt.c
75
FD = open(cp, (O_RDWR | (DC ? O_NONBLOCK : 0)));
usr.bin/tsort/tsort.c
245
(db = dbopen(NULL, O_RDWR, 0, DB_HASH, NULL)) == NULL)
usr.bin/unzip/unzip.c
664
if ((fd = open(*path, O_RDWR|O_CREAT|O_TRUNC, mode)) < 0)
usr.bin/usbhidaction/usbhidaction.c
152
fd = open(dev, O_RDWR | O_CLOEXEC);
usr.bin/usbhidctl/usbhid.c
1010
hidfd = open(dev, O_RDWR);
usr.bin/utoppya/utoppya.c
130
if ((toppy_fd = open(devpath, O_RDWR)) < 0)
usr.bin/vacation/vacation.c
294
db = dbopen(path, O_CREAT|O_RDWR | (iflag ? O_TRUNC : 0),
usr.bin/videoctl/videoctl.c
149
video_fd = open(video_dev, wflag ? O_RDWR : O_RDONLY);
usr.bin/vndcompress/vndcompress.c
448
oflags = (O_RDWR | O_CREAT);
usr.bin/vndcompress/vndcompress.c
450
oflags = O_RDWR;
usr.sbin/altq/libaltq/qop.c
1358
if ((fd = open(RED_DEVICE, O_RDWR)) < 0) {
usr.sbin/altq/libaltq/qop.c
1389
if ((fd = open(RIO_DEVICE, O_RDWR)) < 0) {
usr.sbin/altq/libaltq/qop.c
873
if ((fd = open(ALTQ_DEVICE, O_RDWR)) < 0)
usr.sbin/altq/libaltq/qop.c
948
if ((fd = open(ALTQ_DEVICE, O_RDWR)) < 0)
usr.sbin/altq/libaltq/qop_blue.c
205
(blue_fd = open(BLUE_DEVICE, O_RDWR)) < 0 &&
usr.sbin/altq/libaltq/qop_blue.c
206
(blue_fd = open_module(BLUE_DEVICE, O_RDWR)) < 0) {
usr.sbin/altq/libaltq/qop_cbq.c
927
(cbq_fd = open(CBQ_DEVICE, O_RDWR)) < 0 &&
usr.sbin/altq/libaltq/qop_cbq.c
928
(cbq_fd = open_module(CBQ_DEVICE, O_RDWR)) < 0) {
usr.sbin/altq/libaltq/qop_cdnr.c
672
(cdnr_fd = open(CDNR_DEVICE, O_RDWR)) < 0 &&
usr.sbin/altq/libaltq/qop_cdnr.c
673
(cdnr_fd = open_module(CDNR_DEVICE, O_RDWR)) < 0) {
usr.sbin/altq/libaltq/qop_fifoq.c
176
(fifoq_fd = open(FIFOQ_DEVICE, O_RDWR)) < 0 &&
usr.sbin/altq/libaltq/qop_fifoq.c
177
(fifoq_fd = open_module(FIFOQ_DEVICE, O_RDWR)) < 0) {
usr.sbin/altq/libaltq/qop_hfsc.c
996
(hfsc_fd = open(HFSC_DEVICE, O_RDWR)) < 0 &&
usr.sbin/altq/libaltq/qop_hfsc.c
997
(hfsc_fd = open_module(HFSC_DEVICE, O_RDWR)) < 0) {
usr.sbin/altq/libaltq/qop_jobs.c
522
(jobs_fd = open(JOBS_DEVICE, O_RDWR)) < 0 &&
usr.sbin/altq/libaltq/qop_jobs.c
523
(jobs_fd = open_module(JOBS_DEVICE, O_RDWR)) < 0) {
usr.sbin/altq/libaltq/qop_priq.c
355
(priq_fd = open(PRIQ_DEVICE, O_RDWR)) < 0 &&
usr.sbin/altq/libaltq/qop_priq.c
356
(priq_fd = open_module(PRIQ_DEVICE, O_RDWR)) < 0) {
usr.sbin/altq/libaltq/qop_red.c
234
(red_fd = open(RED_DEVICE, O_RDWR)) < 0 &&
usr.sbin/altq/libaltq/qop_red.c
235
(red_fd = open_module(RED_DEVICE, O_RDWR)) < 0) {
usr.sbin/altq/libaltq/qop_rio.c
279
(rio_fd = open(RIO_DEVICE, O_RDWR)) < 0 &&
usr.sbin/altq/libaltq/qop_rio.c
280
(rio_fd = open_module(RIO_DEVICE, O_RDWR)) < 0) {
usr.sbin/altq/libaltq/qop_wfq.c
209
(wfq_fd = open(WFQ_DEVICE, O_RDWR)) < 0 &&
usr.sbin/altq/libaltq/qop_wfq.c
210
(wfq_fd = open_module(WFQ_DEVICE, O_RDWR)) < 0) {
usr.sbin/altq/tbrconfig/tbrconfig.c
115
if ((fd = open(ALTQ_DEVICE, O_RDWR)) < 0)
usr.sbin/apm/apm.c
248
fd = open(_PATH_APM_CTLDEV, O_RDWR);
usr.sbin/apmd/apmd.c
398
if ((ctl_fd = open(fname, O_RDWR)) == -1) {
usr.sbin/autofs/automountd.c
519
autofs_fd = open(AUTOFS_PATH, O_RDWR | O_CLOEXEC);
usr.sbin/autofs/automountd.c
523
autofs_fd = open(AUTOFS_PATH, O_RDWR | O_CLOEXEC);
usr.sbin/autofs/common.c
1179
fd = open(_PATH_DEVNULL, O_RDWR, 0);
usr.sbin/autofs/popen.c
88
nullfd = open(_PATH_DEVNULL, O_RDWR, 0);
usr.sbin/bad144/bad144.c
156
f = opendisk(argv[0], argc == 1 ? O_RDONLY : O_RDWR, diskname,
usr.sbin/bootp/bootpd/bootpd.c
381
n = open("/dev/tty", O_RDWR);
usr.sbin/bootp/bootpgw/bootpgw.c
349
n = open("/dev/tty", O_RDWR);
usr.sbin/bootp/common/hwaddr.c
101
if ((fd=open("/dev/arp", O_RDWR)) < 0) {
usr.sbin/btattach/btattach.c
259
if ((fd = open(argv[0], O_RDWR | O_EXLOCK, 0)) < 0)
usr.sbin/btattach/btattach.c
598
if ((fd = open(tty, O_RDWR | O_NONBLOCK | O_EXLOCK, 0)) < 0)
usr.sbin/btpand/btpand.c
267
fd = open(_PATH_DEVNULL, O_RDWR, 0);
usr.sbin/btpand/tap.c
57
fd = open(interface_name, O_RDWR);
usr.sbin/cpuctl/cpuctl.c
107
if ((fd = open(_PATH_CPUCTL, O_RDWR)) < 0)
usr.sbin/crash/crash.c
375
flags = O_RDWR;
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/edquota/edquota.c
361
fd = open(qfpathname, O_RDWR|O_CREAT, 0640);
usr.sbin/eeprom/eehandlers.c
537
fd = open(path_eeprom, wr == IO_WRITE ? O_RDWR : O_RDONLY, 0640);
usr.sbin/eeprom/ofhandlers.c
99
if ((fd = open(path_openfirm, arg ? O_RDWR : O_RDONLY, 0640)) < 0)
usr.sbin/eeprom/ophandlers.c
105
if ((fd = open(path_openprom, arg ? O_RDWR : O_RDONLY, 0640)) < 0)
usr.sbin/eeprom/prephandlers.c
95
if ((fd = open(path_prepnvram, arg ? O_RDWR : O_RDONLY, 0640)) < 0)
usr.sbin/emcfanctl/emcfanctl.c
247
fd = open(argv[0], O_RDWR, 0);
usr.sbin/envstat/envstat.c
308
if ((sysmonfd = prog_open(_PATH_SYSMON, O_RDWR)) == -1)
usr.sbin/envstat/envstat.c
385
if ((sysmonfd = prog_open(_PATH_SYSMON, O_RDWR)) == -1) {
usr.sbin/flashctl/flashctl.c
73
fd = open(device, O_RDWR, 0);
usr.sbin/fssconfig/fssconfig.c
183
fd = opendisk1(argv[0], O_RDWR, full, sizeof(full), 0, prog_open);
usr.sbin/fssconfig/fssconfig.c
216
fd = opendisk1(argv[0], O_RDWR, full, sizeof(full), 0, prog_open);
usr.sbin/fwctl/fwcontrol.c
639
*fd = open(_devname, O_RDWR);
usr.sbin/gpioctl/gpioctl.c
121
if ((devfd = open(dev, O_RDWR)) == -1)
usr.sbin/grfconfig/grfconfig.c
117
if ((grffd = open(grfdevice, O_RDWR)) == -1)
usr.sbin/hdaudioctl/hdaudioctl.c
344
fd = open(devpath, O_RDWR);
usr.sbin/i2cscan/i2cscan.c
196
fd = open(dev, O_RDWR);
usr.sbin/installboot/installboot.c
279
mode = O_RDWR;
usr.sbin/iopctl/iopctl.c
130
if ((fd = open(dv, O_RDWR)) < 0)
usr.sbin/irdaattach/irdaattach.c
110
if ((fd = open(dev, O_RDWR | O_NDELAY)) < 0)
usr.sbin/isibootd/isibootd.c
378
fd = open(_PATH_BPF, O_RDWR, 0);
usr.sbin/isibootd/isibootd.c
383
fd = open(devbpf, O_RDWR, 0);
usr.sbin/kgmon/kgmon.c
185
if (accessmode == O_RDWR)
usr.sbin/kgmon/kgmon.c
217
return (O_RDWR);
usr.sbin/kgmon/kgmon.c
222
openmode = (bflag || hflag || pflag || rflag) ? O_RDWR : O_RDONLY;
usr.sbin/kgmon/kgmon.c
225
if (openmode == O_RDWR) {
usr.sbin/kvm_mkdb/kvm_mkdb.c
163
db = dbopen(dbtemp, O_CREAT | O_EXLOCK | O_TRUNC | O_RDWR,
usr.sbin/lpr/lpd/printjob.c
1444
pfd = open(LP, RW ? O_RDWR : O_WRONLY);
usr.sbin/lpr/lpr/lpr.c
391
if ((tfd = open(tfname, O_RDWR)) >= 0) {
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/msdos.c
183
fsopts->fd = open(image, O_RDWR);
usr.sbin/makefs/v7fs.c
115
if ((fd = open(image, O_RDWR | O_CREAT | O_TRUNC, 0666)) == -1) {
usr.sbin/mdconfig/mdconfig.c
83
fd = opendisk(argv[1], O_RDWR, fname, sizeof(fname), 0);
usr.sbin/mdsetimage/mdsetimage.c
129
if ((kfd = open(kfile, O_RDWR, 0)) == -1)
usr.sbin/memswitch/memswitch.c
388
sramfd = open(_PATH_DEVSRAM, O_RDWR);
usr.sbin/memswitch/memswitch.c
464
sramfd = open(_PATH_DEVSRAM, O_RDWR);
usr.sbin/mlxctl/main.c
116
if ((mlxfd = open(dv, O_RDWR)) < 0)
usr.sbin/mmcformat/uscsi_subr.c
244
disc->fhandle = open(disc->dev_name, O_RDWR | O_NONBLOCK, 0);
usr.sbin/mmcformat/uscsi_subr.c
378
disc->devhandle = cam_open_device(disc->dev_name, O_RDWR);
usr.sbin/mmcformat/uscsi_subr.c
381
disc->fhandle = open(disc->dev_name, O_RDWR | O_NONBLOCK, 0);
usr.sbin/mmcformat/uscsi_subr.c
82
disc->fhandle = open(disc->dev_name, O_RDWR, 0); /* no create */
usr.sbin/mopd/common/loop-bsd.c
55
O_RDWR,
usr.sbin/mopd/common/loop-bsd.c
68
O_RDWR,
usr.sbin/mopd/common/loop-linux2.c
50
O_RDWR,
usr.sbin/mopd/common/loop-linux2.c
63
O_RDWR,
usr.sbin/moused/moused.c
776
if ((rodent.mfd = open(rodent.portname, O_RDWR | O_NONBLOCK, 0))
usr.sbin/mscdlabel/main.c
137
fd = opendisk(disk, O_RDWR, fullname, MAXPATHLEN, 0);
usr.sbin/ndbootd/config/ndbootd-bpf.c
118
if ((network_fd = open(dev_bpf_filename, O_RDWR)) < 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/nfsd/nfsd.c
314
(fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
usr.sbin/nfsd/nfsd.c
366
if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
usr.sbin/paxctl/paxctl.c
203
fd = open(name, list ? O_RDONLY: O_RDWR, 0);
usr.sbin/pf/pfs/pfs.c
538
fd = open(pf_device, O_RDWR);
usr.sbin/puffs/mount_9p/ninepuffs.c
130
s = open(path, O_RDWR, 0);
usr.sbin/puffs/mount_psshfs/psshfs.c
458
dnfd = open(_PATH_DEVNULL, O_RDWR);
usr.sbin/puffs/rump_nqmfs/rump_nqmfs.c
113
fd = open(mntfile, rdonly ? O_RDONLY: O_RDWR);
usr.sbin/pwd_mkdb/pwd_mkdb.c
351
flags = O_RDWR | O_CREAT | O_EXCL;
usr.sbin/pwd_mkdb/pwd_mkdb.c
353
flags = O_RDWR;
usr.sbin/rarpd/rarpd.c
281
fd = open(device, O_RDWR);
usr.sbin/rbootd/bpf.c
97
BpfFd = open(_PATH_BPF, O_RDWR);
usr.sbin/rpc.lockd/lockd_lock.c
512
fl->fd = fhopen(fl->filehandle.fhdata, fl->filehandle.fhsize, O_RDWR);
usr.sbin/rpc.statd/statd.c
496
db = dbopen(filename, O_RDWR|O_CREAT|O_NDELAY|O_EXLOCK, 0644, DB_HASH,
usr.sbin/sa/pdb.c
183
saved_pacct_db = dbopen(_PATH_SAVACCT, O_RDWR|O_CREAT|O_TRUNC, 0644,
usr.sbin/sa/pdb.c
246
output_pacct_db = dbopen(NULL, O_RDWR, 0, DB_BTREE, &bti);
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/screenblank/screenblank.c
305
if ((fd = open(path, O_RDWR, 0666)) == -1) {
usr.sbin/screenblank/screenblank.c
355
if ((fd = open(dsp->ds_path, O_RDWR, 0)) == -1) {
usr.sbin/screenblank/screenblank.c
383
if ((fd = open(dsp->ds_path, O_RDWR, 0)) == -1) {
usr.sbin/services_mkdb/output_db.c
74
db = dbopen(tname, O_RDWR | O_CREAT | O_EXCL,
usr.sbin/services_mkdb/uniq.c
76
if ((db = dbopen(NULL, O_RDWR, 0, DB_HASH, &hinfo)) == NULL)
usr.sbin/sesd/srcs/chpmon.c
72
fd = open(v[dev], O_RDWR);
usr.sbin/sesd/srcs/inienc.c
50
fd = open(*v, O_RDWR);
usr.sbin/sesd/srcs/sesd.c
119
fd = open(v[dev], O_RDWR);
usr.sbin/sesd/srcs/sesd.c
94
fd = open(v[dev], O_RDWR);
usr.sbin/sesd/srcs/setencstat.c
55
fd = open(v[1], O_RDWR);
usr.sbin/sesd/srcs/setobjstat.c
59
fd = open(v[1], O_RDWR);
usr.sbin/sliplogin/sliplogin.c
257
fd = open(ttyname(0), O_RDWR, 0);
usr.sbin/sliplogin/sliplogin.c
264
if ((fd = open(argv[2], O_RDWR)) == -1) {
usr.sbin/srtconfig/srtconfig.c
155
open_dev(O_RDWR);
usr.sbin/srtconfig/srtconfig.c
169
open_dev(O_RDWR);
usr.sbin/srtconfig/srtconfig.c
257
open_dev(O_RDWR);
usr.sbin/srtconfig/srtconfig.c
273
open_dev(O_RDWR);
usr.sbin/sti/sti.c
176
if ((fd = open(ttydev, O_RDWR)) == -1)
usr.sbin/sunlabel/sunlabel.c
233
if ((diskfd = open(s, O_RDWR)) == -1 ||
usr.sbin/sunlabel/sunlabel.c
234
(diskfd = open(s, O_RDWR | O_NONBLOCK)) == -1) {
usr.sbin/sysinst/arch/hpcarm/md.c
203
fd = open(adevname, O_RDWR);
usr.sbin/sysinst/arch/zaurus/md.c
177
fd = open(adevname, O_RDWR);
usr.sbin/sysinst/gpt.c
1459
fd = opendisk(disk, O_RDWR, diskpath, sizeof(diskpath), 0);
usr.sbin/sysinst/gpt.c
1575
fd = opendisk(arg->disk, O_RDWR, diskpath, sizeof(diskpath), 0);
usr.sbin/sysinst/mbr.c
2650
*fd = opendisk(disk, O_RDWR, diskpath,
usr.sbin/sysinst/mbr.c
2699
fd = opendisk(arg->disk, O_RDWR, diskpath, sizeof(diskpath), 0);
usr.sbin/sysinst/mbr.c
3009
fd = opendisk(disk, O_RDWR, diskpath, sizeof(diskpath), 0);
usr.sbin/sysinst/mbr.c
686
fd = opendisk(disk, secsize == 512 ? O_WRONLY : O_RDWR,
usr.sbin/sysinst/run.c
453
(void)open("/dev/null", O_RDWR, 0);
usr.sbin/sysinst/target.c
564
fd = opendisk(disk, O_RDWR, diskpath, sizeof(diskpath), 0);
usr.sbin/sysinst/util.c
1219
fd = open(_PATH_RANDOM, O_RDWR, 0);
usr.sbin/syslogd/syslogd.c
4226
if ((nulldesc = open(_PATH_DEVNULL, O_RDWR)) == -1) {
usr.sbin/tpctl/data.c
278
if ((fd = open(tempfile, O_RDWR|O_CREAT|O_EXCL, 0644)) < 0) {
usr.sbin/tpctl/main.c
132
if ((tpfd = open(dev_name, O_RDWR)) < 0)
usr.sbin/tpctl/main.c
265
if ((fbfd = open(dev, O_RDWR)) < 0)
usr.sbin/tprof/tprof.c
565
devfd = open(_PATH_TPROF, O_RDWR);
usr.sbin/umcpmioctl/umcpmioctl.c
145
fd = open(argv[0], O_RDWR, 0);
usr.sbin/vnconfig/vnconfig.c
294
fd = opendisk(dev, O_RDWR, rdev, sizeof(rdev), 0);
usr.sbin/vnconfig/vnconfig.c
353
ffd = open(file, readonly ? O_RDONLY : O_RDWR);
usr.sbin/wakeonlan/wakeonlan.c
197
if ((bpf = open(_PATH_BPF, O_RDWR)) == -1)
usr.sbin/wsconscfg/wsconscfg.c
126
if ((wsfd = open(wsdev, get ? O_RDONLY : O_RDWR)) == -1)
usr.sbin/wsfontload/wsfontload.c
203
wsfd = open(wsdev, listfonts ? O_RDONLY : O_RDWR, 0);
usr.sbin/wsmoused/wsmoused.c
238
O_RDWR | O_NONBLOCK, 0);
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);
usr.sbin/ypserv/common/ypdb.c
125
if ((db = _ypdb_dbopen(file, O_RDWR, 0644)) == NULL)