Symbol: open
usr/src/boot/common/boot.c
311
if ((fd = open(lbuf, O_RDONLY)) < 0)
usr/src/boot/common/commands.c
138
if ((hfd = open(buf, O_RDONLY)) < 0) {
usr/src/boot/common/gfx_fb.c
2060
fd = open(path, O_RDONLY);
usr/src/boot/common/gfx_fb.c
2156
fd = open(fonts, O_RDONLY);
usr/src/boot/common/gfx_fb.c
2217
fd = open(name, O_RDONLY);
usr/src/boot/common/interp.c
205
if (((fd = open(filename, O_RDONLY)) == -1)) {
usr/src/boot/common/interp_forth.c
325
fd = open(rc, O_RDONLY);
usr/src/boot/common/load_elf.c
101
if ((ef->fd = open(filename, O_RDONLY)) == -1)
usr/src/boot/common/load_elf_obj.c
101
if ((ef.fd = open(filename, O_RDONLY)) == -1)
usr/src/boot/common/ls.c
196
fd = open(path, O_RDONLY);
usr/src/boot/common/module.c
1276
(fd = open(path, O_RDONLY)) < 0) {
usr/src/boot/common/module.c
661
if ((fd = open(name, O_RDONLY)) < 0) {
usr/src/boot/common/multiboot2.c
155
if ((fd = open(filename, O_RDONLY)) == -1)
usr/src/boot/common/vdisk.c
137
vd->vdisk_fd = open(vd->vdisk_path, O_RDONLY);
usr/src/boot/efi/loader/main.c
1315
if ((fd = open(name, O_RDONLY)) < 0) {
usr/src/boot/i386/gptzfsboot/zfsboot.c
289
fd = open(PATH_CONFIG, O_RDONLY);
usr/src/boot/i386/gptzfsboot/zfsboot.c
291
fd = open(PATH_DOTCONFIG, O_RDONLY);
usr/src/boot/i386/gptzfsboot/zfsboot.c
382
if ((fd = open(kname, O_RDONLY)) == -1) {
usr/src/boot/i386/gptzfsboot/zfsboot.c
542
fd = open(arg, O_RDONLY);
usr/src/boot/i386/gptzfsboot/zfsboot.c
742
pa.fd = open(devname, O_RDONLY);
usr/src/boot/i386/gptzfsboot/zfsboot.c
802
pa.fd = open(devname, O_RDONLY);
usr/src/boot/i386/libi386/linux.c
111
if ((fd = open(filename, O_RDONLY)) == -1)
usr/src/boot/i386/libi386/multiboot.c
115
if ((fd = open(filename, O_RDONLY)) == -1)
usr/src/boot/i386/loader/chain.c
60
fd = open(argv[1], O_RDONLY);
usr/src/boot/libsa/gzipfs.c
189
rawfd = open(fname, O_RDONLY | F_GZIP);
usr/src/boot/libsa/gzipfs.c
196
rawfd = open(zfname, O_RDONLY);
usr/src/boot/libsa/pager.c
139
if ((fd = open(fname, O_RDONLY)) == -1) {
usr/src/boot/libsa/stand.h
290
extern int open(const char *, int);
usr/src/boot/libsa/stat.c
43
fd = open(str, O_RDONLY);
usr/src/boot/libsa/zfs/zfs.c
1418
pa.fd = open(devname, O_RDWR);
usr/src/boot/libsa/zfs/zfs.c
657
pa.fd = open(devname, O_RDWR);
usr/src/boot/sys/sys/fcntl.h
316
int open(const char *, int, ...);
usr/src/cmd/abi/appcert/static_prof/static_prof.c
322
if ((c->obj->fd = open(c->obj->ename, mode)) < 0) {
usr/src/cmd/acct/accton.c
83
if ((fd = open(admfile, O_RDONLY|O_CREAT, 0644)) == ERR) {
usr/src/cmd/acpi/acpidump/osillumostbl.c
1013
if ((fd = open("/dev/xsvc", O_RDONLY)) < 0)
usr/src/cmd/acpihpd/acpihpd.c
153
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/acpihpd/acpihpd.c
154
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/acpihpd/acpihpd.c
161
if ((s_pid_fd = open(ACPIHPD_PID_FILE, O_RDWR | O_CREAT, 0644)) < 0) {
usr/src/cmd/addbadsec/addbadsec.c
163
if ((devfd = open(devname, O_RDWR)) == -1) {
usr/src/cmd/addbadsec/addbadsec.c
240
if ((alts_fd = open(alts_name, O_RDWR)) == -1) {
usr/src/cmd/ahciem/ahciem.c
193
if ((fd = open(fullpath, O_RDWR)) < 0) {
usr/src/cmd/allocate/allocate3.c
665
(lockfd = open(lockfile, O_RDWR | O_CREAT, 0600)) == -1) {
usr/src/cmd/allocate/allocate3.c
803
if ((fp = open(buf, O_RDONLY)) == -1) {
usr/src/cmd/allocate/dminfo.c
253
if ((des = open(filename, O_RDWR)) < 0) {
usr/src/cmd/allocate/mkdevalloc.c
1151
if ((fd = open(path, O_RDONLY | O_NONBLOCK)) < 0)
usr/src/cmd/amdzen/udf.c
127
if ((fd = open(device, O_RDONLY)) < 0) {
usr/src/cmd/amdzen/usmn.c
129
if ((fd = open(device, do_write ? O_RDWR : O_RDONLY)) < 0) {
usr/src/cmd/amt/amt.c
715
if ((d = open(path, O_RDONLY)) < 0) {
usr/src/cmd/audio/audioconvert/file.cc
125
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/cmd/audio/audioconvert/file.cc
259
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC,
usr/src/cmd/audio/audioctl/audioctl.c
1043
if ((fd = open(fname, mode, 0666)) < 0) {
usr/src/cmd/audio/audioctl/audioctl.c
1186
if ((fd = open(link, O_RDWR)) < 0) {
usr/src/cmd/audio/audioctl/audioctl.c
264
if ((fd = open(d->mixer.devnode, O_RDWR)) < 0) {
usr/src/cmd/audio/audioctl/audioctl.c
319
if ((fd = open("/dev/mixer", O_RDWR)) < 0) {
usr/src/cmd/audio/audioplay/audioplay.c
1000
return (open(fname, flags, mode));
usr/src/cmd/audio/audioplay/audioplay.c
201
Audio_fd = open(Audio_dev, O_WRONLY | O_NONBLOCK);
usr/src/cmd/audio/audioplay/audioplay.c
214
Audio_fd = open(Audio_dev, O_WRONLY);
usr/src/cmd/audio/audioplay/audioplay.c
346
Audio_fd = open(Audio_dev, O_WRONLY | O_NONBLOCK);
usr/src/cmd/audio/audioplay/audioplay.c
359
Audio_ctlfd = open(ctldev, O_RDWR);
usr/src/cmd/audio/audioplay/audioplay.c
366
Audio_fd = open(Audio_dev, O_WRONLY);
usr/src/cmd/audio/audioplay/audioplay.c
942
return (open(fname, flags, mode));
usr/src/cmd/audio/audioplay/audioplay.c
989
return (open(fullpath, flags, mode));
usr/src/cmd/audio/audiorecord/audiorecord.c
373
ofd = open(Ofile,
usr/src/cmd/audio/audiorecord/audiorecord.c
491
Audio_fd = open(Audio_dev, O_RDONLY | O_NONBLOCK);
usr/src/cmd/audio/audiotest/audiotest.c
386
fd = open(dn, O_WRONLY, 0);
usr/src/cmd/audio/audiotest/audiotest.c
531
if ((mixerfd = open("/dev/mixer", O_RDWR, 0)) == -1) {
usr/src/cmd/audio/utilities/AudioFile.cc
156
desc = open(path, openmode | O_CREAT | O_TRUNC, 0666);
usr/src/cmd/audio/utilities/AudioFile.cc
306
desc = open(GetName(), openmode);
usr/src/cmd/audio/utilities/device_ctl.c
172
cp = &prinfo->open; break;
usr/src/cmd/audio/utilities/filehdr.c
436
fd = open(name, O_RDONLY | O_NONBLOCK);
usr/src/cmd/audio/utilities/zmalloc.c
108
if ((fd = open("/dev/zero", O_RDWR)) < 0) {
usr/src/cmd/auditd/doorway.c
299
if ((fd = open(p->plg_path, O_NONBLOCK | O_RDONLY)) != -1) {
usr/src/cmd/autopush/autopush.c
257
if ((sadfd = open(ADMINDEV, O_RDWR)) < 0) {
usr/src/cmd/autopush/autopush.c
351
if ((sadfd = open(ADMINDEV, O_RDWR)) < 0) {
usr/src/cmd/autopush/autopush.c
415
if ((sadfd = open(USERDEV, O_RDWR)) < 0) {
usr/src/cmd/backup/dump/dumpmain.c
1344
if ((fd = open("/dev/zero", O_RDWR)) < 0) {
usr/src/cmd/backup/dump/dumpmain.c
1458
if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_LARGEFILE,
usr/src/cmd/backup/dump/dumpmain.c
1471
if ((fd = open(filename, working_mode)) < 0) {
usr/src/cmd/backup/dump/dumpmain.c
788
mapfd = open(block, O_RDONLY, 0);
usr/src/cmd/backup/dump/dumptape.c
1783
fi = open(disk, O_RDONLY);
usr/src/cmd/backup/dump/dumptape.c
204
mapfd = open("/dev/zero", O_RDWR);
usr/src/cmd/backup/dump/lftw.c
118
if ((pwdfd = open(".", O_RDONLY)) < 0) {
usr/src/cmd/backup/restore/dirs.c
505
if ((fd = open(name, O_RDONLY | O_LARGEFILE)) == -1)
usr/src/cmd/backup/restore/main.c
141
if ((savepwd = open(".", O_RDONLY)) < 0) {
usr/src/cmd/backup/restore/main.c
567
fd = open(name, O_CREAT|O_EXCL|O_RDWR, 0600);
usr/src/cmd/backup/restore/symtab.c
692
if ((fd = open(filename, O_RDONLY|O_LARGEFILE)) < 0) {
usr/src/cmd/backup/restore/tape.c
194
mt = open(archivefile, O_RDONLY|O_LARGEFILE);
usr/src/cmd/backup/restore/tape.c
2084
if ((fd = open(magtape, O_RDONLY|O_LARGEFILE,
usr/src/cmd/backup/restore/tape.c
209
else if ((mt = open(magtape, O_RDONLY|O_LARGEFILE)) < 0) {
usr/src/cmd/backup/restore/tape.c
2101
(mt = open(magtape, O_RDONLY|O_LARGEFILE)) == -1)) {
usr/src/cmd/backup/restore/tape.c
557
(mt = open(magtape, O_RDONLY|O_LARGEFILE)) == -1)) {
usr/src/cmd/bart/create.c
471
fd = open(fname, O_RDONLY|O_LARGEFILE);
usr/src/cmd/bhyve/amd64/ps2kbd.c
457
fd = open(path, O_RDONLY);
usr/src/cmd/bhyve/common/audio.c
100
aud->fd = open(aud->dev_name, aud->dir ? O_WRONLY : O_RDONLY, 0);
usr/src/cmd/bhyve/common/block_if.c
637
fd = open(path, (ro ? O_RDONLY : O_RDWR) | extra);
usr/src/cmd/bhyve/common/block_if.c
640
fd = open(path, O_RDONLY | extra);
usr/src/cmd/bhyve/common/bootrom.c
224
fd = open(romfile, O_RDONLY);
usr/src/cmd/bhyve/common/bootrom.c
242
varfd = open(varfile, O_RDWR);
usr/src/cmd/bhyve/common/net_backends.c
111
be->fd = open(tbuf, O_RDWR);
usr/src/cmd/bhyve/common/pci_passthru.c
173
if ((pptfd = open(path, O_RDWR)) < 0) {
usr/src/cmd/bhyve/common/pci_passthru.c
727
const int fd = open(romfile, O_RDONLY);
usr/src/cmd/bhyve/common/pci_virtio_9p.c
327
rootfd = open(value, O_DIRECTORY);
usr/src/cmd/bhyve/common/pci_virtio_console.c
356
fd = open(dirname(pathcopy), O_RDONLY | O_DIRECTORY);
usr/src/cmd/bhyve/common/pci_virtio_console.c
608
pci_vtcon_open_port(struct pci_vtcon_port *port, bool open)
usr/src/cmd/bhyve/common/pci_virtio_console.c
619
event.value = (int)open;
usr/src/cmd/bhyve/common/pci_virtio_input.c
678
sc->vsc_fd = open(sc->vsc_evdev, O_RDWR | O_NONBLOCK);
usr/src/cmd/bhyve/common/pci_virtio_rnd.c
170
fd = open("/dev/random", O_RDONLY | O_NONBLOCK);
usr/src/cmd/bhyve/common/pci_virtio_scsi_ctl.c
155
tgt->vst_fd = open(devname, O_RDWR);
usr/src/cmd/bhyve/common/pci_virtio_scsi_uscsi.c
136
tgt->vst_fd = open(path, O_RDWR);
usr/src/cmd/bhyve/common/pci_virtio_viona.c
722
sc->vsc_vnafd = open("/dev/viona", O_RDWR | O_EXCL);
usr/src/cmd/bhyve/common/qemu_fwcfg.c
615
fd = open(opt_ptr, O_RDONLY);
usr/src/cmd/bhyve/common/tpm_emul_passthru.c
55
tpm->fd = open(path, O_RDWR);
usr/src/cmd/bhyve/common/uart_backend.c
406
fd = open(path, O_RDWR | O_NONBLOCK);
usr/src/cmd/bhyve/test/tests/mevent/vnode_zvol.c
196
if ((fd = open(backend, O_RDWR)) == -1) {
usr/src/cmd/biosdev/biosdev.c
519
fd = open(diskpath, O_RDONLY);
usr/src/cmd/bnu/callers.c
288
(void) close(nullfd = open("/", O_RDONLY));
usr/src/cmd/bnu/callers.c
300
dcf = open(dcname, (O_RDWR | O_NDELAY) );
usr/src/cmd/bnu/callers.c
303
dcf = open(dcname, O_RDWR );
usr/src/cmd/bnu/callers.c
418
if ((ndcf = open(saved_dcname, saved_mode)) < 0) {
usr/src/cmd/bnu/callers.c
735
dcr = open(dcname, O_WRONLY|O_NDELAY);
usr/src/cmd/bnu/callers.c
756
(void) close(nullfd = open("/", O_RDONLY));
usr/src/cmd/bnu/callers.c
768
dcr2 = open(dcname,O_RDWR);
usr/src/cmd/bnu/callers.c
850
if ((dnf = open(dnname, O_WRONLY)) < 0) {
usr/src/cmd/bnu/callers.c
857
(void) close(nullfd = open("/dev/null", O_RDONLY));/* partial open hack */
usr/src/cmd/bnu/callers.c
886
dcf = open(dcname, O_RDWR);
usr/src/cmd/bnu/callers.c
924
(void) close(nullfd = open("/", O_RDONLY)); /* partial open hack */
usr/src/cmd/bnu/callers.c
937
if ((dnf = open(dnname, O_WRONLY)) < 0 ) {
usr/src/cmd/bnu/callers.c
948
if ( (dcf = open(dcname, O_RDWR | O_NDELAY)) < 0 ) {
usr/src/cmd/bnu/callers.c
974
(void) close(nullfd = open("/", O_RDONLY)); /* partial open hack */
usr/src/cmd/bnu/callers.c
975
ret = open(dcname, O_RDWR); /* wait for carrier */
usr/src/cmd/bnu/conn.c
1226
fd = open (FASTTIMER, 0);
usr/src/cmd/bnu/cpmv.c
52
if ((fd1 = open(f1, O_RDONLY)) == -1)
usr/src/cmd/bnu/cpmv.c
74
if ((fd2 = open(temp_p, O_CREAT | O_TRUNC | O_WRONLY,
usr/src/cmd/bnu/ct.c
661
if ((fd = open(WTMPX_FILE, O_WRONLY | O_APPEND)) != -1) {
usr/src/cmd/bnu/ct.c
719
if ((fd = open(WTMPX_FILE, O_WRONLY | O_APPEND)) != -1) {
usr/src/cmd/bnu/cu.c
1317
if ( append && ((file=open(filename,O_WRONLY)) >= 0) )
usr/src/cmd/bnu/dkdial.c
115
if ((fd = open(dial_dev, O_RDWR)) < 0) {
usr/src/cmd/bnu/in.uucpd.c
129
if ((s = open("/dev/tty", 2)) >= 0) {
usr/src/cmd/bnu/in.uucpd.c
405
wtmp = open("/usr/adm/wtmp", O_WRONLY|O_APPEND);
usr/src/cmd/bnu/in.uucpd.c
486
wtmp = open("/usr/adm/wtmp", O_WRONLY|O_APPEND);
usr/src/cmd/bnu/logent.c
103
_Sf = open(SYSLOG, 1);
usr/src/cmd/bnu/logent.c
136
fd = open(CMDLOG, O_WRONLY | O_APPEND);
usr/src/cmd/bnu/perfstat.c
1015
fd = open(logname, O_WRONLY | O_APPEND);
usr/src/cmd/bnu/security.c
151
LogFile = open(LogName, O_WRONLY | O_APPEND);
usr/src/cmd/bnu/shio.c
67
if (open(fi, 0) != 0)
usr/src/cmd/bnu/ulockf.c
116
fd = open(name, O_RDONLY);
usr/src/cmd/bnu/uustat.c
1022
fd = open(f, O_RDONLY);
usr/src/cmd/bnu/uuxqt.c
791
(void) open("/dev/null", 2);
usr/src/cmd/bnu/uuxqt.c
792
(void) open("/dev/null", 2);
usr/src/cmd/bnu/uuxqt.c
793
(void) open("/dev/null", 2);
usr/src/cmd/bnu/xqt.c
108
(void) open("/dev/null", 2);
usr/src/cmd/bnu/xqt.c
109
(void) open("/dev/null", 2);
usr/src/cmd/bnu/xqt.c
110
(void) open("/dev/null", 2);
usr/src/cmd/bnu/xqt.c
69
(void) open("/dev/null", 0);
usr/src/cmd/bnu/xqt.c
70
(void) open("/dev/null", 1);
usr/src/cmd/bnu/xqt.c
71
(void) open("/dev/null", 1);
usr/src/cmd/boot/bootadm/bootadm.c
1687
bam_lock_fd = open(BAM_LOCK_FILE, O_CREAT|O_RDWR, LOCK_FILE_PERMS);
usr/src/cmd/boot/bootadm/bootadm.c
2024
if ((cf->out.fdfile = open(cf->path, O_WRONLY | O_CREAT, 0644))
usr/src/cmd/boot/bootadm/bootadm.c
2209
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/cmd/boot/bootadm/bootadm.c
2866
fd = open(path, O_RDONLY);
usr/src/cmd/boot/bootadm/bootadm.c
3075
fd = open(path, O_RDWR|O_CREAT|O_TRUNC, FILE_STAT_MODE);
usr/src/cmd/boot/bootadm/bootadm.c
3531
fd = open(archive, O_RDWR);
usr/src/cmd/boot/bootadm/bootadm.c
3581
newfd = open(tempname, O_RDONLY);
usr/src/cmd/boot/bootadm/bootadm.c
4217
fd = open(testfile, O_RDWR|O_CREAT|O_EXCL, 0644);
usr/src/cmd/boot/bootadm/bootadm.c
5582
fd = open(wholedisk, O_RDONLY);
usr/src/cmd/boot/bootadm/bootadm.c
6880
fd = open(s0path, O_NONBLOCK|O_RDONLY);
usr/src/cmd/boot/bootadm/bootadm.c
6992
fd = open(UFS_SIGNATURE_LIST".tmp",
usr/src/cmd/boot/bootadm/bootadm.c
7561
fd = open(signfile, O_RDWR|O_CREAT|O_TRUNC, 0444);
usr/src/cmd/boot/bootadm/bootadm_digest.c
55
if ((fd = open(filename, O_RDONLY | O_NONBLOCK)) == -1) {
usr/src/cmd/boot/bootadm/bootadm_upgrade.c
139
fd = open(fname, O_RDONLY);
usr/src/cmd/boot/bootadm/bootadm_upgrade.c
144
fd = open(fname, O_RDONLY);
usr/src/cmd/boot/fiocompress/fiocompress.c
134
fd = open(srcfile, O_RDONLY, 0);
usr/src/cmd/boot/fiocompress/fiocompress.c
163
fd = open(dstfile, O_WRONLY | O_CREAT | O_TRUNC,
usr/src/cmd/boot/installboot/i386/installboot.c
1790
fd = open(file, O_RDONLY);
usr/src/cmd/boot/installboot/i386/installboot.c
1972
fd = open(path, O_RDONLY);
usr/src/cmd/boot/installboot/i386/installboot.c
1974
fd = open(path, O_RDWR);
usr/src/cmd/boot/installboot/i386/installboot.c
411
fd = open(file, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
usr/src/cmd/boot/installboot/i386/installboot.c
590
fd = open(plist->pl_src_name, O_RDONLY);
usr/src/cmd/boot/installboot/sparc/installboot.c
100
fd = open(file, O_RDONLY);
usr/src/cmd/boot/installboot/sparc/installboot.c
456
device->fd = open(device->path, O_RDWR);
usr/src/cmd/boot/installgrub/installgrub.c
1090
fd = open(path, O_RDONLY);
usr/src/cmd/boot/installgrub/installgrub.c
1112
fd = open(path, O_RDONLY);
usr/src/cmd/boot/installgrub/installgrub.c
1540
device->part_fd = open(raw, O_RDONLY);
usr/src/cmd/boot/installgrub/installgrub.c
1542
device->part_fd = open(raw, O_RDWR);
usr/src/cmd/boot/installgrub/installgrub.c
914
device->disk_fd = open(device->path, O_RDONLY);
usr/src/cmd/boot/installgrub/installgrub.c
916
device->disk_fd = open(device->path, O_RDWR);
usr/src/cmd/boot/symdef/symdef.c
74
fd = open(argv[1], O_RDONLY);
usr/src/cmd/captoinfo/otermcap.c
145
tf = open(E_TERMCAP, 0);
usr/src/cmd/captoinfo/otermcap.c
148
tf = open(cp, 0);
usr/src/cmd/captoinfo/otermcap.c
151
tf = open(E_TERMCAP, 0);
usr/src/cmd/captoinfo/otermcap.c
153
tf = open(E_TERMCAP, 0);
usr/src/cmd/ccidadm/ccidadm.c
108
return (open(buf, O_RDWR));
usr/src/cmd/ccidadm/ccidadm.c
80
return (open(base, O_RDWR));
usr/src/cmd/ccidadm/ccidadm.c
93
if ((fd = open(buf, O_RDWR)) >= 0) {
usr/src/cmd/cdrw/bstream.c
274
fd = open(file, O_RDONLY);
usr/src/cmd/cdrw/bstream.c
396
fd = open(fname, O_RDONLY);
usr/src/cmd/cdrw/bstream.c
477
fd = open(fname, O_RDONLY);
usr/src/cmd/cdrw/bstream.c
557
fd = open(fname, O_RDWR|O_CREAT|O_TRUNC, 0666);
usr/src/cmd/cdrw/bstream.c
586
fd = open(fname, O_RDWR|O_CREAT|O_TRUNC, 0666);
usr/src/cmd/cdrw/bstream.c
613
fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr/src/cmd/cdrw/bstream.c
630
fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr/src/cmd/cdrw/device.c
126
fd = open(devnode, O_RDONLY|O_NDELAY);
usr/src/cmd/cdrw/device.c
457
((fd = open(supplied, O_RDONLY|O_NDELAY)) >= 0)) {
usr/src/cmd/cdrw/device.c
478
if ((fd = open(tmpstr, O_RDONLY|O_NDELAY)) >= 0) {
usr/src/cmd/cdrw/device.c
494
if ((fd = open(tmpstr, O_RDONLY|O_NDELAY)) >= 0) {
usr/src/cmd/cdrw/device.c
518
fd = open(node, O_RDONLY|O_NDELAY);
usr/src/cmd/chmod/chmod.c
1098
parentfd = open(parentd, O_RDONLY);
usr/src/cmd/chmod/chmod.c
966
return (open(".", O_RDONLY));
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
1007
if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDWR)) == -1) {
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
1074
if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDWR)) == -1) {
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
1237
if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDWR)) == -1) {
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
353
if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDWR)) == -1) {
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
486
if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDWR)) == -1) {
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
622
if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDWR)) == -1) {
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
918
if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDWR)) == -1) {
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_ioctl.c
267
if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDONLY)) == -1) {
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_ioctl.c
350
if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDONLY)) == -1) {
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_ioctl.c
464
if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDONLY)) == -1) {
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_ioctl.c
549
if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDONLY)) == -1) {
usr/src/cmd/cmd-crypto/decrypt/decrypt.c
680
if ((infd = open(inputfile, O_RDONLY | O_NONBLOCK)) == -1) {
usr/src/cmd/cmd-crypto/decrypt/decrypt.c
721
if ((outfd = open(outfilename,
usr/src/cmd/cmd-crypto/digest/digest.c
723
if ((fd = open(filename, O_RDONLY | O_NONBLOCK)) ==
usr/src/cmd/cmd-crypto/pktool/common.c
1168
fd = open(filename, O_CREAT | O_EXCL, 0600);
usr/src/cmd/cmd-crypto/pktool/export.c
531
fd = open(filename, O_CREAT | O_RDWR |O_TRUNC, 0600);
usr/src/cmd/cmd-crypto/tpmadm/admin_cmds.c
581
fd = open("/dev/random", O_RDONLY);
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_main.c
138
if ((fd = open(ADDROBJ_MAPPING_DB_FILE, O_CREAT|O_RDONLY,
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_main.c
176
if ((fd = open(IPMGMT_DOOR, O_CREAT|O_RDONLY, IPADM_FILE_MODE)) == -1) {
usr/src/cmd/cmd-inet/sbin/dhcpagent/agent.c
1673
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) != -1) {
usr/src/cmd/cmd-inet/sbin/dhcpagent/class_id.c
164
prom_fd = open("/dev/openprom", O_RDONLY);
usr/src/cmd/cmd-inet/sbin/dhcpagent/script_handler.c
140
if ((n = open("/dev/null", O_RDWR)) < 0)
usr/src/cmd/cmd-inet/sbin/dhcpagent/util.c
714
if ((fd = open(filename, O_RDONLY)) <= 0) {
usr/src/cmd/cmd-inet/usr.bin/finger.c
1396
fd = open(s, O_RDONLY | O_NONBLOCK);
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
1306
sd = open("/dev/arp", O_RDWR);
usr/src/cmd/cmd-inet/usr.bin/pppd/auth.c
1372
if ((fd = open(_PATH_LASTLOG, O_RDWR, 0)) >= 0) {
usr/src/cmd/cmd-inet/usr.bin/pppd/auth.c
642
(*cbcp_protent.open)(unit);
usr/src/cmd/cmd-inet/usr.bin/pppd/auth.c
674
&& protp->open != NULL) {
usr/src/cmd/cmd-inet/usr.bin/pppd/auth.c
675
(*protp->open)(0);
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
1937
errfd = open(_PATH_CONNERRS, O_WRONLY | O_APPEND | O_CREAT, 0600);
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
2076
new_fd = open (_PATH_DEVNULL, O_RDWR);
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
312
if ((i = open(_PATH_DEVNULL, O_RDWR)) >= 0) {
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
676
ttyfd = open(devnam, O_NONBLOCK | O_RDWR);
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
812
if ((i = open(devnam, O_RDWR)) >= 0)
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
906
(*ccp_protent.open)(0);
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
1948
fd = open(*argv, O_WRONLY | O_APPEND | O_CREAT | O_EXCL, 0644);
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
1950
fd = open(*argv, O_WRONLY | O_APPEND);
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/passprompt.c
68
red = open("/etc/ppp/prompt-errors", O_WRONLY | O_APPEND | O_CREAT,
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
103
tstfd = open(devnam, O_NONBLOCK | O_RDWR, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/pppd.h
364
void (*open) __P((int unit));
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
282
(fd = open(devnam, O_RDWR | O_NONBLOCK | O_NOCTTY)) >= 0) {
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
296
ipfd = open(IP_DEV_NAME, O_RDWR | O_NONBLOCK, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
3007
mfd = open("/dev/ptmx", O_NOCTTY | O_RDWR);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
3033
sfd = open(pty_name, O_RDWR);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
3058
udp6fd = open(UDP6_DEV_NAME, O_RDWR | O_NONBLOCK, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
3087
tmpfd = open(drvnam, O_RDWR | O_NONBLOCK, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
359
ip6fd = open(IP6_DEV_NAME, O_RDWR | O_NONBLOCK, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
458
pppfd = open(devnam, O_RDWR | O_NONBLOCK);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
479
pppfd = open(drvnam, O_RDWR | O_NONBLOCK);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
537
udpfd = open(UDP_DEV_NAME, O_RDWR | O_NONBLOCK, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
566
tmpfd = open(drvnam, O_RDWR | O_NONBLOCK, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
871
while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) {
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
878
fd = open(lock_file, O_RDONLY, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
957
fd = open(lock_file, O_WRONLY, 0);
usr/src/cmd/cmd-inet/usr.bin/pppstats/pppstats.c
571
if ((s = open(dev, O_RDONLY)) < 0) {
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1155
if ((f = open(name, O_RDONLY, 0)) < 0) {
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1575
if ((dfd = open(np, O_RDONLY)) == -1)
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1600
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
usr/src/cmd/cmd-inet/usr.bin/rdist/docmd.c
670
if ((fd = open(file, 0)) < 0) {
usr/src/cmd/cmd-inet/usr.bin/rdist/server.c
1454
(void) open("/dev/null", 0);
usr/src/cmd/cmd-inet/usr.bin/rdist/server.c
500
if ((f = open(target, 0)) < 0) {
usr/src/cmd/cmd-inet/usr.bin/rsh.c
340
if (open("/dev/null", O_RDONLY) < 0) {
usr/src/cmd/cmd-inet/usr.bin/ruptime.c
160
f = open(dp->d_name, 0);
usr/src/cmd/cmd-inet/usr.bin/rwho.c
107
f = open(dp->d_name, 0);
usr/src/cmd/cmd-inet/usr.bin/tftp/main.c
502
fd = open(cp, O_RDONLY);
usr/src/cmd/cmd-inet/usr.bin/tftp/main.c
529
fd = open(argv[n], O_RDONLY);
usr/src/cmd/cmd-inet/usr.lib/bridged/door.c
190
fd = open(doorname,
usr/src/cmd/cmd-inet/usr.lib/bridged/events.c
86
if ((control_fd = open(BRIDGE_CTLPATH, O_RDWR | O_NONBLOCK)) == -1) {
usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/ilb_probe.c
742
if ((fd = open("/dev/urandom", O_RDONLY)) == -1)
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
2924
if ((mibfd = open("/dev/ip", O_RDWR)) < 0) {
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/tables.c
768
if ((fd = open("/dev/urandom", O_RDONLY)) == -1) {
usr/src/cmd/cmd-inet/usr.lib/in.ripngd/main.c
152
(void) open("/", 0);
usr/src/cmd/cmd-inet/usr.lib/inetd/contracts.c
57
if ((fd = open(CONTRACT_TEMPLATE_PATH, O_RDWR)) == -1) {
usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c
2896
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/cmd-inet/usr.lib/inetd/tlx.c
82
if ((fd = open("/dev/udp", O_RDONLY)) < 0) {
usr/src/cmd/cmd-inet/usr.lib/inetd/wait.c
193
if ((fd = open(path, O_RDONLY)) >= 0) {
usr/src/cmd/cmd-inet/usr.lib/pppoe/logging.c
304
curlogfd = open(fname, O_WRONLY|O_APPEND|O_CREAT, 0600);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
2097
newtun = open(tunnam, O_RDWR);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
2182
(void) open("/etc/ppp/pppoe-errors", O_WRONLY | O_APPEND |
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
1638
tunfd = open(tunnam, O_RDWR | O_NOCTTY);
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoed.c
90
tunfd = open(tunnam, O_RDWR);
usr/src/cmd/cmd-inet/usr.lib/slpd/slpd.c
145
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/cmd-inet/usr.lib/slpd/slpd.c
146
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2026
if ((nfd = open(newfile, O_WRONLY | O_CREAT | O_TRUNC,
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
737
(void) open("/dev/null", O_RDWR, 0);
usr/src/cmd/cmd-inet/usr.lib/wpad/wpa.c
129
fd = open("/dev/urandom", O_RDONLY);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
2431
if ((*muxid_fd = open(udp_dev_name, O_RDWR)) < 0) {
usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ilbadm.c
224
if ((fd = open(argv[2+shift], O_RDONLY)) == -1)
usr/src/cmd/cmd-inet/usr.sbin/in.comsat.c
164
if ((uf = open(UTMPX_FILE, 0)) < 0) {
usr/src/cmd/cmd-inet/usr.sbin/in.comsat.c
321
if ((fd = open(tty, O_RDWR)) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/in.comsat.c
362
if ((mbox = open(name, O_RDONLY)) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
198
(void) open("/", O_RDONLY, 0);
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
311
if ((fd = open(DEVIP, 0)) < 0)
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
680
if ((fd = open(DEVARP, 0)) < 0)
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
868
if ((fd = open(DEVIP, 0)) < 0)
usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/in.rdisc.c
262
(void) open("/", 0);
usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/in.rdisc.c
266
t = open("/dev/tty", 2);
usr/src/cmd/cmd-inet/usr.sbin/in.rexecd.c
193
int t = open("/dev/tty", 2);
usr/src/cmd/cmd-inet/usr.sbin/in.rlogind.c
1057
if ((p = open("/dev/ptmx", O_RDWR)) == -1)
usr/src/cmd/cmd-inet/usr.sbin/in.rlogind.c
1065
if ((t = open(line, O_RDWR)) == -1)
usr/src/cmd/cmd-inet/usr.sbin/in.rlogind.c
1163
if ((tt = open(line, O_RDWR)) == -1)
usr/src/cmd/cmd-inet/usr.sbin/in.rlogind.c
1357
if ((ptmfd = open("/dev/logindmux", O_RDWR)) == -1)
usr/src/cmd/cmd-inet/usr.sbin/in.rlogind.c
1360
if ((netfd = open("/dev/logindmux", O_RDWR)) == -1)
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1362
ipfd = open(IP_DEV_NAME, O_RDWR);
usr/src/cmd/cmd-inet/usr.sbin/in.routed/trace.c
178
fd = open("/dev/null", O_RDWR);
usr/src/cmd/cmd-inet/usr.sbin/in.routed/trace.c
345
nfd = open(fn, O_CREAT|O_EXCL|O_WRONLY, 0644);
usr/src/cmd/cmd-inet/usr.sbin/in.routed/trace.c
351
nfd = open(fn, O_APPEND|O_WRONLY, 0644);
usr/src/cmd/cmd-inet/usr.sbin/in.rshd.c
480
int t = open("/dev/tty", 2);
usr/src/cmd/cmd-inet/usr.sbin/in.rwhod.c
204
(void) open("/", 0);
usr/src/cmd/cmd-inet/usr.sbin/in.rwhod.c
289
whod = open(path, O_WRONLY | O_CREAT, 0644);
usr/src/cmd/cmd-inet/usr.sbin/in.talkd/announce.c
136
if ((fd = open(full_tty, O_WRONLY|O_NONBLOCK)) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/in.talkd/process.c
197
if ((tfd = open(dev, O_WRONLY|O_NOCTTY)) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c
2759
if ((p = open("/dev/ptmx", O_RDWR | O_NOCTTY)) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c
2769
if ((t = open(subsidname, O_RDWR | O_NOCTTY)) == -1)
usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c
2993
if ((ptmfd = open("/dev/logindmux", O_RDWR)) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c
2996
if ((netfd = open("/dev/logindmux", O_RDWR)) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c
3113
tt = open(line, O_RDWR);
usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c
977
(devrandom = open("/dev/urandom", O_RDONLY)) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/in.tftpd.c
862
fd = open(filename,
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
1014
if ((fd = open(configfile, O_RDONLY)) >= 0)
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
895
fd = open(dstfile, O_WRONLY|O_CREAT|(overwrite ? O_TRUNC : O_EXCL),
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
9707
if ((fd = open(IPQOS_CONF_LOCK_FILE, O_EXCL|O_CREAT|O_RDWR,
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
9757
if ((fd = open(IPQOS_CONF_LOCK_FILE, O_CREAT|O_RDWR,
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ikeadm.c
2593
fd = open(argv[1], O_RDWR | O_CREAT | O_APPEND,
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ikeadm.c
3009
fd = open(argv[0], O_RDONLY);
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ikeadm.c
3075
fd = open(tmpfilepath, O_RDWR | O_CREAT | O_EXCL,
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ikeadm.c
3228
fd = open(argv[0], oflag, omode);
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ikeadm.c
360
doorfd = open(DOORNM, O_RDONLY);
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
1597
if ((fd = open(LOCK_FILE, O_EXCL|O_CREAT|O_RDWR, S_IRUSR|S_IWUSR))
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
1626
if ((fd = open(LOCK_FILE, O_CREAT|O_RDWR,
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
2753
if ((pfd = open(POLICY_CONF_FILE, O_TRUNC|O_RDWR)) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/ndd.c
415
if ((fd = open(cp, O_RDWR)) == -1)
usr/src/cmd/cmd-inet/usr.sbin/ndd.c
613
if ((fd = open(modpath, O_RDWR)) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/route.c
1649
perm_fd = open(perm_file, O_RDWR | O_CREAT, fmode);
usr/src/cmd/cmd-inet/usr.sbin/route.c
1753
perm_fd = open(perm_file, O_RDONLY, 0);
usr/src/cmd/cmd-inet/usr.sbin/route.c
458
s = open("/dev/null", O_WRONLY);
usr/src/cmd/cmd-inet/usr.sbin/route.c
606
sd = open("/dev/ip", O_RDWR);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop.c
294
audio = open(audiodev, O_WRONLY);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_capture.c
653
capfile_out.capfile_curfd = open(name,
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_capture.c
685
capfile_out.capfile_fd[i] = open(name,
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_capture.c
745
capfile_in = open(name, O_RDONLY);
usr/src/cmd/cmd-inet/usr.sbin/sppptun/sppptun.c
240
if ((muxfd = open("/dev/" PPP_TUN_NAME, O_RDWR)) < 0) {
usr/src/cmd/cmd-inet/usr.sbin/sppptun/sppptun.c
347
if ((muxfd = open("/dev/" PPP_TUN_NAME, O_RDWR)) < 0) {
usr/src/cmd/cmd-inet/usr.sbin/sppptun/sppptun.c
394
if ((muxfd = open("/dev/" PPP_TUN_NAME, O_RDWR)) < 0) {
usr/src/cmd/cmd-inet/usr.sbin/syncloop.c
167
dfd = open(dnambuf, O_RDWR);
usr/src/cmd/cmd-inet/usr.sbin/wificonfig/wificonfig.c
1103
fd = open(buf, O_RDWR);
usr/src/cmd/cmd-inet/usr.sbin/wificonfig/wificonfig.c
1150
fd = open(pbuf, O_RDWR);
usr/src/cmd/cmd-inet/usr.sbin/wificonfig/wificonfig.c
4636
fd0 = open(WIFI_LOCKF, O_CREAT|O_WRONLY, 0600);
usr/src/cmd/cmd-inet/usr.sbin/wificonfig/wificonfig.c
795
fd = open(pfile, O_CREAT|O_EXCL|O_RDWR, 0600);
usr/src/cmd/cmd-inet/usr.sbin/wificonfig/wificonfig.c
943
fd = open(temp_file, O_CREAT|O_WRONLY|O_TRUNC, 0600);
usr/src/cmd/connstat/connstat_mib.c
37
fd = open("/dev/arp", O_RDWR);
usr/src/cmd/consadm/consadm.c
346
if ((lckfd = open(CONSADMLOCK, O_CREAT | O_EXCL | O_WRONLY,
usr/src/cmd/consadm/consadm.c
590
if ((fd = open(MSGLOG, O_RDWR)) < 0)
usr/src/cmd/consadm/consadm.c
941
if ((fd = open(devp, O_RDWR | O_NOCTTY | O_NONBLOCK | O_NDELAY)) < 0)
usr/src/cmd/cpio/cpio.c
1104
if ((Archive = open(str, dir)) < 0) {
usr/src/cmd/cpio/cpio.c
1380
if ((mask & OCI) && (Archive = open(IOfil_p, O_RDONLY)) < 0) {
usr/src/cmd/cpio/cpio.c
1386
if ((Archive = open(IOfil_p, O_RDWR)) < 0) {
usr/src/cmd/cpio/cpio.c
1394
if ((Archive = open(IOfil_p, oflag, 0777)) < 0) {
usr/src/cmd/cpio/cpio.c
5100
Gen.g_dirfd = open(dir, O_RDONLY);
usr/src/cmd/cpio/cpio.c
5144
Gen.g_dirfd = open(dir, O_RDONLY);
usr/src/cmd/cpio/cpio.c
8239
return (open(".", O_RDONLY));
usr/src/cmd/cpio/cpio.c
8294
if ((filefd = open(filename, O_RDONLY)) == -1) {
usr/src/cmd/cpio/cpio.c
8929
fd = open(dir, O_RDONLY);
usr/src/cmd/cpio/cpio.c
9339
if ((filefd = open(filename, O_RDONLY)) < 0) {
usr/src/cmd/cpio/cpio.c
9711
return (open(name, oflag, cmode));
usr/src/cmd/cron/at.c
370
if ((fd = open(tfname, O_CREAT|O_EXCL|O_WRONLY, ATMODE)) < 0)
usr/src/cmd/cron/at.c
432
if ((fd = open(name, O_CREAT | O_EXCL, ATMODE)) > 0) {
usr/src/cmd/cron/cron.c
2324
if ((fd = open(at_cmdfile, O_RDONLY)) == -1) {
usr/src/cmd/cron/cron.c
2464
} else if ((fd = open("/dev/null", O_RDONLY)) > 0) {
usr/src/cmd/cron/cron.c
2471
if ((fd = open(rp->outfile, O_WRONLY|O_CREAT|O_EXCL, OUTMODE)) == 1)
usr/src/cmd/cron/cron.c
2472
fd = open("/dev/null", O_WRONLY);
usr/src/cmd/cron/cron.c
2944
if ((c = open(CONSOLE, O_WRONLY)) >= 0) {
usr/src/cmd/cron/cron.c
711
if ((msgfd = open(FIFO, O_RDWR)) < 0) {
usr/src/cmd/cron/funcs.c
162
if ((msgfd = open(FIFO, O_WRONLY|O_NDELAY)) < 0) {
usr/src/cmd/csh/sh.c
1336
open("/dev/null", 0);
usr/src/cmd/csh/sh.c
1348
open("/dev/null", 0);
usr/src/cmd/csh/sh.misc.c
220
open("/dev/null", 0);
usr/src/cmd/csh/sh.sem.c
439
(void) open("/dev/null", 0); /* no need for setfd */
usr/src/cmd/csh/sh.tchar.c
387
fd = open((char *)chbuf, flags, mode);
usr/src/cmd/ctfconvert/ctfconvert.c
343
ifd = open(infile, O_RDONLY);
usr/src/cmd/ctfdump/ctfdump.c
1167
if ((fd = open(out, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0)
usr/src/cmd/ctfdump/ctfdump.c
1262
if ((fd = open(argv[0], O_RDONLY)) < 0)
usr/src/cmd/ctfmerge/ctfmerge.c
258
if ((fd = open(file, O_RDONLY)) < 0) {
usr/src/cmd/ctfmerge/ctfmerge.c
389
if ((ofd = open(g_outfile, O_RDWR)) < 0)
usr/src/cmd/cxgbetool/cxgbetool.c
155
if ((fd = open(iff_name, O_RDWR)) < 0)
usr/src/cmd/cxgbetool/cxgbetool.c
503
fd = open(fname, O_RDONLY);
usr/src/cmd/cxgbetool/cxgbetool.c
610
fd = open(fname, O_CREAT | O_TRUNC | O_EXCL | O_WRONLY,
usr/src/cmd/datadm/datadm.c
1395
if ((fd = open(IBNEX_DEVCTL_DEV, O_RDONLY)) < 0)
usr/src/cmd/dd/dd.c
884
ibf = open(ifile, 0);
usr/src/cmd/dd/dd.c
901
obf = open(ofile, (O_WRONLY | O_CREAT | oflag),
usr/src/cmd/dd/dd.c
905
obf = open(ofile, O_WRONLY | O_CREAT | oflag,
usr/src/cmd/dd/dd.c
921
obf = open(ofile, O_WRONLY | O_CREAT | O_TRUNC | oflag,
usr/src/cmd/devfsadm/audio_link.c
140
if ((fd = open(buf, O_RDWR)) < 0)
usr/src/cmd/devfsadm/devalloc.c
113
else if ((action == DA_OFF) && (open(DEVALLOC, O_RDONLY) == -1))
usr/src/cmd/devfsadm/devalloc.c
87
if ((fd = open(p, O_RDONLY | O_NONBLOCK)) < 0)
usr/src/cmd/devfsadm/devfsadm.c
1274
if ((fd = open(door_file, O_RDWR | O_CREAT, SYNCH_DOOR_PERMS)) == -1) {
usr/src/cmd/devfsadm/devfsadm.c
1308
if ((fd = open(door_file, O_RDWR | O_CREAT, S_IRUSR|S_IWUSR)) == -1) {
usr/src/cmd/devfsadm/devfsadm.c
3897
(void) open("/dev/null", O_RDWR, 0);
usr/src/cmd/devfsadm/devfsadm.c
3935
dev_lock_fd = open(dev_lockfile, O_CREAT|O_RDWR, 0644);
usr/src/cmd/devfsadm/devfsadm.c
4061
daemon_lock_fd = open(daemon_lockfile, O_CREAT|O_RDWR, 0644);
usr/src/cmd/devfsadm/port_link.c
1035
fd = open("/dev/null", O_RDWR);
usr/src/cmd/devinfo/devinfo.c
101
if ((fd = open(device, O_RDONLY)) < 0) {
usr/src/cmd/diff/diff.c
1489
f1 = open(file1, O_RDONLY);
usr/src/cmd/diff/diff.c
1498
f2 = open(file2, O_RDONLY);
usr/src/cmd/diff/diff.c
1934
if ((ifd = (strcmp(fn, "-") ? open(fn, 0) : 0)) < 0) {
usr/src/cmd/dis/dis_target.c
447
if ((tgt->dt_fd = open(file, O_RDONLY)) < 0) {
usr/src/cmd/diskscan/diskscan.c
129
if ((devfd = open(device, O_RDWR)) == -1) {
usr/src/cmd/dispadmin/dispadmin.c
305
if ((fd = open(CONFIGPATH, O_RDONLY, CONFIGPERM)) == -1) {
usr/src/cmd/dispadmin/dispadmin.c
335
if ((fd = open(CONFIGPATH, O_RDWR | O_CREAT, CONFIGPERM)) == -1)
usr/src/cmd/dispadmin/dispadmin.c
377
if ((fd = open(CONFIGPATH, O_RDONLY, CONFIGPERM)) == -1) {
usr/src/cmd/dlmgmtd/dlmgmt_db.c
308
if ((fd = open(filename, oflags, mode)) == -1)
usr/src/cmd/dlmgmtd/dlmgmt_main.c
142
if ((fd = open(doorpath, O_CREAT|O_RDONLY, 0644)) == -1) {
usr/src/cmd/dlutil/dltraninfo.c
385
if ((dltran_outfd = open(outfile, O_RDWR | O_TRUNC | O_CREAT,
usr/src/cmd/drd/drd.c
168
(void) open("/dev/null", O_RDWR);
usr/src/cmd/drd/drd.c
187
if ((drctl_fd = open(DRCTL_DEV, O_RDWR)) == -1) {
usr/src/cmd/dtrace/dtrace.c
304
if ((fd = open(fname, O_RDONLY)) == -1) {
usr/src/cmd/dtrace/dtrace.c
325
if ((fd = open(fname, O_WRONLY | O_TRUNC)) == -1)
usr/src/cmd/dtrace/dtrace.c
386
if ((fd = open(fname, O_RDONLY)) == -1)
usr/src/cmd/dtrace/dtrace.c
430
if ((fd = open(tmpname,
usr/src/cmd/dtrace/test/cmd/baddof/baddof.c
101
new = open("/devices/pseudo/dtrace@0:dtrace", O_RDWR);
usr/src/cmd/dtrace/test/cmd/baddof/baddof.c
196
fd = open("/devices/pseudo/dtrace@0:dtrace", O_RDWR);
usr/src/cmd/dtrace/test/cmd/badioctl/badioctl.c
64
if ((random = open("/dev/random", O_RDONLY)) == -1)
usr/src/cmd/dtrace/test/cmd/badioctl/badioctl.c
89
fd = open("/devices/pseudo/dtrace@0:dtrace", O_RDONLY);
usr/src/cmd/dtrace/test/cmd/jdtrace/JDTrace.java
710
dtrace.open(oflags);
usr/src/cmd/dtrace/test/tst/common/io/tst.fds.c
77
fds[n++] = open(file, O_RDONLY);
usr/src/cmd/dtrace/test/tst/common/io/tst.fds.c
78
fds[n++] = open(file, O_WRONLY);
usr/src/cmd/dtrace/test/tst/common/io/tst.fds.c
79
fds[n++] = open(file, O_RDWR);
usr/src/cmd/dtrace/test/tst/common/io/tst.fds.c
81
fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT | O_DSYNC |
usr/src/cmd/dtrace/test/tst/common/io/tst.fds.c
85
fds[n++] = open(file, O_RDWR);
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestAbort.java
124
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestAbort.java
44
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestAbort.java
72
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestAbort.java
97
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestBean.java
547
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestBean.java
568
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestClose.java
39
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestClose.java
59
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestDrop.java
153
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestEnable.java
117
consumer2.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestEnable.java
138
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestEnable.java
51
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestFunctionLookup.java
50
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestFunctionLookup.java
86
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestGetAggregate.java
177
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestGetAggregate.java
211
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestMaxConsumers.java
65
consumers[i].open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestMaxConsumers.java
72
consumers[i].open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestMaxConsumers.java
81
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestMultiAggPrinta.java
133
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestProbeData.java
101
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestStateMachine.java
179
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestStateMachine.java
416
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestStateMachine.java
598
consumer.open();
usr/src/cmd/dtrace/test/tst/common/java_api/src/TestStopLock.java
46
consumer.open();
usr/src/cmd/dumpadm/dconf.c
135
if ((dcp->dc_dump_fd = open(dpath, O_RDWR)) == -1) {
usr/src/cmd/dumpadm/dconf.c
140
if ((dcp->dc_conf_fd = open(fpath, O_RDWR | O_CREAT, DC_PERM)) == -1) {
usr/src/cmd/dumpadm/dconf.c
144
if ((dcp->dc_conf_fd = open(fpath, O_RDONLY)) == -1) {
usr/src/cmd/dumpadm/minfree.c
47
if ((fd = open(path, oflags, S_IRUSR | S_IWUSR)) >= 0)
usr/src/cmd/ed/ed.c
1825
if ((tfile = open(tfname, O_CREAT|O_EXCL|O_RDWR,
usr/src/cmd/ed/ed.c
2688
if ((io = open(string, rw)) >= 0) {
usr/src/cmd/ed/ed.c
839
if (close(open(file, O_WRONLY)) < 0)
usr/src/cmd/ed/ed.c
878
if ((io = open(file,
usr/src/cmd/eeprom/i386/benv.c
313
if ((bd->fd = open(bd->name, O_RDONLY)) == -1)
usr/src/cmd/eeprom/i386/benv_kvm.c
246
if ((prom_fd = open(promdev, O_RDONLY)) < 0) {
usr/src/cmd/eeprom/sparc/openprom.c
346
if ((prom_fd = open(promdev, oflag)) < 0) {
usr/src/cmd/eject/eject.c
348
if ((fd = open(name, O_RDONLY | O_NDELAY)) < 0) {
usr/src/cmd/eject/eject.c
554
if ((fd = open(name, O_RDONLY|O_NONBLOCK)) < 0) {
usr/src/cmd/eject/eject.c
622
if ((fd = open(name, O_RDONLY)) < 0) {
usr/src/cmd/emul64ioctl/emul64ioctl.c
129
if ((fd = open(admin, O_RDONLY, 0444)) != -1) {
usr/src/cmd/enhance/enhance.c
246
*cntrl = open("/dev/ptmx", O_RDWR);
usr/src/cmd/enhance/enhance.c
299
*cntrl = open(manager_name, O_RDWR);
usr/src/cmd/enhance/enhance.c
365
fd = open(subsid_name, O_RDWR);
usr/src/cmd/fdformat/fdformat.c
1101
if ((mfd = open(raw_device, O_RDWR | O_NDELAY)) < 0) {
usr/src/cmd/fdformat/fdformat.c
1448
if ((bfd = open(bootfile, O_RDONLY)) == -1) {
usr/src/cmd/fdformat/fdformat.c
380
if ((fd = open(real_name, O_NDELAY | O_RDWR | O_EXCL)) == -1) {
usr/src/cmd/fdisk/fdisk.c
1551
if ((mDev = open(io_mboot, O_RDONLY, 0666)) == -1) {
usr/src/cmd/fdisk/fdisk.c
1560
if ((mDev = open(io_mboot, O_RDONLY, 0666)) == -1) {
usr/src/cmd/fdisk/fdisk.c
914
if ((Dev = open(Dfltdev, openmode, 0666)) == -1) {
usr/src/cmd/filesync/action.c
1085
ifd = open(src, O_RDONLY);
usr/src/cmd/filesync/main.c
550
lockfd = open(file_base, O_RDWR);
usr/src/cmd/filesync/recon.c
672
sfd = open(srcname, 0);
usr/src/cmd/filesync/recon.c
676
dfd = open(dstname, 0);
usr/src/cmd/fm/fmd/common/fmd_ckpt.c
151
if ((ckp->ckp_fd = open(ckp->ckp_src, O_RDONLY)) == -1)
usr/src/cmd/fm/fmd/common/fmd_main.c
212
if ((fd = open("/dev/null", O_RDWR)) >= 0) {
usr/src/cmd/fm/fmd/common/fmd_sysevent.c
231
if ((fd = open("/dev/dump", O_RDONLY)) == -1) {
usr/src/cmd/fm/mcdecode/mcdecode.c
176
if ((fd = open(file, O_RDONLY)) < 0) {
usr/src/cmd/fm/mcdecode/mcdecode.c
232
if ((fd = open(device, O_RDONLY)) < 0) {
usr/src/cmd/fm/mcdecode/mcdecode.c
297
if ((fd = open(device, O_RDONLY)) < 0) {
usr/src/cmd/fm/mcdecode/mcdecode.c
316
if ((fd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0) {
usr/src/cmd/fm/modules/common/cpumem-retire/cma_cpu_arch.c
66
if ((fd = open("/dev/bl", O_RDONLY)) < 0)
usr/src/cmd/fm/modules/common/cpumem-retire/cma_main.c
618
int fd = open("/dev/xen/domcaps", O_RDONLY);
usr/src/cmd/fm/modules/common/fabric-xlate/fabric-xlate.c
65
fd = open(XMLTOPOFILE, O_RDWR | O_CREAT | O_EXCL, 0600);
usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c
349
if ((syslog_logfd = open("/dev/conslog", O_WRONLY | O_NOCTTY)) == -1)
usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c
352
if ((syslog_msgfd = open("/dev/sysmsg", O_WRONLY | O_NOCTTY)) == -1)
usr/src/cmd/fm/notify/smtp-notify/common/smtp-notify.c
120
if ((fd = open(template, O_RDONLY)) < 0) {
usr/src/cmd/fm/schemes/mem/mem_read.c
153
if ((fd = open(device, O_RDONLY)) < 0)
usr/src/cmd/fmthard/fmthard.c
222
if ((fd = open(argv[optind], O_RDWR|O_NDELAY)) < 0) {
usr/src/cmd/format/checkdev.c
146
if ((mfd = open(raw_device, O_RDWR | O_NDELAY)) < 0) {
usr/src/cmd/format/menu_fdisk.c
714
if ((fd = open(buf, O_RDONLY)) < 0) {
usr/src/cmd/format/misc.c
421
if ((ttystate.ttyfile = open("/dev/tty",
usr/src/cmd/format/misc.c
482
if ((ttystate.ttyfile = open("/dev/tty",
usr/src/cmd/format/startup.c
1310
return (open(diskname, flags));
usr/src/cmd/fs.d/autofs/auto_subr.c
159
if ((fd = open(map_path, O_RDWR | O_CREAT | O_EXCL,
usr/src/cmd/fs.d/autofs/autod_main.c
929
if ((dfd = open(AUTOFS_DOOR, O_RDWR|O_CREAT|O_TRUNC,
usr/src/cmd/fs.d/autofs/autod_mount.c
417
fd = open(command->console ? "/dev/console" : "/dev/null",
usr/src/cmd/fs.d/fsck.c
475
if (((devfd = open(vref.vfs_fsckdev,
usr/src/cmd/fs.d/fslib.c
395
int fp = open("/", O_RDONLY);
usr/src/cmd/fs.d/hsfs/labelit/labelit.c
155
if ((cdfd = open(argv[c], openopt)) < 0) {
usr/src/cmd/fs.d/nfs/lib/daemon.c
120
if ((fd = open("/dev/null", O_RDWR)) >= 0) {
usr/src/cmd/fs.d/nfs/mountd/mountd.c
179
if ((dfd = open(MOUNTD_DOOR, O_RDWR|O_CREAT|O_TRUNC,
usr/src/cmd/fs.d/nfs/nfs4cbd/nfs4cbd.c
113
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/fs.d/nfs/nfs4cbd/nfs4cbd.c
114
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/fs.d/nfs/nfslog/nfslogd.c
336
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/fs.d/nfs/nfslog/nfslogd.c
337
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/fs.d/nfs/nfslog/nfslogd.c
825
if ((fd = open(PidFile, open_flags, 0600)) < 0) {
usr/src/cmd/fs.d/nfs/nfslog/readbuf.c
163
if ((lbp->fd = open(bufpath, O_RDWR)) < 0) {
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid.c
105
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid.c
106
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid.c
271
if ((dfd = open(NFSMAPID_DOOR, O_RDWR|O_CREAT|O_TRUNC,
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
306
if ((doorfd = open(NFSMAPID_DOOR, O_RDWR)) == -1) {
usr/src/cmd/fs.d/nfs/rquotad/rpc.rquotad.c
205
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/fs.d/nfs/rquotad/rpc.rquotad.c
206
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
823
if ((fd = open(name, O_CREAT | O_WRONLY, S_IWUSR)) == -1) {
usr/src/cmd/fs.d/pcfs/fsck/fsck_main.c
111
if ((*fd = open(openMe, oflag)) < 0) {
usr/src/cmd/fs.d/pcfs/mkfs/mkfs_main.c
1974
} else if ((fd = open(actualdisk, O_RDWR)) < 0) {
usr/src/cmd/fs.d/pcfs/mkfs/mkfs_main.c
2036
} else if ((fd = open(*actualdisk, O_RDWR)) < 0) {
usr/src/cmd/fs.d/pcfs/mkfs/mkfs_main.c
2207
fd = open(actualdisk, O_RDWR);
usr/src/cmd/fs.d/pcfs/mkfs/mkfs_main.c
2337
} else if ((bsfd = open(fn, O_RDONLY)) < 0) {
usr/src/cmd/fs.d/pcfs/mkfs/mkfs_main.c
2402
if (stat(fn, &fi) || (fd = open(fn, O_RDONLY)) < 0) {
usr/src/cmd/fs.d/pcfs/mkfs/mkfs_main.c
886
if ((fd = open(fn, O_RDWR | O_CREAT | O_EXCL, 0666)) < 0) {
usr/src/cmd/fs.d/reparsed/reparsed.c
116
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/fs.d/reparsed/reparsed.c
117
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/fs.d/reparsed/reparsed.c
331
if ((dfd = open(REPARSED_DOOR, O_RDWR|O_CREAT|O_TRUNC,
usr/src/cmd/fs.d/smbclnt/chacl/chacl.c
174
fd = open(file, O_RDONLY, 0);
usr/src/cmd/fs.d/smbclnt/fksmbcl/fksmbcl_main.c
590
lfd = open(lname, oflg, 0644);
usr/src/cmd/fs.d/smbclnt/fksmbcl/fksmbcl_main.c
668
lfd = open(lname, O_RDONLY, 0);
usr/src/cmd/fs.d/smbclnt/lsacl/lsacl.c
103
fd = open(file, O_RDONLY, 0);
usr/src/cmd/fs.d/smbclnt/smbiod-svc/smbiod-svc.c
116
if ((fd = open(door_path, O_RDONLY)) < 0)
usr/src/cmd/fs.d/smbclnt/smbiod-svc/smbiod-svc.c
268
tmp_fd = open(door_path, O_RDWR|O_CREAT|O_EXCL, 0644);
usr/src/cmd/fs.d/smbclnt/smbiod-svc/smbiod-svc.c
449
fd = open(door_file, O_RDWR|O_CREAT|O_EXCL, 0600);
usr/src/cmd/fs.d/smbclnt/smbutil/print.c
111
file = open(filename, O_RDONLY, 0);
usr/src/cmd/fs.d/switchout.c
412
if ((fd = open(mountpoint, O_RDONLY)) < 0) {
usr/src/cmd/fs.d/udfs/common/ud_lib.c
123
h->fd = open(temp, flags);
usr/src/cmd/fs.d/udfs/fsck/setup.c
224
if ((fsreadfd = open(devstr, O_RDONLY)) < 0) {
usr/src/cmd/fs.d/udfs/fsck/setup.c
232
if (nflag || (fswritefd = open(devstr, O_WRONLY)) < 0) {
usr/src/cmd/fs.d/udfs/mkfs/mkfs.c
288
fsi = open(raw_special, 0);
usr/src/cmd/fs.d/udfs/mkfs/mkfs.c
430
fso = open(fsys, O_RDONLY);
usr/src/cmd/fs.d/ufs/fsck/main.c
694
fswritefd = open(devstr, O_RDWR, 0);
usr/src/cmd/fs.d/ufs/fsck/setup.c
116
fd = open(mount_point, O_RDONLY);
usr/src/cmd/fs.d/ufs/fsck/setup.c
1443
devnull = open("/dev/null", O_WRONLY);
usr/src/cmd/fs.d/ufs/fsck/setup.c
194
fd = open(mount_point, O_RDONLY);
usr/src/cmd/fs.d/ufs/fsdb/fsdb.c
481
if ((fd = open(special, wrtflag)) < 0) {
usr/src/cmd/fs.d/ufs/fsdb/fsdb.c
4859
f = open(special, 2);
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
208
if ((mountfd = open(mountpoint, O_RDONLY)) < 0)
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
299
if ((ctlfd = open(SNAP_CTL_PATH, O_RDONLY | O_EXCL)) == -1) {
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
350
if ((ctlfd = open(SNAP_CTL_PATH, O_RDONLY | O_EXCL)) == -1)
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
640
fd = open(wpath, O_RDWR | O_CREAT | O_EXCL, 0600);
usr/src/cmd/fs.d/ufs/mount/mount.c
350
fd = open(mp, O_RDONLY);
usr/src/cmd/fs.d/ufs/mount/mount.c
363
fd = open(mp, O_RDONLY);
usr/src/cmd/fs.d/ufs/mount/mount.c
390
fd = open(mp, O_RDONLY);
usr/src/cmd/fs.d/ufs/mount/mount.c
599
if ((fd = open(MNTTAB, O_RDONLY, 0)) < 0)
usr/src/cmd/fs.d/ufs/roll_log/roll_log.c
349
if ((fd = open((lip->li_mntpoint ? lip->li_mntpoint : lip->li_tmpmp),
usr/src/cmd/fs.d/ufs/roll_log/roll_log.c
485
fd = open(li.li_mntpoint, O_RDONLY);
usr/src/cmd/fs.d/ufs/roll_log/roll_log.c
487
fd = open(li.li_tmpmp, O_RDONLY);
usr/src/cmd/fs.d/ufs/tunefs/tunefs.c
317
mountfd = open(mountpoint, O_RDONLY);
usr/src/cmd/fs.d/ufs/volcopy/volcopy.c
1542
f_p->f_des = open(f_p->f_dev_p, 0);
usr/src/cmd/fs.d/ufs/volcopy/volcopy.c
1581
f_p->f_des = open(f_p->f_dev_p, 1);
usr/src/cmd/fs.d/ufs/volcopy/volcopy.c
410
if ((In.f_des = open(In.f_dev_p, O_RDONLY)) < 1)
usr/src/cmd/fs.d/ufs/volcopy/volcopy.c
412
if ((Out.f_des = open(Out.f_dev_p, O_RDONLY)) < 1)
usr/src/cmd/fs.d/ufs/volcopy/volcopy.c
552
In.f_des = open(In.f_dev_p, O_RDONLY);
usr/src/cmd/fs.d/ufs/volcopy/volcopy.c
553
Out.f_des = open(Out.f_dev_p, O_WRONLY);
usr/src/cmd/fstyp/fstyp.c
120
if ((fd = open(devpath, O_RDONLY)) < 0) {
usr/src/cmd/fwflash/common/fwflash.c
685
if ((imgfd = open(fwimg, O_RDONLY)) < 0) {
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
541
if ((fd = open(filename, O_RDWR|O_CREAT|O_DSYNC, mode)) < 0) {
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
768
if ((fd = open(thisdev->access_devname, O_RDONLY)) < 0) {
usr/src/cmd/fwflash/plugins/transport/common/tavor.c
133
if ((fd = open(filename, O_RDWR|O_CREAT|O_DSYNC, mode)) < 0) {
usr/src/cmd/fwflash/plugins/transport/common/tavor.c
838
if ((fd = open(thisdev->access_devname, O_RDONLY)) < 0) {
usr/src/cmd/fwflash/plugins/transport/common/ufm.c
126
if ((fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0644)) < 0) {
usr/src/cmd/fwflash/plugins/transport/common/ufm.c
599
ufmfw_ufm_fd = open("/dev/ufm", O_RDONLY);
usr/src/cmd/gencat/gencat.c
1143
catfd = open(catfname, O_WRONLY | O_CREAT | O_EXCL, 0666);
usr/src/cmd/gencat/gencat.c
1146
(catfd = open(catfname, O_RDWR)) < 0) {
usr/src/cmd/geniconvtbl/assemble.c
932
fd = open(itm_output_file, O_CREAT|O_WRONLY|O_TRUNC, 0666);
usr/src/cmd/geniconvtbl/disassemble.c
3226
fd = open(itm_file, O_RDONLY, 0);
usr/src/cmd/geniconvtbl/geniconvtbl.c
1750
fd = open(itm, O_RDONLY, 0);
usr/src/cmd/grep/grep.c
619
if ((fd = open(name + base, O_RDONLY)) == -1) {
usr/src/cmd/gss/gssd/gssd.c
244
if (open("/dev/null", O_RDONLY) < 0 ||
usr/src/cmd/gss/gssd/gssd.c
245
open("/dev/null", O_WRONLY) < 0 || dup(1) < 0 ||
usr/src/cmd/hal/addons/cpufreq/addon-cpufreq.c
426
pm_fd = open (PM, O_RDONLY);
usr/src/cmd/hal/addons/storage/addon-storage.c
370
} else if ((fd < 0) && ((fd = open (raw_device_file, O_RDONLY | O_NONBLOCK)) < 0)) {
usr/src/cmd/hal/hald/hald.c
501
dev_null_fd = open ("/dev/null", O_RDWR);
usr/src/cmd/hal/hald/hald.c
527
if ((pf= open (HALD_PID_FILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644)) > 0) {
usr/src/cmd/hal/hald/solaris/osspec.c
179
if ((mnttab_fd = open (MNTTAB, O_RDONLY)) < 0) {
usr/src/cmd/hal/probing/acpi/probe-acpi.c
57
if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) {
usr/src/cmd/hal/probing/printer/probe-printer.c
49
if ((fd = open (device_file, O_RDONLY | O_NONBLOCK)) < 0) {
usr/src/cmd/hal/probing/storage/probe-storage.c
388
if ((rfd = open (raw_device_file, O_RDONLY | O_NONBLOCK)) < 0) {
usr/src/cmd/hal/probing/storage/probe-storage.c
432
if ((fd = open (device_file, O_RDONLY | O_NONBLOCK)) < 0) {
usr/src/cmd/hal/probing/volume/probe-volume.c
497
fd = open (devpath, O_RDONLY | O_NONBLOCK);
usr/src/cmd/hal/probing/volume/probe-volume.c
501
rfd = open (rdevpath, O_RDONLY | O_NONBLOCK);
usr/src/cmd/hal/probing/xkb/probe-xkb.c
93
if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) {
usr/src/cmd/hal/tools/hal-storage-shared.c
637
lock_mtab_fd = open ("/media/.hal-mtab-lock", O_CREAT | O_RDWR);
usr/src/cmd/hal/tools/sunos/hal-system-lcd-get-brightness-sunos.c
47
if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) {
usr/src/cmd/hal/tools/sunos/hal-system-lcd-set-brightness-sunos.c
48
if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) {
usr/src/cmd/hal/utils/acpi.c
735
return (open(path, O_RDONLY | O_NONBLOCK));
usr/src/cmd/halt/halt.c
182
if ((ctlfd = open(ctlfile, O_WRONLY)) == -1)
usr/src/cmd/hotplugd/hotplugd.c
264
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/hotplugd/hotplugd.c
265
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/hotplugd/hotplugd.c
266
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/hotplugd/hotplugd_door.c
96
if ((fd = open(HOTPLUGD_DOOR, O_CREAT|O_EXCL|O_RDONLY, 0644)) == -1) {
usr/src/cmd/i2cadm/i2cadm_io.c
899
ofd = open(output, O_RDWR | O_TRUNC | O_CREAT);
usr/src/cmd/idmap/idmapd/idmapd.c
222
devnull = open("/dev/null", O_RDONLY);
usr/src/cmd/infocmp/infocmp.c
1120
devnull = open("/dev/null", O_RDWR);
usr/src/cmd/init/init.c
2201
Pfd = open(INITPIPE, O_RDWR | O_NDELAY);
usr/src/cmd/init/init.c
2207
Pfd = open(INITPIPE, O_RDWR | O_NDELAY);
usr/src/cmd/init/init.c
2965
if ((fd = open(SYSCON, O_RDWR | O_NOCTTY)) < 0 ||
usr/src/cmd/init/init.c
3870
st_fd = open(init_state_file, O_RDWR | O_CREAT | O_EXCL,
usr/src/cmd/init/init.c
3879
st_fd = open(init_state_file, O_RDWR, S_IRUSR | S_IWUSR);
usr/src/cmd/init/init.c
3984
st_fd = open(init_next_state_file,
usr/src/cmd/init/init.c
966
fd = open(SYSCON, O_RDWR | O_NOCTTY);
usr/src/cmd/ipf/lib/checkrev.c
28
if ((vfd == -1) && ((vfd = open(ipfname, O_RDONLY)) == -1)) {
usr/src/cmd/ipf/lib/ipft_ef.c
57
efd = open(fname, O_RDONLY);
usr/src/cmd/ipf/lib/ipft_hx.c
40
tfd = open(fname, O_RDONLY);
usr/src/cmd/ipf/lib/ipft_pc.c
110
else if ((fd = open(fname, O_RDONLY)) == -1)
usr/src/cmd/ipf/lib/ipft_sn.c
65
else if ((fd = open(fname, O_RDONLY)) == -1)
usr/src/cmd/ipf/lib/ipft_td.c
67
tfd = open(fname, O_RDONLY);
usr/src/cmd/ipf/lib/ipft_tx.c
130
tfd = open(fname, O_RDONLY);
usr/src/cmd/ipf/lib/kmem.c
88
fd = open(core, mode);
usr/src/cmd/ipf/lib/kvatoname.c
19
fd = open(IPL_NAME, O_RDONLY);
usr/src/cmd/ipf/lib/load_hash.c
36
hashfd = open(IPLOOKUP_NAME, O_RDWR);
usr/src/cmd/ipf/lib/load_hashnode.c
35
hashfd = open(IPLOOKUP_NAME, O_RDWR);
usr/src/cmd/ipf/lib/load_pool.c
33
poolfd = open(IPLOOKUP_NAME, O_RDWR);
usr/src/cmd/ipf/lib/load_poolnode.c
32
poolfd = open(IPLOOKUP_NAME, O_RDWR);
usr/src/cmd/ipf/lib/nametokva.c
18
fd = open(IPL_NAME, O_RDONLY);
usr/src/cmd/ipf/lib/remove_hash.c
26
hashfd = open(IPLOOKUP_NAME, O_RDWR);
usr/src/cmd/ipf/lib/remove_hashnode.c
28
hashfd = open(IPLOOKUP_NAME, O_RDWR);
usr/src/cmd/ipf/lib/remove_pool.c
26
poolfd = open(IPLOOKUP_NAME, O_RDWR);
usr/src/cmd/ipf/lib/remove_poolnode.c
28
poolfd = open(IPLOOKUP_NAME, O_RDWR);
usr/src/cmd/ipf/svc/ipfd.c
127
if ((fd = open(DEV_NULL, O_RDONLY)) == -1) {
usr/src/cmd/ipf/tools/ip_fil.c
550
fd = open(fname, O_WRONLY|O_APPEND);
usr/src/cmd/ipf/tools/ip_fil.c
746
fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600);
usr/src/cmd/ipf/tools/ip_fil.c
757
fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600);
usr/src/cmd/ipf/tools/ipf.c
203
if ((fd = open(ipfdev, O_RDWR)) == -1)
usr/src/cmd/ipf/tools/ipf.c
204
if ((fd = open(ipfdev, O_RDONLY)) == -1)
usr/src/cmd/ipf/tools/ipf.c
331
xfd = open(IPSTATE_NAME, O_RDWR);
usr/src/cmd/ipf/tools/ipf.c
353
xfd = open(IPNAT_NAME, O_RDWR);
usr/src/cmd/ipf/tools/ipf.c
546
if ((vfd = open(ipfname, O_RDONLY)) == -1) {
usr/src/cmd/ipf/tools/ipfs.c
128
fd = open(fname, O_RDWR);
usr/src/cmd/ipf/tools/ipfs.c
185
fd = open(fname, O_RDWR);
usr/src/cmd/ipf/tools/ipfs.c
367
if ((fd = open(ipfdev, O_RDWR)) == -1)
usr/src/cmd/ipf/tools/ipfs.c
368
if ((fd = open(ipfdev, O_RDONLY)) == -1)
usr/src/cmd/ipf/tools/ipfs.c
415
wfd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0600);
usr/src/cmd/ipf/tools/ipfs.c
467
sfd = open(file, O_RDONLY, 0600);
usr/src/cmd/ipf/tools/ipfs.c
582
nfd = open(file, O_RDONLY);
usr/src/cmd/ipf/tools/ipfs.c
711
nfd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0600);
usr/src/cmd/ipf/tools/ipfstat.c
256
if ((state_fd = open(IPSTATE_NAME, O_RDONLY)) == -1) {
usr/src/cmd/ipf/tools/ipfstat.c
266
if ((ipf_fd = open(device, O_RDONLY)) == -1) {
usr/src/cmd/ipf/tools/ipfstat.c
507
if ((ipf_fd = open(device, O_RDONLY)) == -1) {
usr/src/cmd/ipf/tools/ipftest.c
735
fd = open(filename, O_CREAT|O_TRUNC|O_WRONLY, 0644);
usr/src/cmd/ipf/tools/ipmon.c
1364
if ((fd = open(file, O_CREAT|O_TRUNC|O_WRONLY, 0644)) >= 0) {
usr/src/cmd/ipf/tools/ipmon.c
1384
if ((fd = open(file, O_RDWR)) == -1) {
usr/src/cmd/ipf/tools/ipmon.c
1586
if ((fd[i] = open(iplfile[i], O_RDONLY)) == -1) {
usr/src/cmd/ipf/tools/ipnat.c
190
if (((fd = open(IPNAT_NAME, mode)) == -1) &&
usr/src/cmd/ipf/tools/ipnat.c
191
((fd = open(IPNAT_NAME, O_RDONLY)) == -1)) {
usr/src/cmd/ipf/tools/ippool.c
362
fd = open(IPLOOKUP_NAME, O_RDWR);
usr/src/cmd/ipf/tools/ippool.c
448
fd = open(IPLOOKUP_NAME, O_RDWR);
usr/src/cmd/ipf/tools/ippool.c
694
fd = open(IPLOOKUP_NAME, O_RDWR);
usr/src/cmd/ipf/tools/ippool.c
783
fd = open(IPLOOKUP_NAME, O_RDWR);
usr/src/cmd/isainfo/isainfo.c
292
(d = open(dev_cpu_self_cpuid, O_RDONLY)) == -1)
usr/src/cmd/iscsiadm/sun_ima.c
2463
if ((*fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/cmd/iscsiadm/sun_ima.c
3009
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/cmd/iscsiadm/sun_ima.c
3052
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/cmd/iscsiadm/sun_ima.c
3092
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/cmd/iscsiadm/sun_ima.c
3134
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/cmd/iscsiadm/sun_ima.c
3168
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/cmd/iscsiadm/sun_ima.c
3198
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/cmd/iscsiadm/sun_ima.c
543
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/cmd/iscsid/iscsid.c
186
i = open("/dev/null", O_RDWR);
usr/src/cmd/iscsid/iscsid.c
212
iscsi_dev_handle = open(ISCSI_DRIVER_DEVCTL, O_RDWR);
usr/src/cmd/iscsitsvc/iscsitsvc.c
95
*fd = open(ISCSIT_NODE, O_RDONLY);
usr/src/cmd/isns/isnsadm/isnsadm.c
2575
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
2697
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
2808
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
2916
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
2982
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
3052
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
308
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
3189
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
3321
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
3387
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
3454
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
3521
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
3587
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
3654
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
3717
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsadm/isnsadm.c
3818
if ((fd = open(ISNS_DOOR_NAME, 0)) == -1) {
usr/src/cmd/isns/isnsd/door.c
1428
if ((fd = open(ISNS_DOOR_NAME, 0)) >= 0) {
usr/src/cmd/isns/isnsd/main.c
300
i = open("/dev/null", O_RDWR);
usr/src/cmd/isns/isnsd/xml/data.c
856
fd = open(xml_bak_file, O_RDWR);
usr/src/cmd/isns/isnsd/xml/data.c
858
fd = open(xml_bak_file, O_RDWR | O_CREAT,
usr/src/cmd/isns/isnsd/xml/data.c
874
fd = open(xml_file, O_RDWR);
usr/src/cmd/kbd/kbd.c
234
if ((kbd = open(kbdname, O_RDWR)) < 0) {
usr/src/cmd/keyserv/chkey.c
752
if ((rootfd = open(ROOTKEY_FILE, O_WRONLY+O_CREAT, 0600)) < 0) {
usr/src/cmd/keyserv/detach.c
67
(void) open("/dev/null", O_RDWR, 0);
usr/src/cmd/keyserv/keylogin.c
131
if ((rootfd = open(ROOTKEY_FILE, O_WRONLY+O_CREAT, 0600)) < 0) {
usr/src/cmd/keyserv/keyserv_cache.c
219
if ((fd = open(filename, O_RDWR|O_CREAT, 0600)) < 0) {
usr/src/cmd/keyserv/update.c
265
wfd = open(tmpname, O_CREAT|O_RDWR|O_TRUNC,
usr/src/cmd/krb5/kadmin/dbutil/dump.c
429
if ((fd = open(file_ok, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) {
usr/src/cmd/krb5/kwarn/kwarnd.c
252
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/krb5/kwarn/kwarnd.c
253
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/krb5/kwarn/kwarnd_proc.c
646
fd = open("/tmp/kwarn.out", O_WRONLY|O_TRUNC|O_CREAT,
usr/src/cmd/krb5/ldap_util/kdb5_ldap_services.c
2078
fd = open(file_name, O_CREAT|O_RDWR|O_APPEND, 0600);
usr/src/cmd/krb5/slave/kprop.c
563
if ((fd = open(dbpathname, O_RDONLY)) < 0) {
usr/src/cmd/krb5/slave/kpropd.c
1838
open("/dev/null", O_RDWR);
usr/src/cmd/krb5/slave/kpropd.c
658
lock_fd = open(temp_file_name, O_RDWR|O_CREAT, 0600);
usr/src/cmd/krb5/slave/kpropd.c
668
if ((database_fd = open(temp_file_name,
usr/src/cmd/last/last.c
244
wtmp = open(wtmpfile, 0);
usr/src/cmd/lastcomm/lc_pacct.c
47
if ((fd = open(name, O_RDONLY)) < 0) {
usr/src/cmd/latencytop/util.c
143
fd = open(name, O_RDONLY);
usr/src/cmd/ldap/common/etest.c
54
if (( sb.sb_sd = open( "lber-test", O_WRONLY|O_CREAT|O_TRUNC|O_BINARY ))
usr/src/cmd/ldap/common/ldaptest.c
376
if ( (ld->ld_sb.sb_fd = open( copyfname, O_WRONLY | O_CREAT,
usr/src/cmd/ldap/ns_ldap/ldapclient.c
1031
if ((domain_fp = open(DOMAINNAME, O_WRONLY|O_CREAT|O_TRUNC,
usr/src/cmd/ldap/ns_ldap/ldapclient.c
1275
if ((domain_fp = open(DOMAINNAME, O_WRONLY|O_CREAT|O_TRUNC,
usr/src/cmd/ldap/ns_ldap/ldapclient.c
1867
if ((profile_fp = open(DOMAINNAME, O_WRONLY|O_CREAT|O_TRUNC,
usr/src/cmd/ldap/ns_ldap/ldapclient.c
2625
fd = open(DOMAINNAME_BACK, O_RDONLY);
usr/src/cmd/ldapcachemgr/cachemgr.c
1012
open(logfile,
usr/src/cmd/ldapcachemgr/cachemgr.c
1337
if (open("/dev/null", O_RDWR, 0) != -1) {
usr/src/cmd/ldapcachemgr/cachemgr.c
1428
if ((doorfd = open(NAME_SERVICE_DOOR, O_RDONLY, 0))
usr/src/cmd/ldapcachemgr/cachemgr.c
993
open(logfile, O_EXCL|O_WRONLY|O_CREAT, 0644)) < 0) {
usr/src/cmd/ldapcachemgr/cachemgr_change.c
609
if ((fd = open(fname, O_RDONLY)) >= 0) {
usr/src/cmd/ldmad/ldma_device.c
164
if ((fd = open(path, O_RDWR)) != -1) {
usr/src/cmd/ldmad/ldma_device.c
172
if ((fd = open(path, O_RDONLY)) != -1) {
usr/src/cmd/ldmad/ldmad.c
597
if (open("/dev/null", O_RDWR) == -1) {
usr/src/cmd/listen/listen.c
1265
if ((Passfd = open(dbp->dbf_cmd_line, O_WRONLY)) < 0) {
usr/src/cmd/listen/listen.c
1282
Acceptfd = open("/dev/null", O_RDWR);
usr/src/cmd/listen/listen.c
225
if ((i = open(log, O_WRONLY|O_CREAT|O_APPEND, 0444)) < 0)
usr/src/cmd/listen/listen.c
401
if ((Pidfd = open(PIDNAME, PIDOFLAG, PIDMODE)) == -1) {
usr/src/cmd/listen/listen.c
437
if ((Acceptfd = open("/dev/null", O_RDWR)) != 0) {
usr/src/cmd/listen/listen.c
443
if ((Sacpipefd = open(SACPIPE, O_RDWR|O_NDELAY)) != 1) {
usr/src/cmd/listen/listen.c
449
if ((Pmpipefd = open(PMPIPE, O_RDWR|O_NDELAY)) != 2) {
usr/src/cmd/listen/nlps_serv.c
509
if ((passfd = open(dbp->dbf_cmd_line,
usr/src/cmd/loadkeys/dumpkeys.c
75
if ((kbdfd = open("/dev/kbd", O_WRONLY)) < 0) {
usr/src/cmd/loadkeys/loadkeys.y
162
if ((kbdfd = open("/dev/kbd", O_WRONLY)) < 0) {
usr/src/cmd/loadkeys/loadkeys.y
299
if ((kbdfd = open("/dev/kbd", O_WRONLY)) < 0) {
usr/src/cmd/lockstat/sym.c
148
if ((fd = open("/dev/ksyms", O_RDONLY)) == -1)
usr/src/cmd/lofiadm/main.c
1018
if ((fd = open(pathname, O_RDONLY, 0)) == -1)
usr/src/cmd/lofiadm/main.c
2110
lfd = open(lofictl, openflag);
usr/src/cmd/lofiadm/main.c
688
if ((fd = open("/dev/crypto", O_RDWR)) == -1) {
usr/src/cmd/logadm/conf.c
351
if ((Conffd = open(Confname, O_RDWR)) < 0) {
usr/src/cmd/logadm/conf.c
355
if ((Conffd = open(Confname, O_RDONLY)) < 0)
usr/src/cmd/logadm/conf.c
381
if ((Timesfd = open(Timesname, O_CREAT|O_RDWR, 0644)) < 0) {
usr/src/cmd/logadm/conf.c
385
if ((Timesfd = open(Timesname, O_RDONLY)) < 0)
usr/src/cmd/logadm/main.c
1152
if ((fi = open(file, O_RDWR)) < 0) {
usr/src/cmd/logadm/main.c
1164
if ((fo = open(file_copy, O_CREAT|O_TRUNC|O_WRONLY, s.st_mode)) < 0) {
usr/src/cmd/login/login.c
1718
if ((fdl = open(LASTLOG, O_RDWR|O_CREAT, 0444)) >= 0) {
usr/src/cmd/login/login.c
705
if ((fildes = open(LOGINLOG, O_APPEND|O_WRONLY)) != -1) {
usr/src/cmd/lp/cmd/lpadmin/do_printer.c
698
fd = open("/dev/null", O_WRONLY);
usr/src/cmd/lp/cmd/lpsched/ports.c
224
while ((fd = open(device, open_mode, 0)) == -1) {
usr/src/cmd/lp/filter/postscript/common/misc.c
200
if ( (fd_in = open(file, O_RDONLY)) == -1 )
usr/src/cmd/lp/filter/postscript/download/download.c
287
if ( (fd = open(path, 0)) != -1 ) {
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1358
if ( (fin = open(temp, 0)) < 0 )
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1424
if ( (fin = open(temp, 0)) < 0 ) {
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1426
if ( (fin = open(temp, 0)) < 0 )
usr/src/cmd/lp/filter/postscript/postio/ifdef.c
100
else if ( (ttyi = open(line, O_RDWR)) == -1 )
usr/src/cmd/lp/filter/postscript/postio/ifdef.c
372
} else if ( (ttyi = open(line, O_RDWR)) == -1 )
usr/src/cmd/lp/filter/postscript/postio/ifdef.c
612
else if ( (ttyi = open(line, O_RDWR)) == -1 )
usr/src/cmd/lp/filter/postscript/postio/ifdef.c
955
if ( (ttyi = open(line, O_RDWR)) == -1 )
usr/src/cmd/lp/filter/postscript/postio/postio.c
253
open(line, O_RDWR);
usr/src/cmd/lp/filter/postscript/postio/postio.c
643
if ((fd_in = open(*argv, O_RDONLY)) == -1)
usr/src/cmd/lp/filter/postscript/postreverse/postreverse.c
198
if ((fd = open(fileName, O_RDWR | O_CREAT | O_EXCL, 0600)) < 0) {
usr/src/cmd/lp/filter/postscript/postreverse/postreverse.c
584
if ((fd = open(name, O_RDONLY)) < 0) {
usr/src/cmd/lp/lib/lp/Syscalls.c
268
while ((n = open(s, i, j)) == -1 && errno == EINTR)
usr/src/cmd/lp/lib/papi/job.c
310
if ((ifd = open(from, O_RDONLY)) < 0)
usr/src/cmd/lp/lib/papi/job.c
313
if ((ofd = open(to, O_WRONLY)) < 0) {
usr/src/cmd/lp/lib/papi/job.c
844
s->fd = open(lpfile, O_WRONLY);
usr/src/cmd/lp/lib/papi/printer.c
174
if ((fd = open("/etc/lp/default", O_RDONLY)) >= 0) {
usr/src/cmd/lp/model/netpr/netpr.c
319
if ((fd = open(job_data->filename, O_RDONLY)) < 0) {
usr/src/cmd/luxadm/adm.c
239
if ((fp = open(file, O_RDONLY)) < 0) {
usr/src/cmd/luxadm/adm.c
613
if ((temp_fd = open(file_name, O_RDONLY)) == -1) {
usr/src/cmd/luxadm/fabric_conf.c
110
fd = open(repos_filename, O_RDONLY);
usr/src/cmd/luxadm/fcalupdate.c
151
if ((fd1 = open(file, O_RDONLY)) == -1) {
usr/src/cmd/luxadm/fcalupdate.c
215
if ((fd = open(socal, O_RDWR)) < 0) {
usr/src/cmd/luxadm/fcalupdate.c
217
if ((fd = open(socal, O_RDWR)) < 0) {
usr/src/cmd/luxadm/fcalupdate.c
237
fd = open(slotname, O_RDWR);
usr/src/cmd/luxadm/fcalupdate.c
320
if ((fd = open(socal, O_RDWR)) < 0) {
usr/src/cmd/luxadm/fcalupdate.c
322
if ((fd = open(socal, O_RDWR)) < 0) {
usr/src/cmd/luxadm/fcalupdate.c
371
if ((fd = open(fp, O_RDWR)) < 0) {
usr/src/cmd/luxadm/fcalupdate.c
374
if ((fd = open(fp, O_RDWR)) < 0) {
usr/src/cmd/luxadm/fcalupdate.c
720
int ffd = open(file, 0);
usr/src/cmd/luxadm/g_adm.c
1698
if ((termio_fd = open("/dev/tty", O_RDONLY)) == -1) {
usr/src/cmd/luxadm/lux_util.c
1415
if ((fd = open("/devices/scsi_vhci:devctl", O_RDWR)) < 0) {
usr/src/cmd/luxadm/lux_util.c
1515
if ((fd = open(path, O_NDELAY | O_RDWR)) == -1)
usr/src/cmd/luxadm/lux_util.c
666
if ((fd = open(path, O_NDELAY | O_RDONLY)) == -1)
usr/src/cmd/luxadm/lux_util.c
693
if ((fd = open(path, O_NDELAY | O_RDONLY)) == -1)
usr/src/cmd/luxadm/qlgcupdate.c
1013
if ((dev_fd = open(device, O_RDWR|O_EXCL)) < 0) {
usr/src/cmd/luxadm/qlgcupdate.c
1070
if ((fcode_fd = open(file, O_RDONLY)) < 0) {
usr/src/cmd/luxadm/qlgcupdate.c
1216
if ((fd = open(phys_path, O_RDWR)) < 0) {
usr/src/cmd/luxadm/qlgcupdate.c
169
if ((fcode_fd = open(file, O_RDONLY)) < 0) {
usr/src/cmd/luxadm/qlgcupdate.c
279
if ((fd = open(&pcibus_list[i][0], O_RDWR)) < 0) {
usr/src/cmd/luxadm/qlgcupdate.c
410
if ((fd = open(&pcibus_list[index][0], O_RDWR)) < 0) {
usr/src/cmd/luxadm/qlgcupdate.c
459
if ((fd = open(&pcibus_list[index][0], O_RDWR)) < 0) {
usr/src/cmd/luxadm/qlgcupdate.c
643
if ((testopen = open(devpath, O_RDONLY)) >= 0) {
usr/src/cmd/luxadm/qlgcupdate.c
826
if ((dev_fd = open(device, O_RDWR|O_EXCL)) < 0) {
usr/src/cmd/luxadm/setboot.c
161
if ((fd = open("/dev/openprom", O_RDWR)) < 0) {
usr/src/cmd/luxadm/x86_adm.c
135
if ((fd = open("/devices/scsi_vhci:devctl", O_RDWR)) < 0) {
usr/src/cmd/luxadm/x86_adm.c
361
if ((fd = open(portAttrs.OSDeviceName,
usr/src/cmd/mail/createmf.c
101
mbfd = open(path, O_APPEND|O_WRONLY, 0);
usr/src/cmd/mail/createmf.c
73
mbfd = open(path,
usr/src/cmd/mailx/collect.c
1006
if ((fd = open(tempEdit, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
usr/src/cmd/mailx/collect.c
109
if ((fd = open(tempMail, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
usr/src/cmd/mailx/collect.c
854
if ((fd = open(tempEdit, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
usr/src/cmd/mailx/collect.c
959
if ((fd = open(tempMail, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
usr/src/cmd/mailx/edit.c
132
if ((fd = open(tempZedit, O_RDWR|O_CREAT|
usr/src/cmd/mailx/lex.c
186
if ((i = open(name, O_WRONLY)) < 0)
usr/src/cmd/mailx/lex.c
199
if ((fd = open(tempMesg, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
usr/src/cmd/mailx/names.c
235
fd = open(tempEdit, O_CREAT|O_EXCL|O_APPEND|O_WRONLY,
usr/src/cmd/mailx/names.c
238
if ((fd = open(tempEdit, O_APPEND|O_WRONLY,
usr/src/cmd/mailx/names.c
250
image = open(tempEdit, O_RDWR);
usr/src/cmd/mailx/quit.c
172
if ((fd = open(tempQuit, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
usr/src/cmd/mailx/quit.c
197
if ((fd = open(mbox, O_RDWR|O_CREAT|O_TRUNC, MBOXPERM)) < 0 ||
usr/src/cmd/mailx/quit.c
206
if ((fd = open(mbox, O_RDWR|O_CREAT, MBOXPERM)) < 0 ||
usr/src/cmd/mailx/quit.c
299
fd = open(tempResid,O_RDWR|O_CREAT|O_EXCL, 0600);
usr/src/cmd/mailx/send.c
604
if ((fd = open(tempMail, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
usr/src/cmd/make/bin/parallel.cc
1320
if ((fd = open(filename, O_RDONLY)) < 0) {
usr/src/cmd/make/include/vroot/args.h
72
} open;
usr/src/cmd/make/lib/mksh/dosys.cc
78
int res = open(path, oflag, mode);
usr/src/cmd/make/lib/mksh/dosys.cc
81
res = open(path, oflag, mode);
usr/src/cmd/make/lib/vroot/open.cc
31
extern int open(const char *path, int oflag, ...);
usr/src/cmd/make/lib/vroot/open.cc
38
vroot_result= open(path, vroot_args.open.flags, vroot_args.open.mode);
usr/src/cmd/make/lib/vroot/open.cc
44
vroot_args.open.flags= flags;
usr/src/cmd/make/lib/vroot/open.cc
45
vroot_args.open.mode= mode;
usr/src/cmd/mandoc/dbm_map.c
65
if ((ifd = open(fname, O_RDONLY)) == -1)
usr/src/cmd/mandoc/main.c
617
startdir = open(".", O_RDONLY | O_DIRECTORY);
usr/src/cmd/mandoc/mandocdb.c
2254
if ((fd1 = open(MANDOC_DB, O_RDONLY, 0)) == -1) {
usr/src/cmd/mandoc/mandocdb.c
2258
if ((fd2 = open(tfn, O_RDONLY, 0)) == -1) {
usr/src/cmd/mandoc/read.c
634
if ((fd = open(file, O_RDONLY)) != -1)
usr/src/cmd/mandoc/read.c
645
fd = open(cp, O_RDONLY);
usr/src/cmd/mandoc/term_tag.c
100
ofd = open(outfilename, O_WRONLY | O_CREAT | O_EXCL, 0644);
usr/src/cmd/mandoc/term_tag.c
119
tfd = open(tagfilename, O_WRONLY | O_CREAT | O_EXCL, 0644);
usr/src/cmd/mdb/common/mdb/mdb_context.c
84
if (zfd == -1 && (zfd = open("/dev/zero", O_RDWR)) >= 0)
usr/src/cmd/mdb/common/mdb/mdb_ctf_open.c
61
if ((fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0)
usr/src/cmd/mdb/common/mdb/mdb_main.c
303
if ((fd = open("/dev/kmdb", O_RDONLY)) < 0)
usr/src/cmd/mdb/common/mdb/mdb_main.c
456
_mdb_self_fd = open("/proc/self/as", O_RDONLY);
usr/src/cmd/mdb/common/mdb/mdb_proc.c
3436
if ((fd = open(file, oflags, mode)) >= 0) {
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
2788
ofilefd = open(ofilename, O_WRONLY | O_CREAT,
usr/src/cmd/mdb/common/modules/smbsrv/smbsrv_pcap.c
119
fd = open(outfile, O_RDWR | O_CREAT | O_NOFOLLOW, 0644);
usr/src/cmd/mdb/intel/modules/smbios/smbios.c
71
if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
usr/src/cmd/mdb/tools/setdynflag/common/setdynflag.c
94
if ((fd = open(ifile, O_RDWR)) < 0)
usr/src/cmd/mkfile/mkfile.c
132
fd = open(argv[1], O_CREAT|O_TRUNC|O_RDWR, FILE_MODE);
usr/src/cmd/modload/add_drv.c
876
if ((fd = open(file, O_RDONLY)) < 0) {
usr/src/cmd/modload/drvsubr.c
1453
if ((newfd = open(newfile, O_WRONLY | O_CREAT | O_EXCL, 0644)) < 0) {
usr/src/cmd/modload/drvsubr.c
427
if ((newfd = open(newfile, O_WRONLY | O_CREAT | O_EXCL, 0644)) < 0) {
usr/src/cmd/modload/drvsubr.c
907
add_rem_lock_fd = open(add_rem_lock,
usr/src/cmd/mpathadm/mpathadm.c
1092
if (((fd1 = open(cmpString, O_RDONLY|O_NDELAY)) >= 0) &&
usr/src/cmd/mpathadm/mpathadm.c
1093
((fd2 = open(deviceProperty, O_RDONLY|O_NDELAY)) >= 0) &&
usr/src/cmd/mpathadm/mpathadm.c
1837
if (((fd1 = open(luFileName,
usr/src/cmd/mpathadm/mpathadm.c
1839
((fd2 = open(luProps.deviceFileName,
usr/src/cmd/msgfmt/gnu_handle.c
132
fd = open(_ENCODING_ALIAS_PATH, O_RDONLY);
usr/src/cmd/msgfmt/msgfmt.c
233
fd = open(filename, O_RDONLY);
usr/src/cmd/mt/mt.c
127
mtfd = open(tape, comp->c_oflag);
usr/src/cmd/mv/mv.c
1051
fi = open(source, O_RDONLY);
usr/src/cmd/mv/mv.c
2309
if ((srcfd = open(src, O_RDONLY)) == -1) {
usr/src/cmd/mv/mv.c
2337
if ((targfd = open(targ, O_RDONLY)) == -1) {
usr/src/cmd/mv/mv.c
2545
pwdfd = open(".", O_RDONLY);
usr/src/cmd/ndmpd/ndmp/ndmpd_chkpnt.c
200
if (cleanup_fd == -1 && (cleanup_fd = open(ZFS_DEV,
usr/src/cmd/ndmpd/ndmp/ndmpd_config.c
545
if ((fd = open(MNTTAB, O_RDONLY)) == -1) {
usr/src/cmd/ndmpd/ndmp/ndmpd_door.c
131
if ((door = open(NDMP_DOOR_SVC, O_RDONLY)) < 0)
usr/src/cmd/ndmpd/ndmp/ndmpd_scsi.c
435
(devid = open(devname, O_RDWR | O_NDELAY)) < 0) {
usr/src/cmd/ndmpd/ndmp/ndmpd_tape.c
1229
(devid = open(devname, O_RDWR | O_NDELAY)) < 0) {
usr/src/cmd/ndmpd/ndmp/ndmpd_tape.c
1259
session->ns_tape.td_fd = open(devname, mode);
usr/src/cmd/ndmpd/ndmp/ndmpd_tape.c
1269
session->ns_tape.td_fd = open(devname, O_RDONLY);
usr/src/cmd/ndmpd/ndmp/ndmpd_tape.c
1370
while ((fd = open(path, flags)) == -1 &&
usr/src/cmd/ndmpd/ndmp/ndmpd_tape.c
194
if ((session->ns_tape.td_fd = open(request->device.name, mode)) < 0) {
usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
2412
if ((fd = open(adptnm, O_RDONLY | O_NDELAY)) < 0)
usr/src/cmd/ndmpd/tlm/tlm_backup_reader.c
937
fd = open(fnamep, O_RDONLY);
usr/src/cmd/ndmpd/tlm/tlm_bitmap.c
1391
if ((fd = open(fname, O_RDWR|O_CREAT, 0600)) < 0)
usr/src/cmd/ndmpd/tlm/tlm_init.c
82
dev = open(dname, O_RDWR | O_NDELAY);
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
1228
*fp = open(real_name, O_CREAT | O_TRUNC | O_WRONLY,
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
658
fd = open(tsp->ts_fh.fh_fpath, O_RDONLY);
usr/src/cmd/nohup/nohup.c
624
nh_fd = open(nout, O_WRONLY | O_CREAT, NOHUP_PERM);
usr/src/cmd/nohup/nohup.c
630
nh_fd = open(nout, O_WRONLY | O_CREAT, NOHUP_PERM);
usr/src/cmd/nohup/nohup.c
82
if ((fd = open(nout, flags, NOHUP_PERM)) < 0) {
usr/src/cmd/nohup/nohup.c
88
(fd = open(nout, flags, NOHUP_PERM)) < 0) {
usr/src/cmd/nscd/nscd_getentctx.c
640
if ((fd = open(pname, O_RDONLY)) == -1)
usr/src/cmd/nscd/nscd_log.c
105
if ((newlogfd = open(lf, O_EXCL|O_WRONLY|O_CREAT, 0644)) < 0) {
usr/src/cmd/nscd/nscd_log.c
126
open(lf, O_APPEND|O_WRONLY, 0644)) < 0) {
usr/src/cmd/nscd/nscd_selfcred.c
1432
if ((pfd = open(pname, O_RDONLY)) == -1) {
usr/src/cmd/nscd/server.c
447
(void) open("/dev/null", O_RDWR, 0);
usr/src/cmd/nscd/server.c
557
(void) open("/dev/null", O_RDWR, 0);
usr/src/cmd/nvmeadm/nvmeadm.c
2023
int fd = open(file, O_WRONLY | O_TRUNC | O_CREAT, 0644);
usr/src/cmd/nvmeadm/nvmeadm.c
2526
if ((fd = open(pl->pl_input, O_RDONLY)) < 0) {
usr/src/cmd/nvmeadm/nvmeadm.c
3649
fw_fd = open(npa->npa_argv[0], O_RDONLY);
usr/src/cmd/nvmeadm/nvmeadm_phyeye.c
458
if ((fd = open(phy->pm_output, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0) {
usr/src/cmd/nvmeadm/nvmeadm_phyeye.c
880
if ((fd = open(phy->pr_input, O_RDONLY)) < 0) {
usr/src/cmd/nvmeadm/nvmeadm_sandisk.c
134
ofd = open(eye->se_output, O_WRONLY | O_CREAT | O_TRUNC, 0644);
usr/src/cmd/nvmeadm/nvmeadm_telemetry.c
116
ofd = open(log->ngl_output, O_WRONLY | O_TRUNC | O_CREAT, 0644);
usr/src/cmd/nvmeadm/nvmeadm_vuc.c
338
int ifd = open(vuc->vuc_input, O_RDONLY);
usr/src/cmd/nvmeadm/nvmeadm_vuc.c
362
ofd = open(vuc->vuc_output, O_RDWR | O_TRUNC | O_CREAT,
usr/src/cmd/nvmeadm/nvmeadm_wdc.c
147
ofd = open(e6->e6_output, O_RDWR | O_CREAT | O_TRUNC, 0644);
usr/src/cmd/oplhpd/oplhpd.c
158
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/oplhpd/oplhpd.c
159
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/oplhpd/oplhpd.c
167
if ((pid_fd = open(OPLHPD_PID_FILE, O_RDWR | O_CREAT, 0644)) < 0) {
usr/src/cmd/oplhpd/scf_notify.c
496
if ((fd = open(SCFIOCDEV, O_WRONLY)) < 0) {
usr/src/cmd/pack/pack.c
421
if ((infile = open(filename, 0)) < 0) {
usr/src/cmd/passmgmt/passmgmt.c
658
fd_ptemp = open(PASSTEMP, O_CREAT|O_EXCL|O_WRONLY, statbuf.st_mode);
usr/src/cmd/passmgmt/passmgmt.c
666
fd_ptemp = open(PASSTEMP, O_CREAT|O_EXCL|O_WRONLY,
usr/src/cmd/passmgmt/passmgmt.c
696
fd_stemp = open(SHADTEMP, O_CREAT|O_EXCL|O_WRONLY,
usr/src/cmd/passmgmt/passmgmt.c
705
fd_stemp = open(SHADTEMP,
usr/src/cmd/passmgmt/passmgmt.c
736
fd_uatemp = open(USERATTR_TEMP, O_CREAT|O_EXCL|O_WRONLY,
usr/src/cmd/passmgmt/passmgmt.c
745
fd_uatemp = open(USERATTR_TEMP,
usr/src/cmd/pbind/pbind.c
253
if ((fd = open(procfile, O_RDONLY)) < 0) {
usr/src/cmd/pcieadm/pcieadm.c
371
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/cmd/pcieadm/pcieadm.c
574
if ((fd = open(nexus_reg, O_RDONLY)) < 0) {
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
5903
if ((fd = open(argv[0], O_WRONLY | O_CREAT | O_TRUNC, 0666)) <
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
5934
if ((psc.psc_dirfd = open(argv[0], O_RDONLY | O_DIRECTORY)) <
usr/src/cmd/pcieb/pcieb.c
119
if ((fd = open(argv[0], O_RDWR)) < 0) {
usr/src/cmd/pcitool/pcitool.c
242
if ((fd = open(path, O_RDWR)) == -1) {
usr/src/cmd/pgrep/pgrep.c
302
if ((procfd = open(procpath, O_RDONLY)) == -1)
usr/src/cmd/picl/picld/picld.c
1168
(void) open("/dev/null", O_RDWR, 0);
usr/src/cmd/picl/picld/picld.c
914
doorh = open(PICLD_DOOR, O_RDONLY);
usr/src/cmd/picl/plugins/common/devtree/picldevtree.c
2191
tmpfd = open(dev_path, O_RDWR);
usr/src/cmd/picl/plugins/common/devtree/picldevtree.c
2542
d = open("/dev/openprom", O_RDWR);
usr/src/cmd/picl/plugins/common/memcfg/piclmemcfg_comm.c
733
if ((fd = open(path, O_RDONLY, 0)) != -1) {
usr/src/cmd/picl/plugins/common/piclevent/picl_slm.c
150
door_fd = open(PICLEVENT_DOOR, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcplugin/psvcplugin.c
252
fd = open(dev_pr_info[i].file, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/chicago/envd/piclenvd.c
1080
sensorp->fd = open(sensorp->devfs_path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/chicago/envd/piclenvd.c
1136
pm_fd = open(PM_DEVICE, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/chicago/envd/piclenvd.c
1179
env_monitor_fd = open(ENV_MONITOR_DEVFS, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/chicago/envd/piclenvd.c
1569
if ((disk_pm_fd = open(PM_DEVICE, O_RDWR)) == -1) {
usr/src/cmd/picl/plugins/sun4u/chicago/envd/piclenvd.c
711
if ((fd = open(fanp->devfs_path, O_RDWR)) == -1) {
usr/src/cmd/picl/plugins/sun4u/chicago/envd/piclenvd.c
782
if ((diskp->fd = open(diskp->devfs_path, O_RDONLY)) == -1) {
usr/src/cmd/picl/plugins/sun4u/chicago/envd/piclenvd.c
889
if ((fd = open(iofru_devname, O_RDONLY)) == -1) {
usr/src/cmd/picl/plugins/sun4u/daktari/psvcpolicy/psvcpolicy.c
1207
fd = open(dev_path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1060
fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1168
diskp->fd = open(diskp->devfs_path, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1254
sensorp->fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1374
sysfd = open(hwm_devs[sys_id], O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1461
pm_fd = open(PM_DEVICE, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1793
fd = open(hwm_devs[hwm_id], O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
2054
disk_pm_fd = open(PM_DEVICE, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
2393
fd = open(CPU_HWM_DEVFS, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
2435
fd = open(CPU_HWM_DEVFS, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
2477
fd = open(SYS_HWM_DEVFS, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
2519
fd = open(SYS_HWM_DEVFS, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
2561
fd = open(CPU_HWM_DEVFS, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
2602
fd = open(CPU_HWM_DEVFS, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
2639
fd = open(SYS_HWM_DEVFS, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
2680
fd = open(SYS_HWM_DEVFS, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
605
fd = open(path, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/envmon/piclenvmon.c
1069
envmon_fd = open(envmon_device_name, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/envmon/piclenvmon.c
1563
if ((envmon_fd = open(envmon_device_name, O_RDONLY)) <
usr/src/cmd/picl/plugins/sun4u/envmon/piclenvmon.c
1767
if ((envmon_fd = open(envmon_device_name, O_RDONLY)) < 0) {
usr/src/cmd/picl/plugins/sun4u/envmon/piclenvmon.c
930
envmon_fd = open(envmon_device_name, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1374
pm_fd = open(PM_DEVICE, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1416
fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1641
sensorp->fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
2132
xwd = open(XCALWD_DEVFS, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
958
fd = open(path, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/grover/envd/piclenvd.c
410
fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/grover/envd/piclenvd.c
466
sensorp->fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/grover/envd/piclenvd.c
997
pm_fd = open(PM_DEVICE, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
1145
open(cont_object->u.cont_obj->device_pathname, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
1343
fd = open(cont_hash->u.cont_obj->device_pathname, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
1632
fd = open(cont_hash->u.cont_obj->device_pathname, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
1765
fd = open(cont_hash->u.cont_obj->device_pathname, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2121
device_fd = open(cont_hash_obj->u.cont_obj->device_pathname,
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2329
fd = open(cont_hash->u.cont_obj->device_pathname, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2483
fd = open(cont_hash->u.cont_obj->device_pathname, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2682
fd = open(cont_hash->u.cont_obj->device_pathname, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
822
device_fd = open(devpath, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/littleneck/psvcplugin/psvcplugin.c
174
fd = open(dev_pr_info[i].file, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/littleneck/psvcpolicy/psvcpolicy.c
388
fd = open("/dev/console", O_WRONLY | O_NOCTTY);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fcal_leds_thread.c
437
int fd = open(dtls->fcal_leds, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fcal_leds_thread.c
665
fd_bkplane = open(dtls->fcal_status, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/lw8/fruaccess/libfruaccess.c
95
if ((frufd = open(FRU_PSEUDO_DEV, O_RDWR, access)) == -1) {
usr/src/cmd/picl/plugins/sun4u/lw8/frutree/piclfrutree.c
1754
if ((frufd = open(FRU_PSEUDO_DEV, O_RDWR, 0)) == -1) {
usr/src/cmd/picl/plugins/sun4u/lw8/frutree/piclfrutree.c
3602
if ((ledfd = open(LED_PSEUDO_DEV, O_RDWR, 0)) == -1) {
usr/src/cmd/picl/plugins/sun4u/lw8/frutree/piclfrutree.c
3679
if ((ledfd = open(LED_PSEUDO_DEV, O_RDWR, 0)) == -1) {
usr/src/cmd/picl/plugins/sun4u/lw8/frutree/piclfrutree.c
3730
if ((ledfd = open(LED_PSEUDO_DEV, O_RDWR, 0)) == -1) {
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
2167
fd = open(sc_device_name, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
2447
fd = open(V440_DISK_DEVCTL, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
2451
fd = open(SEATTLE_DISK_DEVCTL, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
2455
fd = open(BOSTON_DISK_DEVCTL_1068E, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
2457
fd = open(BOSTON_DISK_DEVCTL_1068X, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
2603
if ((fd = open(BOSTON_DISK_DEVCTL_1068E, O_RDONLY)) != -1) {
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
586
envmon_fd = open(sc_device_name, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
642
int fd = open(led_path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
666
fd = open(SEATTLE_LED_DEV, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
684
int fd = open(led_path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
721
int fd = open(led_path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
755
int fd = open(sc_device_name, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1655
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1685
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1714
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1742
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1770
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1798
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1826
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1855
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1884
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1912
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1941
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1971
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2006
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2047
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2097
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2144
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2177
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2211
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2245
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2276
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2309
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2344
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2379
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2415
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2451
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2493
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2531
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2566
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2602
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2636
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2672
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
3746
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
4767
if (open(path, O_RDWR) == -1) {
usr/src/cmd/picl/plugins/sun4u/psvc/psvcpolicy/psvcpolicy.c
1384
fd = open("/dev/console", O_WRONLY | O_NOCTTY);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
1003
sysfd = open(hwm_devs[sys_id], O_RDWR);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
1091
pm_fd = open(PM_DEVICE, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
1397
fd = open(hwm_devs[hwm_id], O_RDWR);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
1633
fd = open(CPU_HWM_DEVFS, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
1675
fd = open(CPU_HWM_DEVFS, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
1716
fd = open(CPU_HWM_DEVFS, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
1757
fd = open(CPU_HWM_DEVFS, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
460
fd = open(path, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
833
fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
886
sensorp->fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4v/lib/snmp/snmplib.c
203
smd->fd = open(DS_SNMP_DRIVER, O_RDWR);
usr/src/cmd/picl/plugins/sun4v/mdesc/init.c
59
if ((fd = open(MDESC_PATH, O_RDONLY, 0)) < 0)
usr/src/cmd/picl/plugins/sun4v/piclsbl/piclsbl.c
159
if ((fd = open(hba_devctl, O_RDONLY)) < 0) {
usr/src/cmd/pools/poold/com/sun/solaris/service/kstat/KstatCtl.java
53
kctl = open();
usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Configuration.java
80
open(location, perms);
usr/src/cmd/power/conf.c
170
if ((fd = open("/dev/tod", O_RDONLY)) != -1) {
usr/src/cmd/power/conf.c
182
if ((fd = open(cpr_conf, O_RDONLY)) == -1) {
usr/src/cmd/power/conf.c
210
if ((pm_fd = open("/dev/pm", O_RDWR)) == -1)
usr/src/cmd/power/conf.c
225
if ((fd = open(PIDPATH, O_RDONLY)) == -1)
usr/src/cmd/power/conf.c
271
if ((fd = open(cpr_conf, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1)
usr/src/cmd/power/handlers.c
1086
if ((fd = open(rdskname, O_RDONLY)) == -1) {
usr/src/cmd/power/handlers.c
974
if ((fd = open(promdev, O_RDONLY)) == -1) {
usr/src/cmd/power/parse.c
206
fd = open(name, oflag);
usr/src/cmd/power/powerd.c
1299
if ((fd = open(pidpath, O_CREAT | O_EXCL | O_WRONLY, 0444)) == -1) {
usr/src/cmd/power/powerd.c
229
pm_fd = open(PM, O_RDWR);
usr/src/cmd/power/powerd.c
278
if (dup2(open("/dev/console", O_WRONLY|O_NOCTTY), 1) == -1) {
usr/src/cmd/power/powerd.c
308
if ((pb_fd = open(PB, O_RDONLY)) != -1) {
usr/src/cmd/power/powerd.c
404
fd = open(SRN, O_RDWR|O_EXCL|O_NDELAY);
usr/src/cmd/power/powerd.c
465
if ((asfd = open(CPR_CONFIG, O_RDONLY)) < 0) {
usr/src/cmd/power/powerd.c
718
tod_fd = open(TOD, O_RDWR);
usr/src/cmd/power/powerd.c
786
if ((prom_fd = open(PROM, O_RDWR)) == -1 &&
usr/src/cmd/power/sys-suspend.c
600
(void) dup2(open("/dev/console", O_RDONLY), 0);
usr/src/cmd/power/sys-suspend.c
601
(void) dup2(open("/dev/console", O_WRONLY), 1);
usr/src/cmd/power/sys-suspend.c
602
(void) dup2(open("/dev/console", O_WRONLY), 2);
usr/src/cmd/power/sys-suspend.c
753
if ((fd = open("/dev/pm", O_RDWR)) < 0) {
usr/src/cmd/power/sys-suspend.c
781
if ((fd = open(CPR_CONFIG, O_RDONLY)) < 0) {
usr/src/cmd/ppgsz/ppgsz.c
465
if ((fd = open(path, O_RDONLY)) < 0)
usr/src/cmd/ppgsz/ppgsz.c
552
if ((fd = open(path, O_RDONLY)) < 0)
usr/src/cmd/print/bsd-sysv-commands/common.c
488
if ((fd = open(file, O_RDONLY)) >= 0) {
usr/src/cmd/print/conv_fix/conv_fix.c
120
fd = open(ofile, O_RDWR|O_APPEND);
usr/src/cmd/print/conv_fix/conv_fix.c
122
fd = open(ofile, O_RDWR|O_CREAT|O_EXCL, 0644);
usr/src/cmd/priocntl/priocntl.c
561
if ((procfd = open(pname, O_RDONLY)) < 0)
usr/src/cmd/priocntl/priocntl.c
581
if ((procfd = open(pname, O_RDONLY)) < 0 ||
usr/src/cmd/priocntl/priocntl.c
821
if ((procfd = open(pname, O_RDONLY)) < 0)
usr/src/cmd/priocntl/priocntl.c
839
if ((procfd = open(pname, O_RDONLY)) < 0 ||
usr/src/cmd/priocntl/subr.c
347
if ((procfd = open(pname, O_RDONLY)) < 0)
usr/src/cmd/priocntl/subr.c
360
if ((procfd = open(pname, O_RDONLY)) < 0 ||
usr/src/cmd/prstat/prfile.c
132
again: fd = open(name, flags);
usr/src/cmd/prstat/prstat.c
892
if ((fd = open(path, O_RDONLY)) != -1) {
usr/src/cmd/prtconf/pdevinfo.c
1892
if ((prom_fd = open(opts.o_promdev, oflag)) < 0) {
usr/src/cmd/prtvtoc/prtvtoc.c
405
if ((fd = open(name, O_NONBLOCK|O_RDONLY)) < 0) {
usr/src/cmd/ps/ps.c
1007
if ((procfd = open(pname, O_RDONLY)) == -1)
usr/src/cmd/ps/ps.c
1764
(fd = open(path, O_RDONLY)) != -1) {
usr/src/cmd/ps/ps.c
746
if ((procfd = open(pname, O_RDONLY)) < 0 ||
usr/src/cmd/ps/ps.c
945
if ((procfd = open(pname, O_RDONLY)) == -1) {
usr/src/cmd/ps/ucbps.c
412
if ((psfd = open(psname, O_RDONLY)) == -1)
usr/src/cmd/ps/ucbps.c
420
asfd = open(asname, O_RDONLY);
usr/src/cmd/psrset/psrset.c
583
if ((fd = open(procfile, O_RDONLY)) < 0) {
usr/src/cmd/ptools/pmap/pmap.c
400
if ((mapfd = open(buf, O_RDONLY)) < 0) {
usr/src/cmd/ptools/pmap/pmap.c
638
if ((mapfd = open(mapname, O_RDONLY)) < 0 || fstat(mapfd, &st) != 0) {
usr/src/cmd/ptools/pmap/pmap.c
679
if ((mapfd = open(mapname, O_RDONLY)) < 0 || fstat(mapfd, &st) != 0) {
usr/src/cmd/ptools/psig/psig.c
201
if ((fd = open(pathname, O_RDONLY)) < 0) {
usr/src/cmd/ptools/ptime/ptime.c
207
if ((fd = open(pathname, O_RDONLY)) < 0)
usr/src/cmd/ptools/pwait/pwait.c
125
if ((pfd->fd = open(psinfofile, O_RDONLY)) >= 0) {
usr/src/cmd/raidctl/raidctl.c
2976
fd0 = open(RAIDCTL_LOCKF, O_CREAT|O_WRONLY, 0600);
usr/src/cmd/ramdiskadm/main.c
318
ctl_fd = open(rd_ctl, openflag);
usr/src/cmd/rcap/common/rcapd_stat.c
45
if ((fd = open(file, O_RDONLY)) < 0)
usr/src/cmd/rcap/rcapd/rcapd_rfd.c
156
while ((fd = open(name, oflag, mode)) == -1 && (errno == ENFILE ||
usr/src/cmd/rcap/rcapstat/rcapstat.c
154
if ((fd = open(STAT_FILE_DEFAULT, O_RDONLY)) < 0) {
usr/src/cmd/rcap/rcapstat/rcapstat.c
175
if ((proc_fd = open(procfile, O_RDONLY)) < 0) {
usr/src/cmd/rcm_daemon/common/dump_rcm.c
393
if ((fd = open("/dev/dump", O_RDONLY)) == -1) {
usr/src/cmd/rcm_daemon/common/dump_rcm.c
398
(fd = open("/dev/dump", O_RDONLY)) == -1) {
usr/src/cmd/rcm_daemon/common/ip_rcm.c
2005
if ((muxid_fd = open(udp_dev_name, O_RDWR)) < 0) {
usr/src/cmd/rcm_daemon/common/ip_rcm.c
2010
if ((*mux_fd = open(udp_dev_name, O_RDWR)) < 0) {
usr/src/cmd/rcm_daemon/common/rcm_lock.c
1433
if ((fd = open(procfile, O_RDONLY)) == -1) {
usr/src/cmd/rcm_daemon/common/rcm_lock.c
99
state_fd = open(RCM_STATE_FILE, O_CREAT|O_RDWR, 0600);
usr/src/cmd/rcm_daemon/common/rcm_main.c
139
daemon_lock_fd = open(daemon_lock_file, O_CREAT|O_RDWR, 0644);
usr/src/cmd/rcm_daemon/common/rcm_main.c
283
(void) open("/dev/null", O_RDWR, 0);
usr/src/cmd/rcm_daemon/common/rcm_script.c
532
if ((statefd->fd = open(filename, O_CREAT|O_RDWR, 0600)) ==
usr/src/cmd/rcm_daemon/common/rcm_script.c
753
if ((fd = open(procfile, O_RDONLY)) != -1 &&
usr/src/cmd/rcm_daemon/common/rcm_script.c
958
(void) open("/dev/null", O_RDWR, 0);
usr/src/cmd/rcm_daemon/common/swap_rcm.c
614
if ((fd = open("/dev/dump", O_RDONLY)) == -1) {
usr/src/cmd/rctladm/rctladm.c
153
if ((fd = open(CONFIGPATH, O_WRONLY|O_CREAT|O_TRUNC, CONFIGPERM)) == -1)
usr/src/cmd/rctladm/rctladm.c
205
if ((fd = open(CONFIGPATH, O_RDONLY, CONFIGPERM)) == -1)
usr/src/cmd/rdmsr/rdmsr.c
55
if ((fd = open(dev_cpu_self_cpuid, O_RDONLY)) == -1) {
usr/src/cmd/refer/glue4.c
49
if (open(argig, 0) != 0)
usr/src/cmd/refer/inv1.c
83
if (open(argv[2], 0) != 0)
usr/src/cmd/rmformat/rmf_misc.c
1347
fd = open(devnode, O_RDONLY|O_NDELAY);
usr/src/cmd/rmformat/rmf_misc.c
1439
((fd = open(supplied, O_RDONLY|O_NDELAY)) >= 0)) {
usr/src/cmd/rmformat/rmf_misc.c
1456
if ((fd = open(tmpstr, O_RDONLY|O_NDELAY)) >= 0) {
usr/src/cmd/rmformat/rmf_misc.c
1473
if ((fd = open(tmpstr, O_RDONLY|O_NDELAY)) >= 0) {
usr/src/cmd/rmformat/rmf_misc.c
1490
fd = open(node, O_RDONLY|O_NDELAY);
usr/src/cmd/rmformat/rmf_misc.c
526
mfd = open(raw_device, O_RDWR | O_NDELAY);
usr/src/cmd/rmformat/rmf_misc.c
694
fd = open(tmp_path_name, flags);
usr/src/cmd/rmformat/rmf_slice.c
1354
tmp_fd = open("/boot/pmbr", O_RDONLY);
usr/src/cmd/rmt/rmt.c
440
tape = open(device, O_LARGEFILE |
usr/src/cmd/rmvolmgr/vold.c
1023
if ((current_working_dir_fd = open(".", O_RDONLY)) < 0) {
usr/src/cmd/rmvolmgr/vold.c
822
open(notify_file, O_CREAT|O_EXCL|O_WRONLY, 0644);
usr/src/cmd/rmvolmgr/vold.c
937
if ((fd = open(namebuf, O_WRONLY|O_NDELAY)) < 0) {
usr/src/cmd/rpcbind/rpcbind.c
826
(void) open("/dev/null", O_RDWR, 0);
usr/src/cmd/rpcbind/warmstart.c
126
fd = open(filename, O_RDONLY, 0600);
usr/src/cmd/rpcbind/warmstart.c
73
fd = open(filename, O_CREAT|O_EXCL|O_WRONLY, 0600);
usr/src/cmd/rpcsvc/rpc.bootparamd/bootparam_ip_route.c
251
sd = open("/dev/ip", O_RDWR);
usr/src/cmd/rpcsvc/rpc.bootparamd/bootparam_ip_route.c
449
sd = open("/dev/ip", O_RDWR);
usr/src/cmd/rpcsvc/rstat_main.c
123
i = open("/dev/console", 2);
usr/src/cmd/rpcsvc/rstat_proc.c
593
sd = open("/dev/arp", O_RDWR);
usr/src/cmd/rsrvrctl/rsrvrctl.c
227
fd = open(VMM_CTL_DEV, O_EXCL | O_RDWR);
usr/src/cmd/sa/sadc.c
233
if ((fp = open(fname, O_WRONLY | O_APPEND | O_CREAT, 0644))
usr/src/cmd/sa/sar.c
210
if ((fin = open(flnm, 0)) == -1)
usr/src/cmd/saf/log.c
67
if ((fd = open("/dev/console", O_WRONLY|O_NOCTTY)) != -1)
usr/src/cmd/saf/misc.c
564
fd = open(Scratch, O_RDONLY);
usr/src/cmd/saf/sac.c
1098
fd = open(CMDPIPE, O_RDWR | O_CREAT, 0600);
usr/src/cmd/saf/sac.c
197
Sfd = open("_sacpipe", O_RDWR);
usr/src/cmd/saf/sac.c
243
sp->sc_fd = open(Scratch, O_RDWR);
usr/src/cmd/saf/sac.c
397
sp->sc_fd = open(Scratch, O_RDWR);
usr/src/cmd/saf/sacadm.c
1039
fd = open(CMDPIPE, O_RDWR);
usr/src/cmd/saf/sacadm.c
1253
fd = open(LOGFILE, O_RDONLY);
usr/src/cmd/sckmd/sparc/sun4u/sckmd.c
175
if ((fd = open(KM_DEV, O_RDONLY)) == -1) {
usr/src/cmd/script/script.c
265
if ((manager = open(mptname, O_RDWR)) >= 0) { /* a pseudo-tty is free */
usr/src/cmd/script/script.c
284
subsid = open(subsidname, O_RDWR); /* open subsidiary */
usr/src/cmd/sdpadm/sdpadm.c
108
fd = open(dcname, O_RDONLY);
usr/src/cmd/sed/compile.c
281
else if ((cmd->u.fd = open(p,
usr/src/cmd/sed/compile.c
656
if (!aflag && (s->wfd = open(wfile,
usr/src/cmd/sed/process.c
231
if (cp->u.fd == -1 && (cp->u.fd = open(cp->t,
usr/src/cmd/sed/process.c
471
if (cp->u.s->wfd == -1 && (cp->u.s->wfd = open(cp->u.s->wfile,
usr/src/cmd/sendmail/db/os/os_open.c
134
__db_jump.j_open(name, flags, mode) : open(name, flags, mode);
usr/src/cmd/sendmail/include/sm/io.h
181
# define SM_IO_SET_TYPE(f, name, open, close, read, write, seek, get, set, timeout) \
usr/src/cmd/sendmail/include/sm/io.h
183
0, (close), (read), (seek), (write), (open), (set), (get), (timeout),\
usr/src/cmd/sendmail/include/sm/io.h
185
# define SM_IO_INIT_TYPE(f, name, open, close, read, write, seek, get, set, timeout)
usr/src/cmd/sendmail/include/sm/io.h
188
# define SM_IO_SET_TYPE(f, name, open, close, read, write, seek, get, set, timeout) (f)
usr/src/cmd/sendmail/include/sm/io.h
189
# define SM_IO_INIT_TYPE(f, name, open, close, read, write, seek, get, set, timeout) \
usr/src/cmd/sendmail/include/sm/io.h
205
(f).f_open = (open); \
usr/src/cmd/sendmail/libsm/stdio.c
511
fp->f_file = open(pathname, flags, mode);
usr/src/cmd/sendmail/libsm/stdio.c
97
fp->f_file = open(path, oflags,
usr/src/cmd/sendmail/libsmdb/smdb2.c
526
result = (*db)->open(*db,
usr/src/cmd/sendmail/libsmutil/safefile.c
941
fd = open(filename, omode, cmode);
usr/src/cmd/sendmail/src/bf.c
69
# define OPEN(fn, omode, cmode, sff) open(fn, omode, cmode)
usr/src/cmd/sendmail/src/conf.c
1505
kmem = open(_PATH_KMEM, 0, 0);
usr/src/cmd/sendmail/src/conf.c
1590
kmem = open("/dev/kmem", 0, 0);
usr/src/cmd/sendmail/src/conf.c
1828
kmem = open(_PATH_KMEM, 0, 0);
usr/src/cmd/sendmail/src/conf.c
1947
afd = open(_PATH_AVENRUN, O_RDONLY|O_SYNC);
usr/src/cmd/sendmail/src/conf.c
2553
kmem = open(_PATH_KMEM, O_RDWR, 0);
usr/src/cmd/sendmail/src/conf.c
2913
fd = open("/dev/tty", O_RDWR, 0);
usr/src/cmd/sendmail/src/conf.c
475
#define MAPDEF(name, ext, flags, parse, open, close, lookup, store) \
usr/src/cmd/sendmail/src/conf.c
478
extern bool open __P((MAP *, int)); \
usr/src/cmd/sendmail/src/conf.c
487
s->s_mapclass.map_open = open; \
usr/src/cmd/sendmail/src/deliver.c
968
dirfd = open(dirp, O_RDONLY, 0700);
usr/src/cmd/sendmail/src/main.c
3356
fd = open(SM_PATH_DEVNULL, O_WRONLY, 0666);
usr/src/cmd/sendmail/src/main.c
3920
i = open(SM_PATH_DEVNULL, fd == 0 ? O_RDONLY : O_WRONLY, 0666);
usr/src/cmd/sendmail/src/map.c
2091
fd = open(buf, omode, DBMMODE);
usr/src/cmd/sendmail/src/map.c
2173
ret = db->open(db,
usr/src/cmd/sendmail/src/queue.c
376
tfd = open(tf, TF_OPEN_FLAGS, QueueFileMode); \
usr/src/cmd/sendmail/src/queue.c
556
dfd = open(df, O_WRONLY|O_CREAT|O_TRUNC|QF_O_EXTRA,
usr/src/cmd/sendmail/src/queue.c
8523
fd = open(tempqf, flags, QueueFileMode);
usr/src/cmd/sendmail/src/udb.c
1010
ret = up->udb_dbp->open(up->udb_dbp,
usr/src/cmd/sendmail/util/mail.local.c
811
mbfd = open(path, O_APPEND|O_CREAT|O_EXCL|O_WRONLY,
usr/src/cmd/sendmail/util/mail.local.c
830
mbfd = open(path, O_APPEND|O_WRONLY, 0);
usr/src/cmd/sendmail/util/mail.local.c
951
mbfd = open(path, O_WRONLY, 0);
usr/src/cmd/sendmail/util/mailstats.c
221
fd = open(sfile, O_RDONLY, 0600);
usr/src/cmd/sendmail/util/mailstats.c
343
fd = open(sfile, O_RDWR | O_TRUNC, 0600);
usr/src/cmd/sf880drd/sf880drd.c
120
fds[i].fd = open(buf, O_RDWR);
usr/src/cmd/sf880drd/sf880drd.c
337
fd = open(SSC050_LED_PORT, O_RDWR);
usr/src/cmd/sgs/0@0/common/0@0.c
46
if ((fd = open("/dev/zero", O_RDWR)) < 0)
usr/src/cmd/sgs/ar/common/file.c
1145
if ((fd = open(name, O_RDWR)) < 0) {
usr/src/cmd/sgs/ar/common/file.c
1188
ar_outfile.fd = open(ar_outfile.path, O_RDWR|O_CREAT|O_LARGEFILE, 0666);
usr/src/cmd/sgs/ar/common/file.c
1280
if ((fd = open(fptr->ar_pathname, O_RDONLY)) == -1) {
usr/src/cmd/sgs/ar/common/file.c
151
if ((cmd_info->afd = fd = open(arnam, O_RDONLY)) == -1) {
usr/src/cmd/sgs/ar/common/file.c
529
open(fptr->ar_pathname, O_RDONLY)) == -1) {
usr/src/cmd/sgs/crle/common/config.c
652
if ((fd = open(crle->c_confil, (O_RDWR | O_CREAT | O_TRUNC),
usr/src/cmd/sgs/crle/common/crle.c
375
if ((fd = open(crle.c_confil, (O_RDWR | O_CREAT | O_TRUNC),
usr/src/cmd/sgs/crle/common/crle.c
470
if ((crle.c_tempfd = open(crle.c_tempname, (O_RDWR | O_CREAT),
usr/src/cmd/sgs/crle/common/inspect.c
699
if ((fd = open(path, O_RDONLY, 0)) == -1) {
usr/src/cmd/sgs/crle/common/print.c
893
if ((fd = open(file, O_RDONLY, 0)) == -1) {
usr/src/cmd/sgs/demo_rdb/common/main.c
205
if ((pctlfd = open(procname, O_WRONLY)) < 0) {
usr/src/cmd/sgs/demo_rdb/common/main.c
225
if ((pstatusfd = open(procname, O_RDONLY)) == -1)
usr/src/cmd/sgs/demo_rdb/common/main.c
67
if ((pfd = open(procname, O_WRONLY)) < 0) {
usr/src/cmd/sgs/demo_rdb/common/maps.c
235
filefd = open(procname, O_RDONLY);
usr/src/cmd/sgs/demo_rdb/common/ps.c
140
if ((procp->pp_mapfd = open(procname, O_RDONLY)) == -1)
usr/src/cmd/sgs/demo_rdb/common/ps.c
145
if ((procp->pp_asfd = open(procname, O_RDWR)) == -1)
usr/src/cmd/sgs/demo_rdb/common/ps.c
327
if ((lwpfd = open(procname, O_RDONLY)) == -1)
usr/src/cmd/sgs/demo_rdb/common/ps.c
79
if ((pauxvfd = open(pname, O_RDONLY)) == -1)
usr/src/cmd/sgs/dump/common/dump.c
1962
if ((fd = open((filename), O_RDONLY)) == -1) {
usr/src/cmd/sgs/elfdump/common/main.c
902
if ((wfd = open(wname, (O_RDWR | O_CREAT | O_TRUNC),
usr/src/cmd/sgs/elfdump/common/main.c
919
if ((fd = open(argv[optind], O_RDONLY)) == -1) {
usr/src/cmd/sgs/elfedit/common/elfedit.c
1241
if ((fd = open(file, open_flag)) == -1) {
usr/src/cmd/sgs/elfedit/common/elfedit.c
1533
fd = open(path, O_RDONLY);
usr/src/cmd/sgs/elfwrap/common/elfwrap.c
99
if ((fd = open(file, O_RDONLY)) == -1) {
usr/src/cmd/sgs/elfwrap/common/main.c
162
if ((fd = open(ofile, (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) {
usr/src/cmd/sgs/gprof/common/gprof.c
1529
if ((fd = open(filename, O_RDONLY)) == -1) {
usr/src/cmd/sgs/gprof/common/readelf.c
126
if ((fd = open((aoutname), O_RDONLY)) == -1) {
usr/src/cmd/sgs/gprof/common/readelf.c
171
if ((fd = open(module->name, O_RDONLY)) == -1) {
usr/src/cmd/sgs/gprof/common/readelf.c
79
if ((fd = open(name, O_RDONLY)) == -1) {
usr/src/cmd/sgs/ld/common/ld.c
423
if ((fd = open(argv[optind], O_RDONLY)) == -1) {
usr/src/cmd/sgs/ldd/common/ldd.c
335
if ((var = open(fname, O_RDONLY)) == -1) {
usr/src/cmd/sgs/ldprof/common/profile.c
134
if ((fd = open(MSG_ORIG(MSG_FMT_PROCSELF), O_RDONLY)) < 0)
usr/src/cmd/sgs/ldprof/common/profile.c
201
if ((fd = open(Profile, (O_RDWR | O_CREAT), 0666)) == -1) {
usr/src/cmd/sgs/ldprof/common/profile.c
504
fd = open(Profile, O_RDWR, 0);
usr/src/cmd/sgs/ldprof/common/profile.c
562
fd = open(Profile, O_RDWR, 0);
usr/src/cmd/sgs/libcrle/common/dump.c
215
if ((fd = open(MSG_ORIG(MSG_PTH_PROCSTATUS), O_RDONLY)) == -1) {
usr/src/cmd/sgs/libcrle/common/dump.c
246
if ((fd = open(MSG_ORIG(MSG_PTH_PROCRMAP), O_RDONLY)) == -1) {
usr/src/cmd/sgs/libcrle/common/dump.c
283
if ((fd = open(MSG_ORIG(MSG_PTH_DEVNULL), O_RDONLY)) == -1) {
usr/src/cmd/sgs/libelf/demo/acom.c
187
if ((fd = open(elf_fname, O_RDWR)) == -1) {
usr/src/cmd/sgs/libelf/demo/dcom.c
167
if ((tfd = open(tfile, O_RDWR | O_CREAT, 0600)) == -1) {
usr/src/cmd/sgs/libelf/demo/dcom.c
376
if ((fd = open(elf_fname, O_RDONLY)) == -1) {
usr/src/cmd/sgs/libelf/demo/dispsyms.c
354
if ((fd = open(elf_fname, O_RDONLY)) == -1) {
usr/src/cmd/sgs/libelf/demo/pcom.c
185
if ((fd = open(elf_fname, O_RDONLY)) == -1) {
usr/src/cmd/sgs/libelf/demo/tpcom.c
225
if ((fd = open(elf_fname, O_RDONLY)) == -1) {
usr/src/cmd/sgs/libelf/misc/nlist.c
134
if ((fd = open(name, 0)) < 0)
usr/src/cmd/sgs/libld/common/args.c
2120
if ((fd = open(path, O_RDONLY)) == -1) {
usr/src/cmd/sgs/libld/common/files.c
3551
if ((fd = open(path, O_RDONLY)) == -1)
usr/src/cmd/sgs/libld/common/files.c
3634
if ((fd = open(file, O_RDONLY)) == -1) {
usr/src/cmd/sgs/libld/common/ldlibs.c
207
if ((fd = open(path, O_RDONLY)) != -1) {
usr/src/cmd/sgs/libld/common/ldlibs.c
241
if ((fd = open(path, O_RDONLY)) != -1) {
usr/src/cmd/sgs/libld/common/map_core.c
2346
if ((mapfile_fd = open(mapfile, O_RDONLY)) == -1) {
usr/src/cmd/sgs/libld/common/outfile.c
126
if ((ofl->ofl_fd = open(ofl->ofl_name, O_RDWR,
usr/src/cmd/sgs/libld/common/outfile.c
157
if ((ofl->ofl_fd = open(ofl->ofl_name, O_RDWR | O_CREAT | O_TRUNC,
usr/src/cmd/sgs/liblddbg/common/files.c
484
if ((fd = open(nname, O_RDWR | O_CREAT | O_TRUNC,
usr/src/cmd/sgs/librtld/common/dldump.c
176
if ((pfd = open(proc, O_RDONLY)) == -1) {
usr/src/cmd/sgs/librtld/common/dldump.c
222
if ((fd = open(ipath, O_RDONLY, 0)) == -1) {
usr/src/cmd/sgs/librtld/common/dldump.c
253
if ((fd = open(opath, (O_RDWR | O_CREAT | O_TRUNC), 0777)) == -1) {
usr/src/cmd/sgs/link_audit/common/bindings.c
141
if ((fd = open(buffer_name, O_RDWR)) == -1) {
usr/src/cmd/sgs/link_audit/common/bindings.c
245
if ((fd = open(buffer_name, O_RDWR | O_CREAT | O_EXCL, 0666)) != -1) {
usr/src/cmd/sgs/link_audit/common/bindings.c
277
} else if ((fd = open(buffer_name, O_RDWR)) != -1) {
usr/src/cmd/sgs/link_audit/common/bindings.c
405
if ((fd = open(buffer_name, O_RDWR)) == -1) {
usr/src/cmd/sgs/link_audit/common/bindings.c
77
if ((fd = open("/tmp/bind_err", O_RDWR | O_CREAT, 0666)) == -1) {
usr/src/cmd/sgs/link_audit/common/dumpbind.c
161
if ((fd = open(fname, O_RDWR)) == -1) {
usr/src/cmd/sgs/link_audit/common/perfcnt.c
117
if ((fd = open(buffer, O_RDWR)) >= 0) {
usr/src/cmd/sgs/link_audit/common/who.c
162
if ((fd = open(op->o_lmp->l_name, O_RDONLY)) == -1) {
usr/src/cmd/sgs/mcs/common/file.c
119
if ((fdartmp = open(artmpfile.tmp_name,
usr/src/cmd/sgs/mcs/common/file.c
1284
if ((fdtmp3 = open(elftmpfile.tmp_name, O_RDONLY)) == -1) {
usr/src/cmd/sgs/mcs/common/file.c
1422
if ((fdtmp2 = open(temp_file->tmp_name, O_RDONLY)) == -1) {
usr/src/cmd/sgs/mcs/common/file.c
712
if ((fdtmp = open(elftmpfile.tmp_name, O_RDWR | O_TRUNC | O_CREAT,
usr/src/cmd/sgs/mcs/common/file.c
94
if ((fd = open(cur_file, oflag)) == -1) {
usr/src/cmd/sgs/nm/common/nm.c
470
if ((fd = open((filename), O_RDONLY)) == -1) {
usr/src/cmd/sgs/pvs/common/pvs.c
1091
if ((var = open(file, O_RDONLY)) == -1) {
usr/src/cmd/sgs/rtld/common/analyze.c
1297
if ((fd = open(nname, O_RDONLY, 0)) == -1) {
usr/src/cmd/sgs/rtld/common/config_elf.c
265
if ((fd = open(str, O_RDONLY, 0)) == -1)
usr/src/cmd/sgs/rtld/common/debug.c
122
dbg_fd = open(file, O_RDWR | O_CREAT | O_TRUNC, 0666);
usr/src/cmd/sgs/rtld/common/debug.c
259
if ((dbg_fd = open(file, (O_RDWR | O_APPEND),
usr/src/cmd/sgs/rtld/common/locale.c
157
if ((fd = open(path, O_RDONLY, 0)) == -1)
usr/src/cmd/sgs/rtld/common/setup.c
381
if ((fd = open(argvname, O_RDONLY)) == -1) {
usr/src/cmd/sgs/rtld/common/util.c
3176
if ((nu_fd = open(MSG_ORIG(MSG_PTH_DEVNULL),
usr/src/cmd/sgs/size/common/main.c
178
if ((fd = open(argv[optind], O_RDONLY)) == -1) {
usr/src/cmd/sh/expand.c
102
open++;
usr/src/cmd/sh/expand.c
106
if (open == 0)
usr/src/cmd/sh/expand.c
77
BOOL open;
usr/src/cmd/sh/expand.c
80
open = 0;
usr/src/cmd/sh/expand.c
98
open = 0;
usr/src/cmd/sh/io.c
131
if ((rc = open((char *)idf, mode, 0666)) < 0)
usr/src/cmd/sh/io.c
191
fd = open((char *)tmpout, O_RDWR|O_CREAT|O_EXCL, 0600);
usr/src/cmd/sh/service.c
101
(fd = open((char *)ion, 1)) >= 0) {
usr/src/cmd/sh/service.c
169
} while ((f = open((char *)curstak(), 0)) < 0 && path);
usr/src/cmd/sh/service.c
654
if ((fd = open((char *)acctnod.namval,
usr/src/cmd/smbios/smbios.c
2421
if ((fd = open(ofile, O_WRONLY|O_CREAT|O_TRUNC, 0666)) == -1) {
usr/src/cmd/smbsrv/smbd/smbd_main.c
704
if ((door = open(door_name, O_RDONLY)) < 0)
usr/src/cmd/smserverd/smediad.c
2719
fd = open(smedia_service, O_RDWR|O_CREAT|O_EXCL, 0644);
usr/src/cmd/smserverd/smediad.c
2780
doorh = open(smedia_service, O_RDONLY);
usr/src/cmd/sort/streams.c
220
fd = open(str->s_filename, O_RDONLY);
usr/src/cmd/sort/streams_stdio.c
56
if ((SF->s_fd = open(str->s_filename, O_CREAT | O_TRUNC |
usr/src/cmd/sort/utility.c
451
if ((held_fd = open("/dev/null", O_RDONLY)) == -1)
usr/src/cmd/sort/utility.c
690
if ((fd_in = open(src, O_RDONLY)) < 0)
usr/src/cmd/sort/utility.c
692
if ((fd_out = open(dst, O_RDWR | O_CREAT | O_TRUNC, OUTPUT_MODE)) < 0)
usr/src/cmd/spd/spd.c
41
fd = open(argv[1], O_RDONLY);
usr/src/cmd/spell/hashlook.c
117
if (open(file, 0) != 0)
usr/src/cmd/srchtxt/srchtxt.c
243
if ((fd = open(path, O_RDONLY)) != -1 &&
usr/src/cmd/srptsvc/srptsvc.c
69
fd = open(SRPT_NODE, O_RDONLY);
usr/src/cmd/stat/common/dsr.c
228
scsi_vhci_fd = open("/devices/scsi_vhci:devctl", O_RDONLY);
usr/src/cmd/stat/fsstat/fsstat.c
327
PRINT_VOPSTAT(niceflag, open);
usr/src/cmd/stmfproxy/stmfproxy/stmfproxy.c
322
devnull = open("/dev/null", O_RDWR);
usr/src/cmd/stmsboot/stmsboot_util.c
1258
fd = open(realpath, O_RDONLY|O_NDELAY);
usr/src/cmd/stmsboot/stmsboot_util.c
1260
fd = open(openpath, O_RDONLY|O_NDELAY);
usr/src/cmd/stmsboot/stmsboot_util.c
1332
vhci_fd = open(VHCI_CTL_NODE, O_RDWR);
usr/src/cmd/stmsboot/stmsboot_util.c
159
mapfd = open(ondiskname, O_RDWR|O_CREAT|O_SYNC, S_IRUSR | S_IWUSR);
usr/src/cmd/stmsboot/stmsboot_util.c
162
if ((mapfd = open(ondiskname, O_RDONLY)) < 0) {
usr/src/cmd/streams/log/strace.c
192
log = open(LOGDEV, O_RDWR);
usr/src/cmd/streams/log/strclean.c
126
if ((fd = open("/dev/log", O_RDWR)) >= 0) {
usr/src/cmd/streams/log/strerr.c
118
fd = open(LOGDEV, O_RDWR);
usr/src/cmd/su/su.c
281
(void) close(open(Sulog, O_WRONLY | O_APPEND | O_CREAT,
usr/src/cmd/su/su.c
990
if ((fd = open("/dev/tty", O_RDWR)) != -1) {
usr/src/cmd/sulogin/sulogin.c
153
if ((fd = open(SYSMSG, 0)) < 0)
usr/src/cmd/sulogin/sulogin.c
467
if ((fd = open(devname, O_RDWR)) < 0)
usr/src/cmd/sulogin/sulogin.c
489
if ((fb = open("/dev/fb", O_RDONLY)) >= 0) {
usr/src/cmd/sunpc/other/dos2unix.c
225
if ((kbdfd = open("/dev/kbd", O_WRONLY)) < 0) {
usr/src/cmd/sunpc/other/unix2dos.c
229
if ((kbdfd = open("/dev/kbd", O_WRONLY)) < 0) {
usr/src/cmd/svc/common/manifest_hash.c
539
fd = open(file, O_RDONLY);
usr/src/cmd/svc/configd/backend.c
1100
infd = open(src, O_RDONLY);
usr/src/cmd/svc/configd/backend.c
1522
if ((srcfd = open(src, O_RDONLY)) < 0) {
usr/src/cmd/svc/configd/backend.c
1919
if ((fd = open(db_file, O_RDONLY)) >= 0) {
usr/src/cmd/svc/configd/backend.c
1954
if ((fd = open(fname, O_CREAT|O_WRONLY|O_APPEND, 0600)) < 0) {
usr/src/cmd/svc/configd/backend.c
872
int repfd = open(rep_name, O_RDONLY);
usr/src/cmd/svc/configd/backend.c
873
int fd = open(backup_name, O_RDONLY);
usr/src/cmd/svc/configd/configd.c
602
if ((fd = open(pidpath, O_RDONLY)) < 0 ||
usr/src/cmd/svc/configd/maindoor.c
170
fd = open(doorpath, O_RDWR | O_CREAT | O_EXCL, 0644);
usr/src/cmd/svc/startd/contract.c
92
if ((psfd = open("/proc/self/psinfo", O_RDONLY)) < 0) {
usr/src/cmd/svc/startd/fork.c
272
if ((fd_console = open("/dev/console", O_RDWR)) >= 0) {
usr/src/cmd/svc/startd/log.c
283
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/svc/startd/log.c
288
fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND,
usr/src/cmd/svc/startd/log.c
308
if ((fd = open(path, O_RDONLY, 0644)) == -1)
usr/src/cmd/svc/startd/log.c
339
fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND,
usr/src/cmd/svc/startd/proc.c
46
fd = open("/proc/self/psinfo", O_RDONLY);
usr/src/cmd/svc/startd/startd.c
981
if ((fd = open("/dev/null", O_RDONLY)) == -1) {
usr/src/cmd/svc/startd/utmpx.c
403
if ((fd = open(_UTMPX_FILE,
usr/src/cmd/svc/startd/wait.c
218
if ((fd = open(fname, O_RDONLY)) == -1) {
usr/src/cmd/svc/svccfg/svccfg_libscf.c
16600
fd = open(MFSTHISTFILE, O_RDONLY);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
779
fd = open(est->sc_repo_doorname, O_CREAT | O_EXCL | O_RDWR, 0600);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
817
fd = open(est->sc_repo_doorname, O_RDWR);
usr/src/cmd/svr4pkg/libinst/copyf.c
112
dstFd = open(a_dstPath, O_WRONLY | O_TRUNC | O_CREAT,
usr/src/cmd/svr4pkg/libinst/copyf.c
132
dstFd = open(a_dstPath, O_WRONLY | O_TRUNC | O_CREAT,
usr/src/cmd/svr4pkg/libinst/copyf.c
444
fd = open(a_path, a_oflag);
usr/src/cmd/svr4pkg/libinst/copyf.c
96
srcFd = open(a_srcPath, O_RDONLY, 0);
usr/src/cmd/svr4pkg/libinst/dryrun.c
374
if ((fd_drb = open(dryrun_bin,
usr/src/cmd/svr4pkg/libinst/dryrun.c
522
if ((fd_cnb = open(continue_bin, O_RDONLY)) == -1) {
usr/src/cmd/svr4pkg/libinst/dryrun.c
690
n = open(targ_file, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644);
usr/src/cmd/svr4pkg/libinst/lockinst.c
189
if ((fd = open(lockpath, O_RDWR | O_CREAT, 0600)) == -1) {
usr/src/cmd/svr4pkg/libinst/mntinfo.c
412
i = open("/dev/null", O_WRONLY);
usr/src/cmd/svr4pkg/libinst/mntinfo.c
540
i = open("/dev/null", O_WRONLY);
usr/src/cmd/svr4pkg/libinst/ocfile.c
176
n = open(tmpcf, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644);
usr/src/cmd/svr4pkg/libinst/ocfile.c
569
lock_fd = open(lockpath, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0644);
usr/src/cmd/svr4pkg/libinst/ocfile.c
578
if ((lock_fd = open(lockpath, O_RDWR)) == -1) {
usr/src/cmd/svr4pkg/libinst/ocfile.c
681
fd = open(contents, O_WRONLY | O_CREAT | O_EXCL, 0644);
usr/src/cmd/svr4pkg/pkgadm/lock.c
1187
fd = open(lockpath, O_CREAT|O_RDWR, LOCK_FILEMODE);
usr/src/cmd/svr4pkg/pkgchk/main.c
552
if ((fd = open(file, O_RDONLY)) == -1) {
usr/src/cmd/svr4pkg/pkgcond/main.c
3264
fd = open(mbPath, O_RDONLY|O_LARGEFILE, 0);
usr/src/cmd/svr4pkg/pkginstall/cppath.c
106
srcFd = open(a_srcPath, O_RDONLY);
usr/src/cmd/svr4pkg/pkginstall/cppath.c
364
fd = open(a_file, O_WRONLY | O_CREAT | O_TRUNC, a_mode);
usr/src/cmd/svr4pkg/pkginstall/cppath.c
367
fd = open(a_file, O_WRONLY | O_CREAT | O_TRUNC, a_mode);
usr/src/cmd/svr4pkg/pkginstall/main.c
1950
if (open(ilockfile, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644) < 0) {
usr/src/cmd/svr4pkg/pkginstall/reqexec.c
272
if ((fd = open(resppath, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644)) < 0) {
usr/src/cmd/svr4pkg/pkginstall/reqexec.c
310
fd = open(resppath, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644);
usr/src/cmd/svr4pkg/pkgremove/main.c
900
if ((fd = open(rlockfile, O_WRONLY|O_CREAT|O_TRUNC, 0644)) < 0) {
usr/src/cmd/svr4pkg/pkgserv/pkgserv.c
1142
int fd = open(lock, O_RDWR|O_CREAT, 0644);
usr/src/cmd/svr4pkg/pkgserv/pkgserv.c
365
fd = open("/dev/null", O_RDWR, 0);
usr/src/cmd/svr4pkg/pkgserv/pkgserv.c
740
cnt = open(CONTENTS, O_RDONLY);
usr/src/cmd/svr4pkg/pkgserv/pkgserv.c
854
logfd = open(PKGLOG, O_RDONLY);
usr/src/cmd/swap/swap.c
538
if ((fd = open("/dev/dump", O_RDONLY)) >= 0) {
usr/src/cmd/swap/swap.c
583
if ((fd = open("/dev/dump", O_RDONLY)) >= 0) {
usr/src/cmd/sysdef/sysdef.c
642
if ((sfd = open(sorted_fname, O_RDWR|O_CREAT|O_EXCL,
usr/src/cmd/syseventadm/syseventadm.c
229
lock_fd = open(lock_file, O_CREAT|O_RDWR, 0644);
usr/src/cmd/syseventd/daemons/syseventconfd/syseventconfd.c
166
fd = open("/dev/null", 0);
usr/src/cmd/syseventd/daemons/syseventconfd/syseventconfd.c
370
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/syseventd/daemons/syseventd/syseventd.c
1469
fd = open(local_door_file, O_CREAT|O_RDWR, S_IREAD|S_IWRITE);
usr/src/cmd/syseventd/daemons/syseventd/syseventd.c
1559
daemon_lock_fd = open(local_lock_file, O_CREAT|O_RDWR, 0644);
usr/src/cmd/syseventd/daemons/syseventd/syseventd.c
395
fd = open("/dev/null", 0);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
812
lock_fd = open(lock_file, O_CREAT|O_RDWR, 0644);
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
429
if ((fd = open(fullpath, O_RDONLY)) < 0)
usr/src/cmd/syslogd/syslogd.c
1940
f->f_file = open(f->f_un.f_fname,
usr/src/cmd/syslogd/syslogd.c
2118
ttyf = open(w->dev, O_WRONLY|O_NOCTTY|O_NDELAY);
usr/src/cmd/syslogd/syslogd.c
2396
if (((cfd = open(sysmsg, modes)) >= 0) ||
usr/src/cmd/syslogd/syslogd.c
2397
((cfd = open(ctty, modes)) >= 0)) {
usr/src/cmd/syslogd/syslogd.c
2513
if ((door = open(DoorFileName, O_RDONLY)) >= 0) {
usr/src/cmd/syslogd/syslogd.c
2696
if ((pidfd = open(PidFileName, O_RDWR|O_CREAT|O_TRUNC, 0644))
usr/src/cmd/syslogd/syslogd.c
393
(void) open("/", 0);
usr/src/cmd/syslogd/syslogd.c
520
if ((fd = open(DEBUGFILE,
usr/src/cmd/syslogd/syslogd.c
550
if ((fd = open(name, mode)) < 0) {
usr/src/cmd/tabs/tabs.c
407
if ((fildes = open(scan, O_RDONLY)) < 0) {
usr/src/cmd/tar/tar.c
1095
mt = open(usefile,
usr/src/cmd/tar/tar.c
1098
mt = open(usefile, O_RDWR);
usr/src/cmd/tar/tar.c
1164
} else if ((mt = open(usefile, 0)) < 0)
usr/src/cmd/tar/tar.c
1867
dirfd = open(".", O_RDONLY);
usr/src/cmd/tar/tar.c
2720
return (open(".", O_RDONLY));
usr/src/cmd/tar/tar.c
3073
dirfd = open(dirp, O_RDONLY);
usr/src/cmd/tar/tar.c
3076
dirfd = open(dirp, O_RDONLY);
usr/src/cmd/tar/tar.c
4877
mt = open(usefile, dumping ? update : 0);
usr/src/cmd/tar/tar.c
7880
if ((filefd = open(filename, O_RDONLY)) == -1) {
usr/src/cmd/tar/tar.c
8549
return (open(name, oflag, cmode));
usr/src/cmd/tcopy/tcopy.c
79
if ((inp = open(inf, O_RDONLY, 0666)) < 0) {
usr/src/cmd/tcopy/tcopy.c
84
if ((outp = open(outf, O_WRONLY, 0666)) < 0) {
usr/src/cmd/tcpd/safe_finger.c
162
if (fstat(i, &st) == -1 && open("/dev/null", 2) != i)
usr/src/cmd/th_tools/th_define.c
1171
fd = open("/usr/lib/th_script", O_RDONLY);
usr/src/cmd/th_tools/th_define.c
1388
if ((fd = open(BOFI_DEV, O_RDWR)) == -1) {
usr/src/cmd/th_tools/th_define.c
1776
fd = open(BOFI_DEV, O_RDWR);
usr/src/cmd/th_tools/th_define.c
2268
if ((fd = open(BOFI_DEV, O_RDWR)) == -1) {
usr/src/cmd/th_tools/th_manage.c
182
fd = open("/devices/pseudo/bofi@0:bofi,ctl", O_RDWR);
usr/src/cmd/tic/tic_read.c
151
fd = open(filename, 0);
usr/src/cmd/tip/aculib/dn11.c
31
if ((dn = open(acu, 1)) < 0) {
usr/src/cmd/tip/aculib/dn11.c
60
if ((FD = open(DV, 2)) < 0) {
usr/src/cmd/tip/aculib/v831.c
38
if ((AC = open(acu, O_RDWR)) < 0) {
usr/src/cmd/tip/aculib/v831.c
66
if ((FD = open(DV, O_RDWR)) < 0) {
usr/src/cmd/tip/hunt.c
54
if ((FD = open(cp, O_RDWR)) < 0 && errno != EBUSY) {
usr/src/cmd/tip/remcap.c
150
tf = open(E_TERMCAP, O_RDONLY);
usr/src/cmd/tip/remcap.c
156
tf = open(RM = cp, O_RDONLY);
usr/src/cmd/tip/remcap.c
162
tf = open(E_TERMCAP, O_RDONLY);
usr/src/cmd/tip/tipout.c
133
if ((fd = open(DV, O_RDWR)) >= 0) {
usr/src/cmd/tip/uucplock.c
123
fd = open(file, 0);
usr/src/cmd/tput/tput.c
566
fd = open(file, O_RDONLY);
usr/src/cmd/tput/tput.c
615
(filedes = open("/dev/tty", O_RDWR),
usr/src/cmd/tput/tput.c
621
(filedes = open("/dev/tty", O_RDWR),
usr/src/cmd/trapstat/sun4/trapstat.c
1062
if ((g_fd = open(TSTAT_DEVICE, O_RDWR)) == -1)
usr/src/cmd/troff/n1.c
1207
} else if ((ifile = open(p, 0)) < 0) {
usr/src/cmd/troff/n1.c
1351
if (skip() || !getname() || ((i = open(nextf, 0)) < 0) || (ifi >= NSO)) {
usr/src/cmd/troff/n1.c
1405
if (skip() || !getname() || (fd = open(nextf, 0)) < 0) {
usr/src/cmd/troff/nroff.d/n10.c
113
if ((fd = open(termtab, 0)) < 0) {
usr/src/cmd/troff/troff.d/t10.c
109
if ((fin = open(termtab, 0)) < 0) {
usr/src/cmd/troff/troff.d/t6.c
702
if ((k = open(longname, 0)) < 0) {
usr/src/cmd/truss/expound.c
1275
au_pr->open,
usr/src/cmd/truss/fcall.c
238
if ((mapfd = open(mapfile, O_RDONLY)) < 0 ||
usr/src/cmd/truss/fcall.c
772
if ((mapfd = open(mapfile, O_RDONLY)) < 0 ||
usr/src/cmd/truss/main.c
2545
if ((fd = open(ctlname, O_WRONLY)) < 0 ||
usr/src/cmd/truss/main.c
276
while ((i = open("/dev/null", O_RDWR)) >= 0 && i < 2)
usr/src/cmd/truss/main.c
596
sfd = open(tmps, O_CREAT|O_APPEND|O_EXCL|O_RDWR, 0600);
usr/src/cmd/tsol/plabel/plabel.c
152
if ((fd = open(procname, O_RDONLY)) < 0) {
usr/src/cmd/tsol/tnd/tnd.c
526
(void) open("/dev/null", O_RDWR, 0);
usr/src/cmd/ttymon/stty.c
105
fd = open(tmps, O_RDONLY, 0);
usr/src/cmd/ttymon/tmchild.c
242
if ((pmtab->p_fd = open(pmtab->p_device, O_RDWR)) != 0) {
usr/src/cmd/ttymon/tmexpress.c
119
if (open(pmtab->p_device, O_RDWR) < 0) {
usr/src/cmd/ttymon/tmexpress.c
239
(cn_fd = open("/dev/console", O_RDONLY)) != -1) {
usr/src/cmd/ttymon/tmhandler.c
533
fd = open(pmptr->p_device, O_RDWR | O_NONBLOCK);
usr/src/cmd/ttymon/tmhandler.c
550
fd = open(pmptr->p_device, O_RDWR | O_NONBLOCK);
usr/src/cmd/ttymon/tmhandler.c
568
fd = open(pmptr->p_device, O_RDWR | O_NONBLOCK);
usr/src/cmd/ttymon/tmlog.c
165
} else if ((fd = open(CONSOLE, O_WRONLY|O_NOCTTY)) != -1) {
usr/src/cmd/ttymon/tmlog.c
232
if ((fd = open(EX_DBG, O_WRONLY|O_APPEND|O_CREAT)) < 0)
usr/src/cmd/ttymon/tmlog.c
65
if ((fd = open(logfile, O_WRONLY | O_CREAT | O_APPEND, 0444)) != -1)
usr/src/cmd/ttymon/tmsac.c
54
if ((Lckfd = open(PIDFILE, O_RDONLY)) != -1) {
usr/src/cmd/ttymon/tmsac.c
61
if ((Lckfd = open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC, 0644)) != 0)
usr/src/cmd/ttymon/tmsac.c
82
Sfd = open(SACPIPE, O_WRONLY);
usr/src/cmd/ttymon/tmsac.c
86
Pfd = open(PMPIPE, O_RDWR|O_NONBLOCK);
usr/src/cmd/ttymon/tmutil.c
199
if ((fd = open(USERDEV, O_RDWR)) == -1) {
usr/src/cmd/ttymon/tmutil.c
251
if ((fd = open(CONSOLE, O_WRONLY|O_NOCTTY)) != -1)
usr/src/cmd/ttymon/ttymon.c
346
if ((fd = open(pmptr->p_device, O_RDONLY|O_NONBLOCK|O_NOCTTY)) < 0) {
usr/src/cmd/ttymon/ttymon.c
380
if ((fd = open(pmptr->p_device, O_RDWR)) == -1)
usr/src/cmd/ttymon/ttymon.c
394
} else if ((fd = open(pmptr->p_device, O_RDWR|O_NONBLOCK))
usr/src/cmd/ttymon/ttymon.c
467
if ((tmpfd = open(pmptr->p_device, O_RDWR|O_NONBLOCK)) == -1) {
usr/src/cmd/ttymon/ulockf.c
110
fd = open(name, O_RDONLY);
usr/src/cmd/tzreload/tzreload.c
201
if ((fd = open(file, get ? O_RDONLY : O_RDWR)) < 0) {
usr/src/cmd/tzreload/tzreload.c
393
if ((msgfd = open(fifo, O_WRONLY|O_NDELAY)) < 0) {
usr/src/cmd/ucodeadm/ucodeadm.c
1102
if ((dev_fd = open(ucode_dev, O_RDONLY)) == -1) {
usr/src/cmd/ucodeadm/ucodeadm.c
263
if ((fd = open(infile, O_RDONLY)) < 0)
usr/src/cmd/ucodeadm/ucodeadm.c
439
if ((fd = open(filename, O_RDONLY)) == -1)
usr/src/cmd/ucodeadm/ucodeadm.c
476
fd = open(common_path, O_WRONLY | O_CREAT | O_TRUNC,
usr/src/cmd/ucodeadm/ucodeadm.c
532
fd = open(common_path, O_WRONLY | O_CREAT | O_TRUNC,
usr/src/cmd/ucodeadm/ucodeadm.c
608
if ((fd = open(firstname, O_WRONLY | O_CREAT | O_TRUNC,
usr/src/cmd/unpack/unpack.c
347
if ((infile = open(filename, O_RDONLY)) == -1) {
usr/src/cmd/utmp_update/utmp_update.c
163
if ((devfd = open("/dev", O_RDONLY)) < 0) {
usr/src/cmd/utmp_update/utmp_update.c
480
if ((fd = open(line, O_WRONLY|O_NOCTTY|O_NONBLOCK)) == -1) {
usr/src/cmd/utmpd/utmpd.c
1064
if ((fd = open(psinfoname, O_RDONLY)) < 0 ||
usr/src/cmd/utmpd/utmpd.c
269
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/utmpd/utmpd.c
270
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/utmpd/utmpd.c
271
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/utmpd/utmpd.c
301
if ((WTMPXfd = open(WTMPX_FILE, O_RDONLY)) < 0)
usr/src/cmd/utmpd/utmpd.c
612
Pfd = open(UTMPPIPE, O_RDWR | O_NDELAY);
usr/src/cmd/utmpd/utmpd.c
888
if ((fd = open(procname, O_RDONLY)) >= 0) {
usr/src/cmd/varpd/varpd.c
153
fd = open(VARPD_RUNDIR, O_RDONLY);
usr/src/cmd/varpd/varpd.c
175
dupfd = open(_PATH_DEVNULL, O_RDONLY);
usr/src/cmd/vgrind/vgrindefs.c
59
tf = open(filename, 0);
usr/src/cmd/vi/port/ex_cmdsub.c
842
io = open(fn, 0);
usr/src/cmd/vi/port/ex_io.c
301
open("/dev/null", 1);
usr/src/cmd/vi/port/ex_io.c
390
io = open(file, 0);
usr/src/cmd/vi/port/ex_io.c
604
io = open(file, 1);
usr/src/cmd/vi/port/ex_io.c
641
io = open(file, 1);
usr/src/cmd/vi/port/ex_io.c
860
if (open(fil, 0) < 0) {
usr/src/cmd/vi/port/ex_unix.c
401
tfile = open(tfname, 2);
usr/src/cmd/vi/port/ex_vget.c
852
ftfd = open(ftname, 0);
usr/src/cmd/vi/port/expreserve.c
203
if (open(name, O_RDWR) < 0)
usr/src/cmd/vi/port/expreserve.c
386
} while (((fd = open(path, O_CREAT|O_EXCL|O_WRONLY, 0600)) < 0) &&
usr/src/cmd/vi/port/exrecover.c
345
f = open(filname, 0);
usr/src/cmd/vi/port/exrecover.c
572
tfile = open(name, 2);
usr/src/cmd/vntsd/common.c
182
drvfd = open(path, O_RDWR);
usr/src/cmd/vntsd/vntsd.c
463
vntsdp->ctrl_fd = open(path, O_RDWR);
usr/src/cmd/vntsd/vntsd.c
502
fd = open("/dev/null", O_RDWR);
usr/src/cmd/vscan/vscand/vs_icap.c
1044
if ((ctx->vsc_repair_fd = open(ctx->vsc_repair_fname,
usr/src/cmd/vscan/vscand/vs_icap.c
242
fd = open(devname, O_RDONLY);
usr/src/cmd/vscan/vscand/vs_icap.c
247
fd = open(devname, O_RDONLY);
usr/src/cmd/vscan/vscand/vs_main.c
422
if ((fd = open("/dev/null", O_RDWR)) >= 0) {
usr/src/cmd/vscan/vscand/vs_main.c
447
if ((fd = open(filepath, O_RDONLY | O_CREAT, access_mode)) == -1) {
usr/src/cmd/vscan/vscand/vs_main.c
737
if ((vscand_kdrv_fd = open(devname, O_RDONLY)) < 0) {
usr/src/cmd/vt/vtdaemon.c
1131
if ((doorfd = open(vt_door_path, O_CREAT|O_RDWR,
usr/src/cmd/vt/vtdaemon.c
1276
if ((daemonfd = open(VT_DAEMON_CONSOLE_FILE, O_RDWR)) < 0) {
usr/src/cmd/vt/vtdaemon.c
1363
if ((fd = open(VT_DAEMON_CONSOLE_FILE, O_WRONLY)) < 0)
usr/src/cmd/vt/vtdaemon.c
294
if ((fd = open("/dev/console", O_RDONLY)) < 0)
usr/src/cmd/vt/vtdaemon.c
317
if ((fd = open(VT_DAEMON_CONSOLE_FILE, O_WRONLY)) < 0)
usr/src/cmd/vt/vtdaemon.c
892
if ((fd = open(VT_DAEMON_CONSOLE_FILE, O_RDONLY)) < 0)
usr/src/cmd/vt/vtdaemon.c
902
if ((fd = open(vtname, O_RDONLY)) < 0)
usr/src/cmd/vt/vtinfo.c
45
if ((fd = open("/dev/vt/0", O_RDONLY)) < 0)
usr/src/cmd/w/w.c
689
fd = open(path, oflag);
usr/src/cmd/wall/wall.c
386
if ((fd = open(s, O_WRONLY|O_NOCTTY|O_NONBLOCK)) == -1) {
usr/src/cmd/who/who.c
419
if ((fildes = open("/etc/inittab",
usr/src/cmd/whodo/whodo.c
914
fd = open(path, oflag);
usr/src/cmd/write/write.c
528
if ((fildes = open(term, O_WRONLY|O_NOCTTY)) < 0)
usr/src/cmd/xargs/xargs.c
203
if ((PROMPT = open("/dev/tty", O_RDONLY)) == -1) {
usr/src/cmd/xhci/xhci_portsc.c
163
fd = open(path, O_RDWR);
usr/src/cmd/xhci/xhci_portsc.c
189
fd = open(path, O_RDWR);
usr/src/cmd/xhci/xhci_portsc.c
219
fd = open(path, O_RDWR);
usr/src/cmd/ypcmd/shared/lockmap.c
183
lockfile = open(LOCKFILE, O_RDWR|O_CREAT, 0600);
usr/src/cmd/ypcmd/udpublickey.c
169
open("/dev/null", O_RDWR, 0);
usr/src/cmd/ypcmd/yp_b_subr.c
1288
fd = open(pdom->cache_file, O_CREAT|O_WRONLY, 0444);
usr/src/cmd/ypcmd/yp_b_subr.c
1365
fd = open(filename, O_CREAT|O_WRONLY, 0444); /* readable by all */
usr/src/cmd/ypcmd/yp_b_subr.c
1410
fd = open(filename, O_CREAT|O_WRONLY, 0444); /* readable by all */
usr/src/cmd/ypcmd/yp_b_svc.c
289
(void) open("/dev/null", O_RDONLY);
usr/src/cmd/ypcmd/yp_b_svc.c
290
(void) open("/dev/null", O_WRONLY);
usr/src/cmd/ypcmd/yppasswd/changepasswd.c
234
if ((npwfd = open(newpasswdfile, O_WRONLY | O_CREAT | O_EXCL,
usr/src/cmd/ypcmd/yppasswd/changepasswd.c
257
if ((nspfd = open(newshadowfile, O_WRONLY | O_CREAT | O_EXCL,
usr/src/cmd/ypcmd/yppasswd/changepasswd.c
283
if ((nadjfd = open(newadjunctfile, O_WRONLY | O_CREAT | O_EXCL,
usr/src/cmd/ypcmd/ypserv.c
239
(void) open("/dev/tty", 2);
usr/src/cmd/ypcmd/ypupdated/rpc.ypupdated.c
186
tt = open("/dev/tty", O_RDWR, 0);
usr/src/cmd/ypcmd/ypupdated/rpc.ypupdated.c
191
open("/dev/null", O_RDWR, 0);
usr/src/cmd/ypcmd/ypxfr.c
1355
if ((f = open(dbfile, (O_WRONLY | O_CREAT | O_TRUNC), 0600)) >= 0) {
usr/src/cmd/ypcmd/ypxfr.c
1360
if ((f = open(dbfile, (O_WRONLY | O_CREAT | O_TRUNC),
usr/src/cmd/ypcmd/ypxfrd_svc.c
246
i = open("/dev/null", 2);
usr/src/cmd/zfs/zfs_main.c
7576
} else if ((fd = open(filename, O_RDONLY)) < 0) {
usr/src/cmd/zfs/zfs_project.c
105
fd = open(name, O_RDONLY | O_NOCTTY);
usr/src/cmd/zfs/zfs_project.c
130
fd = open(name, O_RDONLY | O_NOCTTY);
usr/src/cmd/zinject/zinject.c
773
if ((zfs_fd = open(ZFS_DEV, O_RDWR)) < 0) {
usr/src/cmd/zlogin/zlogin.c
1422
if ((*lockfd = open(pathbuf, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) {
usr/src/cmd/zlogin/zlogin.c
1462
if ((doorfd = open(doorpath, O_RDONLY)) < 0) {
usr/src/cmd/zlogin/zlogin.c
2084
if ((nfd = open(_PATH_DEVNULL, O_RDONLY)) < 0) {
usr/src/cmd/zlogin/zlogin.c
2223
if ((newslave = open(slavename, O_RDWR)) == -1) {
usr/src/cmd/zlogin/zlogin.c
341
if ((masterfd = open("/dev/ptmx", O_RDWR|O_NONBLOCK)) < 0) {
usr/src/cmd/zlogin/zlogin.c
400
if ((slavefd = open(zoneslavename, O_RDWR)) < 0) {
usr/src/cmd/zlook/zlook.c
307
if ((fd = open(ZUT_DEV, O_RDONLY)) < 0) {
usr/src/cmd/zoneadm/zoneadm.c
4535
if ((fd = open(manifest_path, O_RDONLY)) < 0) {
usr/src/cmd/zoneadm/zoneadm.c
4547
if ((ofd = open(tmpname, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR)) < 0) {
usr/src/cmd/zoneadm/zoneadm.c
4570
if ((fd = open(tmpname, O_RDONLY)) < 0) {
usr/src/cmd/zoneadm/zoneadm.c
5315
if ((procfd = open(procpath, O_RDONLY)) == -1)
usr/src/cmd/zoneadmd/vplat.c
3286
if ((fd = open("/dev/tcp", O_RDONLY)) < 0) {
usr/src/cmd/zoneadmd/vplat.c
4018
if ((fd = open(map_path, O_RDWR | O_CREAT | O_EXCL,
usr/src/cmd/zoneadmd/vplat.c
5211
fd = open(ZONE_INDEX_FILE, O_WRONLY|O_CREAT|O_TRUNC,
usr/src/cmd/zoneadmd/vplat.c
818
(void) open("/dev/null", O_RDONLY); /* stdin */
usr/src/cmd/zoneadmd/vplat.c
819
(void) open("/dev/null", O_WRONLY); /* stdout */
usr/src/cmd/zoneadmd/vplat.c
820
(void) open("/dev/null", O_WRONLY); /* stderr */
usr/src/cmd/zoneadmd/zcons.c
277
if ((managerfd = open(conspath, O_RDWR | O_NOCTTY)) != -1) {
usr/src/cmd/zoneadmd/zcons.c
280
if ((subfd = open(conspath, O_RDWR | O_NOCTTY)) != -1) {
usr/src/cmd/zoneadmd/zcons.c
416
if ((managerfd = open(conspath, O_RDWR | O_NOCTTY)) == -1) {
usr/src/cmd/zoneadmd/zcons.c
424
if ((subfd = open(conspath, O_RDWR | O_NOCTTY)) == -1) {
usr/src/cmd/zoneadmd/zcons.c
919
managerfd = open(conspath, O_RDWR|O_NONBLOCK|O_NOCTTY);
usr/src/cmd/zoneadmd/zoneadmd.c
1725
if ((doorfd = open(zone_door_path, O_CREAT|O_RDWR,
usr/src/cmd/zoneadmd/zoneadmd.c
517
fd = open(ZS_DOOR_PATH, O_RDONLY);
usr/src/cmd/zonestat/zonestatd/zonestatd.c
2524
int *fd, *open;
usr/src/cmd/zonestat/zonestatd/zonestatd.c
2538
open = &ctl->zsctl_proc_open;
usr/src/cmd/zonestat/zonestatd/zonestatd.c
2544
open = &ctl->zsctl_proc_open_next;
usr/src/cmd/zonestat/zonestatd/zonestatd.c
2548
*open = 0;
usr/src/cmd/zonestat/zonestatd/zonestatd.c
2601
*open = 1;
usr/src/cmd/zonestat/zonestatd/zonestatd.c
2606
*open = 0;
usr/src/cmd/zonestat/zonestatd/zonestatd.c
2672
fd = open(path, O_RDONLY);
usr/src/cmd/zonestat/zonestatd/zonestatd.c
775
fd = open(path, O_CREAT|O_RDWR, 0644);
usr/src/cmd/zpool/zpool_main.c
8496
int fd = open(ZFS_DEV, O_RDWR);
usr/src/cmd/zpool/zpool_main.c
998
if ((fd = open(vdev, O_RDWR)) < 0) {
usr/src/cmd/zpool/zpool_vdev.c
1038
if ((fd = open(buf, O_RDONLY)) < 0) {
usr/src/cmd/zpool/zpool_vdev.c
1122
if ((fd = open(path, O_RDONLY)) < 0)
usr/src/cmd/zpool/zpool_vdev.c
302
if ((fd = open(file, O_RDONLY)) < 0)
usr/src/cmd/zpool/zpool_vdev.c
372
if ((fd = open(path, O_RDWR | O_NDELAY)) < 0)
usr/src/cmd/zpool/zpool_vdev.c
518
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/cmd/zpool/zpool_vdev.c
739
if ((fd = open(path, O_RDONLY)) >= 0) {
usr/src/cmd/ztest/ztest.c
3484
if ((fd = open(vd->vdev_path, O_RDWR)) == -1)
usr/src/cmd/ztest/ztest.c
5818
fd = open(pathrand, O_RDWR);
usr/src/cmd/ztest/ztest.c
7268
ztest_fd_rand = open("/dev/urandom", O_RDONLY);
usr/src/cmd/ztest/ztest.c
951
int fd = open(path, O_RDWR | O_CREAT | O_TRUNC, 0666);
usr/src/common/ficl/emu/gfx_fb.c
72
fb.fd = open("/dev/fb", O_RDWR);
usr/src/common/ficl/emu/loader_emu.c
1092
if ((hfd = open(buf, O_RDONLY)) < 0) {
usr/src/common/ficl/emu/loader_emu.c
1571
fd = open(cp, O_RDONLY);
usr/src/common/ficl/emu/loader_emu.c
1649
if (((fd = open(path, O_RDONLY)) == -1)) {
usr/src/common/ficl/emu/loader_emu.c
783
fd = open(rc, O_RDONLY);
usr/src/common/ficl/ficlplatform/pager.c
159
if ((fd = open(fname, O_RDONLY)) == -1) {
usr/src/common/ficl/loader.c
694
fd = open(name, mode);
usr/src/common/ficl/loader.c
787
fd = open(name, O_RDONLY);
usr/src/common/pnglite/pnglite.c
186
png->fd = open(filename, O_RDONLY);
usr/src/common/smbios/smb_info.c
320
int fd = open("/etc/smbios_product", O_RDONLY);
usr/src/grub/grub-0.97/grub/asmstub.c
1123
serial_fd = open (serial_device,
usr/src/grub/grub-0.97/grub/asmstub.c
785
disks[drive].flags = open (devname, O_RDWR);
usr/src/grub/grub-0.97/grub/asmstub.c
791
disks[drive].flags = open (devname, O_RDONLY);
usr/src/grub/grub-0.97/lib/device.c
146
fd = open (map[drive], O_RDONLY);
usr/src/grub/grub-0.97/lib/device.c
895
fd = open (dev, O_RDWR);
usr/src/head/fcntl.h
117
#define open64 open
usr/src/head/fcntl.h
132
extern int open(const char *, int, ...);
usr/src/lib/abi/apptrace/common/apptrace.c
246
fd = open(str, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr/src/lib/auditd_plugins/binfile/binfile.c
527
newfd = open(newname,
usr/src/lib/cfgadm_plugins/ac/common/mema.c
472
if ((fd = open(bank_spec, ((fdp != NULL) ? O_RDWR : O_RDONLY), 0)) ==
usr/src/lib/cfgadm_plugins/ac/common/mema_prom.c
76
prom_fd = open(PROMDEV, O_RDONLY);
usr/src/lib/cfgadm_plugins/ac/common/mema_prom.c
92
prom_fd = open(PROMDEV, O_RDWR);
usr/src/lib/cfgadm_plugins/ccid/common/cfga_ccid.c
325
if ((fd = open(ap, O_RDWR)) < 0) {
usr/src/lib/cfgadm_plugins/ccid/common/cfga_ccid.c
70
if ((fd = open(ap, O_RDWR)) < 0) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
888
fcp_fd = open(FCP_PATH, O_RDONLY | O_NDELAY);
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
893
fcp_fd = open(FCP_PATH, O_RDONLY|O_NDELAY);
usr/src/lib/cfgadm_plugins/fp/common/cfga_rep.c
248
if ((fd = open(FAB_REPOSITORY, O_RDWR | O_CREAT)) == -1) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_rep.c
314
if ((copy_fd = open(copy_rep, O_RDWR | O_CREAT | O_TRUNC,
usr/src/lib/cfgadm_plugins/fp/common/cfga_rep.c
442
if ((tmp_fd = open(tmp_rep, O_RDWR|O_CREAT|O_TRUNC,
usr/src/lib/cfgadm_plugins/fp/common/cfga_rep.c
537
if ((tmp_fd = open(tmp_rep, O_RDWR|O_CREAT|O_TRUNC,
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
1170
if ((apid_fd = open(IB_STATIC_APID, O_RDONLY)) == -1) {
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
740
if ((ibcfg_fd = open(ibconf_file, O_RDWR, 0666)) == -1) {
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
761
if ((fd = open(IB_STATIC_APID, O_RDONLY)) == -1) {
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1114
if ((fd = open(ap_id, O_RDWR)) == -1) {
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1615
if ((fd = open(ap_id, O_RDWR)) == -1) {
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
278
if ((fd = open(ap_id, O_RDWR)) == -1) {
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
880
if ((fd = open(ap_id, O_RDWR)) == -1) {
usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.c
2007
if ((fd = open(ap_id, O_RDONLY)) == -1) {
usr/src/lib/cfgadm_plugins/sbd/common/ap_sbd.c
101
if ((fd = open(a->path, oflag, 0)) == -1) {
usr/src/lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/common/opl_dev_led.c
111
scf_fd = open(SCF_DRV, O_RDWR);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1083
*fdp = open(SCFGA_LOCK, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR);
usr/src/lib/cfgadm_plugins/sysctrl/common/cfga.c
1127
else if (((fd = open(ap_id, O_RDWR, 0)) == -1) ||
usr/src/lib/cfgadm_plugins/sysctrl/common/cfga.c
540
if ((fd = open(ap_id, O_RDWR, 0)) == -1)
usr/src/lib/cfgadm_plugins/sysctrl/common/cfga.c
574
if ((sim_fd = open("/tmp/cfga_simdata", O_RDWR|O_CREAT)) == -1) {
usr/src/lib/cfgadm_plugins/sysctrl/common/cfga.c
590
} else if ((fd = open(ap_id, O_RDWR, 0)) == -1)
usr/src/lib/cfgadm_plugins/sysctrl/common/cfga.c
607
return (open(a, b, c));
usr/src/lib/cfgadm_plugins/sysctrl/common/cfga.c
724
if ((prom_fd = open(promdev, O_RDWR, 0)) < 0)
usr/src/lib/cfgadm_plugins/sysctrl/common/cfga.c
771
if ((prom_fd = open(promdev, O_RDWR, 0)) < 0)
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
757
file = open(usbconf_file, O_RDWR, 0666);
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
641
if ((fd = open(ap_id, O_RDONLY)) == -1) {
usr/src/lib/crypt_modules/bsdbf/arc4random.c
97
fd = open("/dev/urandom", O_RDONLY);
usr/src/lib/crypt_modules/bsdmd5/bsdmd5.c
194
if ((fd = open("/dev/urandom", O_RDONLY)) == -1) {
usr/src/lib/crypt_modules/sha256/crypt_sha.c
391
if ((fd = open("/dev/urandom", O_RDONLY)) == -1) {
usr/src/lib/crypt_modules/sunmd5/sunmd5.c
199
if ((fd = open("/dev/random", O_RDONLY)) == -1) {
usr/src/lib/fm/libdiskstatus/common/libdiskstatus.c
78
if ((dsp->ds_fd = open(path, O_RDWR)) < 0) {
usr/src/lib/fm/libfmd_agent/common/fmd_agent.c
169
if ((fd = open("/dev/fm", mode)) < 0)
usr/src/lib/fm/libseslog/common/libseslog.c
57
fd = open(device_name, oflags);
usr/src/lib/fm/topo/libtopo/common/mod.c
120
if ((fd = open(objpath, O_RDONLY)) < 0) {
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
946
ret = open(path, oflags);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
2139
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/lib/fm/topo/modules/common/disk/disk_mptsas.c
47
if ((fd = open(devctl, O_RDWR)) == -1) {
usr/src/lib/fm/topo/modules/common/fac_prov_ahci/fac_prov_ahci.c
89
if ((fd = open(devctl, (set ? O_RDWR : O_RDONLY))) == -1) {
usr/src/lib/fm/topo/modules/common/fac_prov_mptsas/fac_prov_mptsas.c
90
if ((fd = open(devctl, (set ? O_RDWR : O_RDONLY))) == -1) {
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
160
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
60
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/lib/fm/topo/modules/common/smbios/smbios_enum.c
599
if ((mc_fd = open("/dev/mc/mc0", O_RDONLY)) < 0)
usr/src/lib/fm/topo/modules/common/ufm/topo_ufm.c
199
fd = open(DDI_UFM_DEV, O_RDONLY);
usr/src/lib/fm/topo/modules/common/zen/topo_zen.c
782
zen->zt_fd = open(topo_zen_dev, O_RDONLY);
usr/src/lib/fm/topo/modules/i86pc/chip/chip.c
782
int fd = open("/dev/xen/domcaps", O_RDONLY);
usr/src/lib/fm/topo/modules/i86pc/chip/chip_amd.c
315
fd = open(path, O_RDONLY);
usr/src/lib/fm/topo/modules/i86pc/chip/chip_amd.c
326
fd = open(path, O_RDONLY);
usr/src/lib/fm/topo/modules/i86pc/chip/chip_intel.c
106
mc_fd = open("/dev/mc/mc", O_RDONLY);
usr/src/lib/fm/topo/modules/i86pc/chip/chip_intel.c
116
mc_fd = open(path, O_RDONLY);
usr/src/lib/fm/topo/modules/i86pc/x86pi/x86pi_subr.c
577
fd = open("/dev/fm", O_RDONLY);
usr/src/lib/gss_mechs/mech_dh/backend/mech/context.c
188
int *open /* True if the context is established */)
usr/src/lib/gss_mechs/mech_dh/backend/mech/context.c
245
if (open)
usr/src/lib/gss_mechs/mech_dh/backend/mech/context.c
246
*open = (cntx->state == ESTABLISHED);
usr/src/lib/gss_mechs/mech_dummy/mech/dmech.c
1092
locally_initiated, open)
usr/src/lib/gss_mechs/mech_dummy/mech/dmech.c
1102
int *open;
usr/src/lib/gss_mechs/mech_dummy/mech/dmech.c
1141
if (open)
usr/src/lib/gss_mechs/mech_dummy/mech/dmech.c
1142
*open = ctx->established;
usr/src/lib/gss_mechs/mech_krb5/krb5/os/krbfileio.c
31
fd = open(pathname, open_flag | O_BINARY, 0600);
usr/src/lib/gss_mechs/mech_krb5/krb5/os/safechown.c
28
if ((fd = open(src, O_RDONLY, 0)) == -1)
usr/src/lib/gss_mechs/mech_krb5/mech/krb5_gss_glue.c
813
locally_initiated, open)
usr/src/lib/gss_mechs/mech_krb5/mech/krb5_gss_glue.c
823
int *open;
usr/src/lib/gss_mechs/mech_krb5/mech/krb5_gss_glue.c
828
open));
usr/src/lib/gss_mechs/mech_krb5/profile/prof_solaris.c
957
fd = open(*filenames, O_RDWR|O_CREAT|O_NOFOLLOW|O_NOLINKS, mode);
usr/src/lib/iconv_modules/euro/utils/gentbl/debug.c
43
if ((fd = open(argv[1], O_RDONLY)) == -1) {
usr/src/lib/iconv_modules/euro/utils/gentbl/rewritetbl.c
41
if ((fd = open(argv[1], O_RDONLY)) == -1) {
usr/src/lib/iconv_modules/ko/common/comb_to_byte.c
201
if((fd = open(*++argv,0)) == -1){
usr/src/lib/iconv_modules/zh/common/UTF-8%zh_CN.iso2022-CN.c
592
if ((fd = open(argv[1], O_RDONLY)) == -1) {
usr/src/lib/iconv_modules/zh/common/zh_CN.gbk%zh_CN.iso2022-CN.c
697
if ((fd = open(argv[1], O_RDONLY)) == -1) {
usr/src/lib/iconv_modules/zh/common/zh_CN.iso2022-7%UTF-8.c
693
if ((fd = open(argv[1], O_RDONLY)) == -1) {
usr/src/lib/iconv_modules/zh/common/zh_CN.iso2022-CN%UTF-8.c
800
if ((fd = open(argv[1], O_RDONLY)) == -1) {
usr/src/lib/iconv_modules/zh/common/zh_CN.iso2022-CN%zh_CN.euc.c
895
if ((fd = open(argv[1], O_RDONLY)) == -1) {
usr/src/lib/iconv_modules/zh/common/zh_CN.iso2022-CN%zh_CN.gbk.c
757
if ((fd = open(argv[1], O_RDONLY)) == -1) {
usr/src/lib/krb5/kadm5/srv/server_dict.c
119
if ((fd = open(params->dict_file, O_RDONLY)) == -1) {
usr/src/lib/krb5/kdb/kdb_log.c
558
if ((ulogfd = open(logname, O_RDWR+O_CREAT, 0600)) == -1) {
usr/src/lib/krb5/kdb/kdb_log.c
579
if ((ulogfd = open(logname, O_RDWR, 0600)) == -1) {
usr/src/lib/krb5/plugins/kdb/db2/kdb_db2.c
348
if ((db_ctx->db_lf_file = open(filename, O_RDWR, 0666)) < 0) {
usr/src/lib/krb5/plugins/kdb/db2/kdb_db2.c
349
if ((db_ctx->db_lf_file = open(filename, O_RDONLY, 0666)) < 0) {
usr/src/lib/krb5/plugins/kdb/db2/kdb_db2.c
797
fd = open(okname, O_CREAT | O_RDWR | O_TRUNC, 0600);
usr/src/lib/krb5/plugins/kdb/db2/kdb_db2.c
837
if ((fd = open(filename, O_RDWR, 0)) < 0) {
usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/bt_open.c
204
if ((t->bt_fd = open(fname, flags | O_BINARY, mode)) < 0)
usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash.c
155
if ((hashp->fp = open(file, flags|O_BINARY, mode)) == -1)
usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/rec_open.c
71
if (fname != NULL && (rfd = open(fname, flags | O_BINARY, mode)) < 0)
usr/src/lib/krb5/ss/help.c
69
if ((fd = open(&buffer[0], O_RDONLY)) >= 0) goto got_it;
usr/src/lib/krb5/ss/help.c
71
if ((fd = open(&buffer[0], O_RDONLY)) < 0) {
usr/src/lib/krb5/ss/pager.c
66
fd = open("/dev/tty", O_WRONLY, 0);
usr/src/lib/lib9p/common/backend/backend.h
38
int (*open)(void *, struct l9p_request *);
usr/src/lib/lib9p/common/backend/fs.c
3132
backend->open = fs_open;
usr/src/lib/lib9p/common/request.c
754
error = be->open(be->softc, req);
usr/src/lib/libadm/common/devreserv.c
189
lkfilefd = open(lockname, O_RDWR|O_CREAT, 0600);
usr/src/lib/libadm/common/putdev.c
179
if ((fd = open(oldname, O_WRONLY)) == -1)
usr/src/lib/libadm/common/putdgrp.c
148
if ((fd = open(oldname, O_WRONLY)) == -1)
usr/src/lib/libbe/common/be_activate.c
906
if ((fd = open(diskname, O_RDONLY|O_NDELAY)) < 0)
usr/src/lib/libbsm/common/audit_cron.c
192
if ((fd = open(fname, O_CREAT|O_WRONLY|O_TRUNC, 0200)) == -1)
usr/src/lib/libbsm/common/audit_cron.c
99
if ((fd = open(fname_aux, O_RDONLY)) == -1) {
usr/src/lib/libbsm/common/devalloc.c
1192
if ((lockfd = open(lockfile, O_RDWR | O_CREAT, 0600)) == -1)
usr/src/lib/libbsm/common/devalloc.c
1282
if ((fda = open(fname, oflag, DA_DBMODE)) == -1) {
usr/src/lib/libbsm/common/devalloc.c
1317
if ((fdm = open(fname, oflag, DA_DBMODE)) == -1) {
usr/src/lib/libbsm/common/devalloc.c
1445
if ((tmpfd = open(tmpdefpath, O_RDWR|O_CREAT, DA_DBMODE)) == -1) {
usr/src/lib/libbsm/common/devalloc.c
1583
if ((tafd = open(apathp, O_RDWR|O_CREAT, DA_DBMODE)) == -1) {
usr/src/lib/libbsm/common/devalloc.c
1673
if ((tmfd = open(mpathp, O_RDWR|O_CREAT, DA_DBMODE)) == -1) {
usr/src/lib/libbsm/common/devalloc.c
209
if ((fd = open(fname, O_RDONLY)) == -1) {
usr/src/lib/libbsm/common/devalloc.c
92
if ((fd = open(LOGINDEVPERM, O_RDONLY)) == -1)
usr/src/lib/libc/i386/sys/ptrace.c
171
if ((fd = open(procname, O_WRONLY, 0)) < 0)
usr/src/lib/libc/i386/sys/ptrace.c
490
if ((fd = open(procname, omode, 0)) < 0 ||
usr/src/lib/libc/i386/sys/ptrace.c
495
if ((fd = open(procname, O_WRONLY, 0)) < 0 ||
usr/src/lib/libc/i386/sys/ptrace.c
500
if ((fd = open(procname, O_RDONLY, 0)) < 0 ||
usr/src/lib/libc/i386/sys/ptrace.c
703
if ((fd = open(procname, O_RDONLY, 0)) < 0) {
usr/src/lib/libc/i386/sys/ptrace.c
728
if ((fd = open(procname, O_RDONLY, 0)) >= 0) {
usr/src/lib/libc/port/gen/attropen.c
89
if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) {
usr/src/lib/libc/port/gen/crypt.c
503
if ((configfd = open(CRYPT_CONFFILE, O_RDONLY)) == -1) {
usr/src/lib/libc/port/gen/daemon.c
78
if ((fd = open("/dev/null", O_RDWR)) == -1)
usr/src/lib/libc/port/gen/fts.c
1031
if (fd < 0 && (newfd = open(path, O_RDONLY|O_CLOEXEC)) < 0)
usr/src/lib/libc/port/gen/fts.c
176
(sp->fts_rfd = open(".", O_RDONLY | O_CLOEXEC)) < 0)
usr/src/lib/libc/port/gen/fts.c
302
open(".", O_RDONLY | O_CLOEXEC)) < 0) {
usr/src/lib/libc/port/gen/fts.c
392
open(".", O_RDONLY | O_CLOEXEC)) < 0) {
usr/src/lib/libc/port/gen/fts.c
530
if ((fd = open(".", O_RDONLY | O_CLOEXEC)) < 0)
usr/src/lib/libc/port/gen/getauxv.c
64
if ((fd = open("/proc/self/auxv", O_RDONLY)) != -1 &&
usr/src/lib/libc/port/gen/gettxt.c
175
if ((fd = open(pathname, O_RDONLY)) == -1 ||
usr/src/lib/libc/port/gen/getut.c
147
if ((fd = open(_compat_utmpfile, O_RDWR|O_CREAT, 0644)) < 0) {
usr/src/lib/libc/port/gen/getut.c
154
if ((fd = open(_compat_utmpfile, O_RDONLY)) < 0)
usr/src/lib/libc/port/gen/getut.c
430
fd = open(file, O_WRONLY | O_APPEND);
usr/src/lib/libc/port/gen/getut.c
433
if ((fd = open(file, O_WRONLY|O_CREAT, 0644)) < 0)
usr/src/lib/libc/port/gen/getut.c
669
if ((fd = open(_compat_utmpfile, O_RDWR|O_CREAT, 0644)) < 0)
usr/src/lib/libc/port/gen/getutx.c
1081
if ((lockfd = open(UTMPX_FILE, O_RDWR|O_CREAT, 0644)) < 0)
usr/src/lib/libc/port/gen/getutx.c
1127
pfd = open(IPIPE, O_RDWR);
usr/src/lib/libc/port/gen/getutx.c
1347
pfd = open(UPIPE, O_RDWR | O_NONBLOCK | O_NDELAY);
usr/src/lib/libc/port/gen/getutx.c
194
if ((fd = open(utmpxfile, O_RDWR|O_CREAT, 0644)) < 0) {
usr/src/lib/libc/port/gen/getutx.c
202
if ((fd = open(utmpxfile, O_RDONLY)) < 0)
usr/src/lib/libc/port/gen/getutx.c
872
if ((wfdx = open(filex, O_WRONLY | O_APPEND)) < 0)
usr/src/lib/libc/port/gen/getxby_door.c
719
if ((fd = open(fname, O_RDONLY)) >= 0) {
usr/src/lib/libc/port/gen/gtxt.c
161
if ((fd = open(pathname, O_RDONLY)) != -1 &&
usr/src/lib/libc/port/gen/iconv.c
268
fd = open(_ENCODING_ALIAS_PATH, O_RDONLY);
usr/src/lib/libc/port/gen/lfmt_log.c
113
fdd = open(LOG_CONSOLE, O_WRONLY);
usr/src/lib/libc/port/gen/lfmt_log.c
92
((fd = open(LOGNAME, O_WRONLY)) == -1 ||
usr/src/lib/libc/port/gen/localtime.c
1467
if ((fid = open(fullname, O_RDONLY)) == -1) {
usr/src/lib/libc/port/gen/localtime.c
2429
if ((fd = open(TZSYNC_FILE, O_RDONLY)) < 0)
usr/src/lib/libc/port/gen/mkstemp.c
101
if ((fd = open(as, O_CREAT|O_EXCL|O_RDWR|flags,
usr/src/lib/libc/port/gen/nlspath_checks.c
99
fd = open(path, O_RDONLY);
usr/src/lib/libc/port/gen/pt.c
260
return (open("/dev/ptmx", oflag));
usr/src/lib/libc/port/gen/syslog.c
220
if ((procfd = open(procfile, O_RDONLY)) >= 0) {
usr/src/lib/libc/port/gen/syslog.c
372
if (((fd = open(sysmsg, O_WRONLY)) >= 0) ||
usr/src/lib/libc/port/gen/syslog.c
373
(fd = open(ctty, O_WRONLY)) >= 0) {
usr/src/lib/libc/port/gen/syslog.c
397
if ((d = open(DOORFILE, O_RDONLY)) < 0)
usr/src/lib/libc/port/gen/syslog.c
450
LogFile = open(logname, O_WRONLY);
usr/src/lib/libc/port/gen/truncate.c
83
if ((fd = open(path, O_WRONLY)) == -1 || ftruncate(fd, len) == -1)
usr/src/lib/libc/port/gen/ttyname.c
639
if ((fd = open(TTYSRCH, 0)) < 0)
usr/src/lib/libc/port/gen/ttyname.c
747
int tfd = open("/dev/console", O_WRONLY);
usr/src/lib/libc/port/gen/walkstack.c
238
if ((fd = open("/proc/self/as", O_RDONLY)) < 0)
usr/src/lib/libc/port/locale/collate.c
94
if ((fd = open(buf, O_RDONLY)) < 0) {
usr/src/lib/libc/port/locale/ldpart.c
70
if ((fd = open(filename, O_RDONLY)) < 0)
usr/src/lib/libc/port/locale/rune.c
69
if ((fd = open(fname, O_RDONLY)) < 0) {
usr/src/lib/libc/port/stdio/_endopen.c
71
fd = open(name, oflag, 0666);
usr/src/lib/libc/port/stdio/popen.c
125
myfd = open("/dev/null", O_RDWR);
usr/src/lib/libc/port/sys/epoll.c
118
if ((fd = open("/dev/poll", oflags)) == -1)
usr/src/lib/libc/port/sys/epoll.c
92
if ((fd = open("/dev/poll", O_RDWR)) == -1)
usr/src/lib/libc/port/sys/eventfd.c
41
if ((fd = open("/dev/eventfd", oflags)) < 0)
usr/src/lib/libc/port/sys/signalfd.c
41
if ((fd = open("/dev/signalfd", oflags)) < 0)
usr/src/lib/libc/port/sys/timerfd.c
39
if ((fd = open("/dev/timerfd", oflags)) < 0)
usr/src/lib/libc/port/threads/scalls.c
865
return (open(path, O_WRONLY | O_CREAT | O_TRUNC, mode));
usr/src/lib/libc/sparc/sys/ptrace.c
173
if ((fd = open(procname, O_WRONLY, 0)) < 0)
usr/src/lib/libc/sparc/sys/ptrace.c
500
if ((fd = open(procname, omode, 0)) < 0 ||
usr/src/lib/libc/sparc/sys/ptrace.c
505
if ((fd = open(procname, O_WRONLY, 0)) < 0 ||
usr/src/lib/libc/sparc/sys/ptrace.c
510
if ((fd = open(procname, O_RDONLY, 0)) < 0 ||
usr/src/lib/libc/sparc/sys/ptrace.c
715
if ((fd = open(procname, O_RDONLY, 0)) < 0) {
usr/src/lib/libc/sparc/sys/ptrace.c
740
if ((fd = open(procname, O_RDONLY, 0)) >= 0) {
usr/src/lib/libcmdutils/common/process_xattrs.c
43
pwdfd = open(".", O_RDONLY);
usr/src/lib/libcmdutils/common/process_xattrs.c
98
if ((srcfd = open(infile, O_RDONLY)) == -1) {
usr/src/lib/libcontract/common/libcontract_priv.c
131
if ((fd = open("/proc/self/psinfo", O_RDONLY)) == -1)
usr/src/lib/libcpc/common/libcpc.c
523
if ((fd = open(CPUDRV_SHARED, O_RDWR)) < 0) {
usr/src/lib/libcpc/common/obsoleted.c
214
return (open(driver, O_RDWR));
usr/src/lib/libcrypt/common/des.c
56
#define getdesfd() (open("/dev/des", 0, 0))
usr/src/lib/libcryptoutil/common/keyfile.c
59
if ((fd = open(filename, O_RDONLY | O_NONBLOCK)) == -1) {
usr/src/lib/libcryptoutil/common/random.c
71
if ((fd = open(path, oflag, pmode)) >= 0) {
usr/src/lib/libctf/common/ctf_elfwrite.c
405
if ((ifd = open(input, O_RDONLY)) < 0)
usr/src/lib/libctf/common/ctf_elfwrite.c
411
if ((ofd = open(output, O_RDWR | O_CREAT | O_TRUNC, st.st_mode)) < 0)
usr/src/lib/libctf/common/ctf_lib.c
765
if ((fd = open(path, O_CREAT | O_TRUNC | O_RDWR, 0777)) < 0)
usr/src/lib/libcurses/screen/setupterm.c
264
tfd = open(fname, 0);
usr/src/lib/libcurses/screen/setupterm.c
280
tfd = open(fname, 0);
usr/src/lib/libcurses/screen/typeahead.c
107
if ((cur_term->_check_fd = open("/dev/tty", O_RDONLY |
usr/src/lib/libdemangle/common/rust-v0.c
1151
strview_t *restrict sv, boolean_t open)
usr/src/lib/libdemangle/common/rust-v0.c
1167
if (!rust_append(st, open ? ", " : "<"))
usr/src/lib/libdemangle/common/rust-v0.c
1194
boolean_t open = B_FALSE;
usr/src/lib/libdemangle/common/rust-v0.c
1232
open = st->rs_args_is_open;
usr/src/lib/libdemangle/common/rust-v0.c
1237
while (rustv0_parse_dyn_trait_assoc_binding(st, sv, open)) {
usr/src/lib/libdemangle/common/rust-v0.c
1238
open = B_TRUE;
usr/src/lib/libdemangle/common/rust-v0.c
1244
if (open && !rust_appendc(st, '>'))
usr/src/lib/libdevice/devctl.c
460
dcp->fd = open(iocpath, oflags);
usr/src/lib/libdevid/deviceid.c
131
if ((fd = open(path, O_RDONLY)) < 0)
usr/src/lib/libdevinfo/devfsinfo.c
1521
if ((prom_fd = open(promdev, oflag)) < 0) {
usr/src/lib/libdevinfo/devfsmap.c
1239
if ((fd = open(VHCI_CTL_NODE, O_RDWR)) < 0)
usr/src/lib/libdevinfo/devinfo.c
103
while ((fd = open(path, oflag)) == -1 && errno == EAGAIN)
usr/src/lib/libdevinfo/devinfo.c
2848
if ((p->fd = open("/dev/openprom", O_RDONLY)) < 0) {
usr/src/lib/libdevinfo/devinfo_devlink.c
263
if ((fd = open(path, flg, DB_PERMS)) == -1) {
usr/src/lib/libdevinfo/devinfo_devlink.c
3116
again: if ((fd = open(lockfile,
usr/src/lib/libdevinfo/devinfo_devlink.c
3441
if ((rofd = open(DEVNAME_CHECK_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0644))
usr/src/lib/libdevinfo/devinfo_devlink.c
3472
if ((fd = open(synch_door, O_RDONLY)) == -1) {
usr/src/lib/libdevinfo/devinfo_devlink.c
3602
if ((fd = open("/dev/null", O_RDWR)) >= 0) {
usr/src/lib/libdevinfo/devinfo_devlink.c
379
fd = open(di_test_db, O_CREAT|O_RDWR|O_EXCL, 0644);
usr/src/lib/libdevinfo/devinfo_dli.c
106
fd = open(dlipath, oflag, mode);
usr/src/lib/libdhcpagent/common/dhcp_hostconf.c
107
fd = open(ifname_to_hostconf(ifname, isv6), O_RDONLY);
usr/src/lib/libdhcpagent/common/dhcp_hostconf.c
335
fd = open(ifname_to_hostconf(ifname, isv6), O_WRONLY|O_CREAT|O_TRUNC,
usr/src/lib/libdhcpagent/common/dhcp_stable.c
107
if ((fd = open(DUID_FILE, O_WRONLY | O_CREAT, 0644)) == -1)
usr/src/lib/libdhcpagent/common/dhcp_stable.c
198
if ((fd = open(IAID_FILE, O_RDONLY)) == -1)
usr/src/lib/libdhcpagent/common/dhcp_stable.c
224
if ((fd = open(IAID_FILE, O_RDWR | O_CREAT, 0644)) == -1)
usr/src/lib/libdhcpagent/common/dhcp_stable.c
268
if ((fd = open(IAID_FILE, O_RDONLY)) == -1)
usr/src/lib/libdhcpagent/common/dhcp_stable.c
70
if ((fd = open(DUID_FILE, O_RDONLY)) == -1)
usr/src/lib/libdiskmgt/common/alias.c
98
fd = open(ap->devpaths->devpath, O_RDONLY|O_NDELAY);
usr/src/lib/libdiskmgt/common/drive.c
646
return (open(devpath, O_RDONLY | O_NDELAY));
usr/src/lib/libdiskmgt/common/inuse_dump.c
73
if ((dump_fd = open("/dev/dump", O_RDONLY)) >= 0)
usr/src/lib/libdiskmgt/common/inuse_fs.c
162
(void) open("/dev/null", O_WRONLY, mode);
usr/src/lib/libdiskmgt/common/inuse_fs.c
163
(void) open("/dev/null", O_WRONLY, mode);
usr/src/lib/libdiskmgt/common/inuse_mnt.c
366
if ((fds[0].fd = open("/etc/mnttab", O_RDONLY)) != -1) {
usr/src/lib/libdiskmgt/common/inuse_zpool.c
93
if ((fd = open(slice, O_RDONLY)) > 0) {
usr/src/lib/libdiskmgt/common/partition.c
799
return (open(diskp->aliases->devpaths->devpath, O_RDONLY|O_NDELAY));
usr/src/lib/libdiskmgt/common/partition.c
827
return (open(part_dev, O_RDONLY|O_NDELAY));
usr/src/lib/libdiskmgt/common/slice.c
138
fd = open(devpath, O_RDONLY|O_NDELAY);
usr/src/lib/libdiskmgt/common/slice.c
479
cooked_fd = open(dp->name, O_RDONLY|O_NDELAY);
usr/src/lib/libdiskmgt/common/slice.c
622
if ((fd = open(devp->devpath, O_RDONLY|O_NDELAY)) >= 0) {
usr/src/lib/libdladm/common/libdladm.c
116
if ((dld_fd = open(DLD_CONTROL_DEV, O_RDWR)) < 0)
usr/src/lib/libdladm/common/libdladm.c
175
if ((fd = open(DLMGMT_DOOR, O_RDONLY)) < 0)
usr/src/lib/libdladm/common/libdladm.c
614
if ((lock_fd = open(lock_file, O_RDWR | O_CREAT | O_TRUNC,
usr/src/lib/libdladm/common/libdladm.c
785
if ((nfd = open(newfile, O_WRONLY | O_CREAT | O_TRUNC,
usr/src/lib/libdladm/common/libdlbridge.c
265
did = open(doorname, O_RDONLY | O_NOFOLLOW | O_NONBLOCK);
usr/src/lib/libdladm/common/libdlflow.c
354
if ((nfd = open(tmp_db_file, O_WRONLY|O_CREAT|O_TRUNC,
usr/src/lib/libdladm/common/libdlflow.c
86
if ((lock_fd = open(DLADM_FLOW_DB_LOCK, O_RDWR | O_CREAT | O_TRUNC,
usr/src/lib/libdladm/common/libdlwlan.c
1120
if ((fd = open(linkname, O_RDWR)) < 0)
usr/src/lib/libdlpi/common/libdlpi.c
1055
if ((*fd = open(path, oflags)) != -1)
usr/src/lib/libdlpi/common/libdlpi.c
1074
if ((*fd = open(path, oflags)) != -1)
usr/src/lib/libdlpi/common/libdlpi.c
1118
if ((*fd = open(path, oflags)) != -1)
usr/src/lib/libds/common/libds.c
332
if ((ds_fd = open(vlds_device, 0)) < 0)
usr/src/lib/libdscp/libdscp.c
386
if ((fd = open(DSCP_CONFIGFILE, O_RDONLY)) < 0) {
usr/src/lib/libdtrace/common/dt_module.c
1062
if ((fd = open(fname, O_RDONLY)) == -1 || fstat64(fd, &st) == -1 ||
usr/src/lib/libdtrace/common/dt_open.c
772
if ((fd = open(path, O_RDONLY)) == -1)
usr/src/lib/libdtrace/common/dt_open.c
905
dtfd = open("/dev/dtrace/dtrace", O_RDWR);
usr/src/lib/libdtrace/common/dt_open.c
908
ftfd = open("/dev/dtrace/provider/fasttrap", O_RDWR);
usr/src/lib/libdtrace_jni/common/dtrace_jni.c
1313
int open;
usr/src/lib/libdtrace_jni/common/dtrace_jni.c
1316
open = 0;
usr/src/lib/libdtrace_jni/common/dtrace_jni.c
1318
open = g_consumer_count;
usr/src/lib/libdtrace_jni/common/dtrace_jni.c
1321
return (open);
usr/src/lib/libdtrace_jni/common/dtrace_jni.c
374
int fd = open("/proc/self/auxv", O_RDONLY);
usr/src/lib/libdtrace_jni/java/docs/examples/TestAPI.java
53
consumer.open();
usr/src/lib/libdtrace_jni/java/docs/examples/TestAPI2.java
62
consumer.open();
usr/src/lib/libdtrace_jni/java/docs/examples/TestTarget.java
70
consumer.open();
usr/src/lib/libdwarf/common/dwarf_debuglink.c
181
fd = open(f,O_RDONLY|O_BINARY);
usr/src/lib/libdwarf/common/dwarf_elf_load_headers.c
178
fd = open(path, O_RDONLY|O_BINARY);
usr/src/lib/libdwarf/common/dwarf_generic_init.c
111
fd = open(name, O_RDONLY | O_BINARY);
usr/src/lib/libdwarf/common/dwarf_object_detector.c
563
fd = open(outpath,O_RDONLY|O_BINARY);
usr/src/lib/libdwarf/common/dwarf_object_detector.c
566
fd = open(path,O_RDONLY|O_BINARY);
usr/src/lib/libdwarf/common/dwarf_object_detector.c
570
fd = open(path,O_RDONLY|O_BINARY);
usr/src/lib/libelfsign/common/elfsignlib.c
293
if ((ess->es_fd = open(filename, oflags)) == -1) {
usr/src/lib/libexacct/common/exacct_ops.c
1167
if ((fd = open(name, oflags, mode)) == -1) {
usr/src/lib/libfcoe/common/libfcoe.c
61
if ((*fd = open(FCOE_DEV_PATH, O_NDELAY | O_RDONLY | flag)) != -1) {
usr/src/lib/libfdisk/common/libfdisk.c
204
if ((temp->dev_fd = open(temp->device_name, O_RDWR, 0666)) < 0) {
usr/src/lib/libgrubmgmt/common/libgrub_cmd.c
72
if ((fd = open(cpuid_dev, O_RDONLY)) == -1)
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
114
if ((fd = open(rdev, O_RDONLY|O_NDELAY)) >= 0) {
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
132
fd = open(rdev, O_RDONLY);
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
80
fd = open(path, O_RDONLY);
usr/src/lib/libhotplug/common/libhotplug.c
1183
if ((door_fd = open(HOTPLUGD_DOOR, O_RDONLY)) < 0) {
usr/src/lib/libi2c/common/libi2c.c
50
hdl->ih_devfd = open("/devices", O_RDONLY | O_DIRECTORY);
usr/src/lib/libinetsvc/common/inetsvc.c
1343
fd = open(pathname, O_RDONLY);
usr/src/lib/libinstzones/common/zones.c
2130
stdoutfd = open(a_stdoutPath,
usr/src/lib/libinstzones/common/zones.c
2150
stderrfd = open(a_stderrPath,
usr/src/lib/libinstzones/common/zones_exec.c
182
stdinfile = open(a_inputFile, O_RDONLY);
usr/src/lib/libinstzones/common/zones_exec.c
184
stdinfile = open("/dev/null", O_RDONLY); /* stdin = /dev/null */
usr/src/lib/libinstzones/common/zones_exec.c
749
stdinfile = open(a_inputFile, O_RDONLY);
usr/src/lib/libinstzones/common/zones_exec.c
751
stdinfile = open("/dev/null", O_RDONLY); /* stdin = /dev/null */
usr/src/lib/libipadm/common/ipadm_if.c
1202
if ((muxid_fd = open(udp_dev_name, O_RDWR)) == -1) {
usr/src/lib/libipadm/common/ipadm_if.c
644
if ((*fd = open(udp_dev_name, O_RDWR)) == -1)
usr/src/lib/libipadm/common/ipadm_persist.c
882
if ((nfd = open(newfile, O_WRONLY | O_CREAT | O_TRUNC,
usr/src/lib/libipadm/common/libipadm.c
918
if ((iph->iph_door_fd = open(IPMGMT_DOOR, O_RDONLY)) < 0) {
usr/src/lib/libipd/common/libipd.c
111
fd = open(path, O_RDWR);
usr/src/lib/libipmi/common/ipmi_bmc.c
78
if ((ibp->ib_fd = open(BMC_DEV, O_RDWR)) < 0) {
usr/src/lib/libipmi/common/ipmi_lan.c
167
if ((fd = open("/dev/urandom", O_RDONLY)) < 0)
usr/src/lib/libipp/libipp.c
739
if ((fd = open(IPPCTL_DEVICE, O_RDWR | O_NOCTTY)) == -1) {
usr/src/lib/libipsecutil/common/algs.c
204
fd = open(tmp_name, O_WRONLY|O_CREAT|O_EXCL, CFG_PERMS);
usr/src/lib/libipsecutil/common/ipsec_util.c
1126
if ((fd = open(name, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR)) < 0) {
usr/src/lib/libipsecutil/common/ipsec_util.c
3421
fd = open(filename, O_WRONLY | O_EXCL | O_CREAT | O_TRUNC, S_IRUSR);
usr/src/lib/libipsecutil/common/ipsec_util.c
3427
fd = open(filename, O_WRONLY | O_TRUNC, 0);
usr/src/lib/libiscsit/common/libiscsit.c
213
iscsit_fd = open(ISCSIT_NODE, O_RDWR|O_EXCL);
usr/src/lib/libkmf/libkmf/common/certop.c
1573
if ((fd = open(crlfilename, O_RDONLY)) != -1) {
usr/src/lib/libkmf/libkmf/common/certop.c
2671
if ((fd = open(certfile, O_CREAT | O_RDWR | O_TRUNC, 0644)) == -1) {
usr/src/lib/libkmf/libkmf/common/client.c
137
if ((filefd = open(reqfile, O_RDONLY)) == -1) {
usr/src/lib/libkmf/libkmf/common/client.c
530
if ((respfd = open(respfile, O_CREAT |O_RDWR | O_EXCL, 0600)) == -1) {
usr/src/lib/libkmf/libkmf/common/client.c
678
if ((fd = open(crlfile, O_CREAT |O_RDWR | O_EXCL, 0644)) == -1)
usr/src/lib/libkmf/libkmf/common/client.c
752
if ((fd = open(certfile, O_CREAT |O_RDWR | O_EXCL, 0644)) == -1)
usr/src/lib/libkmf/libkmf/common/csrcrlop.c
158
if ((fd = open(csrfile, O_CREAT |O_RDWR, 0644)) == -1) {
usr/src/lib/libkmf/libkmf/common/generalop.c
678
if ((fd = open(filename, O_RDONLY)) < 0) {
usr/src/lib/libkmf/plugins/kmf_nss/common/nss_spi.c
794
fd = open(filename, O_RDONLY);
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
4658
fd = open(fullpath, O_CREAT|O_TRUNC|O_RDWR, 0400);
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
4860
fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, mode);
usr/src/lib/libkmf/plugins/kmf_pkcs11/common/pkcs11_spi.c
3904
while ((random_fd = open(DEV_RANDOM, O_RDONLY)) < 0) {
usr/src/lib/libkstat/common/kstat.c
74
kd = open("/dev/kstat", O_RDONLY | O_CLOEXEC);
usr/src/lib/libktest/common/libktest.c
40
int fd = open(KTEST_DEV_PATH, O_RDONLY | O_CLOEXEC, 0);
usr/src/lib/libldap5/sources/ldap/common/digest_md5.c
121
fd = open("/dev/urandom", O_RDONLY);
usr/src/lib/libm/common/m9x/__fex_sym.c
241
fd = open(fname, O_RDONLY);
usr/src/lib/libm/common/m9x/__fex_sym.c
91
if ((i = open("/proc/self/map", O_RDONLY)) < 0)
usr/src/lib/libmail/common/maillock.c
131
fd = open(tempfile, O_RDWR|O_CREAT|O_EXCL, 0600);
usr/src/lib/libmail/common/notifyu.c
80
if ((fd = open(dev, O_WRONLY|O_NOCTTY)) == -1) {
usr/src/lib/libmail/common/xgetenv.c
95
infd = open(xfile, O_RDONLY);
usr/src/lib/libmtmalloc/tests/exhaust.c
55
fd = open("/dev/zero", O_RDONLY);
usr/src/lib/libndmp/common/libndmp.c
432
(ndmp_door_fildes = open(NDMP_DOOR_SVC, O_RDONLY)) < 0) {
usr/src/lib/libnisdb/db.cc
488
if ((logfile->open()) == FALSE){
usr/src/lib/libnisdb/db_dictionary.cc
1406
if ((logfile->open()) == FALSE) {
usr/src/lib/libnisdb/db_dictlog.cc
151
if (open() == FALSE) { // open log
usr/src/lib/libnisdb/db_log.cc
216
if ((from = open(oldname, O_RDONLY, 0666)) < 0) {
usr/src/lib/libnisdb/db_log.cc
223
if ((to = open(newname, O_WRONLY|O_CREAT|O_TRUNC, 0660)) < 0) {
usr/src/lib/libnisdb/db_log.cc
348
ret = pickle_file::open();
usr/src/lib/libnisdb/db_log.cc
357
ret = pickle_file::open();
usr/src/lib/libnisdb/db_log.cc
366
ret = pickle_file::open();
usr/src/lib/libnisdb/db_log.cc
386
ret = pickle_file::open();
usr/src/lib/libnisdb/db_log.cc
80
if (open() == TRUE) { // open log
usr/src/lib/libnisdb/db_pickle.cc
107
if (open()) {
usr/src/lib/libnisdb/db_pickle.h
66
bool_t open();
usr/src/lib/libnisdb/nis_parse_ldap_conf.c
574
if ((fd = open(config_file, O_RDONLY)) == -1) {
usr/src/lib/libnisdb/nis_parse_ldap_conf.c
652
if ((fd = open(config_file, O_RDONLY)) == -1) {
usr/src/lib/libnisdb/yptol/lock_update.c
130
lockfile = open(LOCKFILE, O_RDWR|O_CREAT, 0600);
usr/src/lib/libnsl/common/daemon_utils.c
124
if ((fd = open(lock_file, mode, 0644)) == -1)
usr/src/lib/libnsl/des/des_crypt.c
48
#define getdesfd() (open("/dev/des", 0, 0))
usr/src/lib/libnsl/dial/callers.c
236
(void) close(nullfd = open("/", O_RDONLY));
usr/src/lib/libnsl/dial/callers.c
248
dcf = open(dcname, (O_RDWR | O_NDELAY));
usr/src/lib/libnsl/dial/callers.c
251
dcf = open(dcname, O_RDWR);
usr/src/lib/libnsl/dial/callers.c
367
if ((ndcf = open(saved_dcname, saved_mode)) < 0) {
usr/src/lib/libnsl/dial/ulockf.c
97
fd = open(name, O_RDONLY);
usr/src/lib/libnsl/nsl/t_open.c
81
if ((fd = open(path, flags)) < 0) {
usr/src/lib/libnsl/nss/netdir_inet.c
2523
if ((fd = open(devpath, O_RDONLY)) < 0) {
usr/src/lib/libnsl/nss/netdir_inet.c
2921
fd = open(tp->nc_device, O_RDONLY);
usr/src/lib/libnsl/nss/netdir_inet_sundry.c
619
if ((s = open("/dev/udp6", O_RDONLY)) < 0) {
usr/src/lib/libnsl/rpc/can_use_af.c
48
if ((fd = open("/dev/udp", O_RDONLY)) < 0)
usr/src/lib/libnsl/rpc/clnt_door.c
471
if ((cu->cu_fd = open(rendezvous, O_RDONLY, 0)) < 0) {
usr/src/lib/libnsl/rpc/clnt_door.c
94
if ((did = open(rendezvous, O_RDONLY, 0)) < 0) {
usr/src/lib/libnsl/rpc/svc_door.c
343
fd = open(rendezvous, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0644);
usr/src/lib/libnsl/rpc/svc_door.c
354
fd = open(rendezvous, O_WRONLY | O_CREAT | O_EXCL |
usr/src/lib/libnsl/rpc/ti_opts.c
355
if ((s = open("/dev/udp", O_RDONLY)) < 0) {
usr/src/lib/libnsl/rpc/ti_opts.c
411
if ((s = open("/dev/udp6", O_RDONLY)) < 0) {
usr/src/lib/libnsl/saf/doconfig.c
471
if (open("/dev/null", O_RDWR) != 0)
usr/src/lib/libnsl/yp/dbm.c
71
pagf = open(pagbuf, 2);
usr/src/lib/libnsl/yp/dbm.c
73
pagf = open(pagbuf, 0);
usr/src/lib/libnsl/yp/dbm.c
83
dirf = open(pagbuf, 2);
usr/src/lib/libnsl/yp/dbm.c
85
dirf = open(pagbuf, 0);
usr/src/lib/libnsl/yp/yp_bind.c
1086
fd = open(uaddress, O_RDONLY);
usr/src/lib/libnsl/yp/yp_bind.c
1151
fd = open(filename, O_RDONLY);
usr/src/lib/libnvme/common/libnvme.c
694
ctrl->nc_fd = open(buf, O_RDWR | O_CLOEXEC);
usr/src/lib/libnwam/common/libnwam_backend.c
353
did = open(NWAM_BACKEND_DOOR_FILE,
usr/src/lib/libnwam/common/libnwam_events.c
205
if ((fd = open(eventmsgfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1)
usr/src/lib/libnwam/common/libnwam_files.c
758
if ((fd = open(tmpfilename, O_RDWR | O_CREAT | O_TRUNC, mode)) < 0)
usr/src/lib/libnwam/common/libnwam_util.c
75
*door_fdp = open(door_name, 0);
usr/src/lib/libpam/pam_framework.c
1927
if ((fd = open(config, O_RDONLY)) == -1) {
usr/src/lib/libpcp/common/libpcp.c
210
if ((channel_fd = open(dev_path, O_RDWR|O_EXCL)) < 0) {
usr/src/lib/libpcsc/common/libpcsc.c
544
if ((card->pcc_fd = open(reader, O_RDWR)) < 0) {
usr/src/lib/libpctx/common/libpctx.c
426
if ((fd = open(lstatus, O_RDONLY)) < 0 ||
usr/src/lib/libpicl/picl.c
196
if ((door_handle = open(PICLD_DOOR, O_RDONLY)) < 0) {
usr/src/lib/libpicl/picl.c
250
if ((door_handle = open(PICLD_DOOR, O_RDONLY)) < 0) {
usr/src/lib/libpkg/common/dstream.c
191
if ((ds_fd = open(device, O_RDONLY)) >= 0 &&
usr/src/lib/libpkg/common/dstream.c
307
if ((ds_fd = open(device, O_RDONLY)) < 0) {
usr/src/lib/libpkg/common/dstream.c
361
if ((ds_fd = open(norewind, O_RDONLY)) < 0) {
usr/src/lib/libpkg/common/dstream.c
613
if ((ds_fd = open(device, O_RDONLY)) < 0)
usr/src/lib/libpkg/common/dstream.c
778
if ((n = open(ds_device, 0)) >= 0)
usr/src/lib/libpkg/common/isdir.c
179
if ((fd = open(path, O_RDONLY, 0)) == -1) {
usr/src/lib/libpkg/common/pkgexecv.c
354
n = open(filein, O_RDONLY);
usr/src/lib/libpkg/common/pkgexecv.c
364
n = open(filein, O_RDONLY);
usr/src/lib/libpkg/common/pkgexecv.c
389
n = open(fileout, O_WRONLY);
usr/src/lib/libpkg/common/pkgexecv.c
409
n = open(fileout, O_WRONLY|O_CREAT|O_APPEND, 0666);
usr/src/lib/libpkg/common/pkgserv.c
128
dir = open(path, O_RDONLY);
usr/src/lib/libpkg/common/pkgserv.c
298
server->door = open(pkgdoor, O_RDWR);
usr/src/lib/libpkg/common/pkgserv.c
567
fd = open(pkgfile, O_RDWR);
usr/src/lib/libpkg/common/pkgtrans.c
1192
if ((ds_fd = open(dstdev.cdevice, O_WRONLY)) < 0) {
usr/src/lib/libpkg/common/pkgtrans.c
1365
if ((ds_fd = open(dstdev.cdevice, 1)) < 0) {
usr/src/lib/libpkg/common/pkgtrans.c
793
ds_fd = open(device, 1);
usr/src/lib/libpkg/common/pkgtrans.c
824
if ((list_fd = open(tmp_file, O_RDWR | O_CREAT, 0644)) == -1) {
usr/src/lib/libpkg/common/runcmd.c
147
i = open(errfile, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr/src/lib/libpkg/common/runcmd.c
337
stdinfile = open(a_inputFile, O_RDONLY);
usr/src/lib/libpkg/common/runcmd.c
339
stdinfile = open("/dev/null", O_RDONLY); /* stdin = /dev/null */
usr/src/lib/libpkg/common/verify.c
274
if ((fd = open(a_path, O_RDONLY)) < 0) {
usr/src/lib/libpkg/common/vfpops.c
748
fd = open(a_path, O_WRONLY|O_CREAT|O_TRUNC, 0644);
usr/src/lib/libpool/common/pool.c
683
if ((fd = open(pool_info_location, O_RDONLY)) < 0) {
usr/src/lib/libpool/common/pool.c
743
if ((fd = open(pool_dynamic_location(), O_RDWR | O_EXCL)) < 0) {
usr/src/lib/libpool/common/pool_kernel.c
2149
if ((prov->pkc_fd = open(pool_info_location, O_RDWR)) < 0) {
usr/src/lib/libpool/common/pool_kernel.c
3591
while ((fd = open(path, oflag)) == -1 && errno == EBUSY)
usr/src/lib/libpri/common/pri.c
53
fd = open(DS_PRI_DRIVER, O_RDONLY);
usr/src/lib/libproc/common/Pcontrol.c
115
if ((mapfd = open(mapfile, O_RDONLY)) < 0 ||
usr/src/lib/libproc/common/Pcontrol.c
147
if ((fd = open(auxfile, O_RDONLY)) < 0) {
usr/src/lib/libproc/common/Pcontrol.c
1582
if ((fd = open(procname, O_RDWR)) < 0 ||
usr/src/lib/libproc/common/Pcontrol.c
1594
if ((fd = open(procname, O_RDONLY)) < 0 ||
usr/src/lib/libproc/common/Pcontrol.c
1606
if ((fd = open(procname, O_WRONLY)) < 0 ||
usr/src/lib/libproc/common/Pcontrol.c
2964
if ((fd = open(lpath, O_RDONLY)) < 0 || fstat64(fd, &statb) != 0) {
usr/src/lib/libproc/common/Pcontrol.c
3300
if ((fd = open(procname, O_RDONLY)) < 0 ||
usr/src/lib/libproc/common/Pcontrol.c
3331
if ((fd = open(procname, O_WRONLY)) < 0 ||
usr/src/lib/libproc/common/Pcontrol.c
576
if ((fd = open(procname, (O_RDWR|O_EXCL))) < 0 ||
usr/src/lib/libproc/common/Pcontrol.c
586
if ((fd = open(procname, O_RDONLY)) < 0 ||
usr/src/lib/libproc/common/Pcontrol.c
596
if ((fd = open(procname, O_WRONLY)) < 0 ||
usr/src/lib/libproc/common/Pcontrol.c
883
if (((fd = open(procname, omode | O_EXCL)) < 0 &&
usr/src/lib/libproc/common/Pcontrol.c
884
(fd = ((flags & PGRAB_FORCE)? open(procname, omode) : -1)) < 0) ||
usr/src/lib/libproc/common/Pcontrol.c
914
if ((fd = open(procname, O_RDONLY)) < 0 ||
usr/src/lib/libproc/common/Pcontrol.c
935
if ((fd = open(procname, O_WRONLY)) < 0 ||
usr/src/lib/libproc/common/Plwpregs.c
123
if ((fd = open(fname, O_RDONLY)) >= 0) {
usr/src/lib/libproc/common/Plwpregs.c
291
if ((fd = open(fname, O_WRONLY)) >= 0) {
usr/src/lib/libproc/common/Plwpregs.c
89
if ((fd = open(fname, O_RDONLY)) >= 0) {
usr/src/lib/libproc/common/Pscantext.c
83
if ((mapfd = open(mapfile, O_RDONLY)) < 0) {
usr/src/lib/libproc/common/Psymtab.c
1626
if ((fd = open(path, O_RDONLY)) < 0)
usr/src/lib/libproc/common/Psymtab.c
1903
} else if ((fptr->file_fd = open(objectfile, O_RDONLY)) < 0) {
usr/src/lib/libproc/common/Psyscall.c
139
if ((fd = open(pathname, O_RDONLY)) < 0 ||
usr/src/lib/libproc/common/Psyscall.c
145
if ((fd = open(pathname, O_WRONLY)) < 0 ||
usr/src/lib/libproc/common/pr_open.c
46
return (open(filename, flags, mode));
usr/src/lib/libproc/common/proc_arg.c
463
fd = open(pidstr, O_RDONLY);
usr/src/lib/libproc/common/proc_arg.c
480
fd = open(pidstr, O_RDONLY);
usr/src/lib/libproc/common/proc_fd.c
127
if ((ifd = open(fname, O_RDONLY)) == -1) {
usr/src/lib/libproc/common/proc_get_info.c
114
if ((fd = open(fname, O_RDONLY)) >= 0) {
usr/src/lib/libproc/common/proc_get_info.c
144
if ((fd = open(fname, O_RDONLY)) < 0)
usr/src/lib/libproc/common/proc_get_info.c
175
if ((fd = open(fname, O_RDONLY)) >= 0) {
usr/src/lib/libproc/common/proc_get_info.c
192
if ((fd = open(fname, O_RDONLY)) >= 0) {
usr/src/lib/libproc/common/proc_get_info.c
215
if ((fd = open(fname, O_RDONLY)) >= 0) {
usr/src/lib/libproc/common/proc_get_info.c
232
if ((fd = open(fname, O_RDONLY)) >= 0) {
usr/src/lib/libproc/common/proc_get_info.c
249
if ((fd = open(fname, O_RDONLY)) >= 0) {
usr/src/lib/libproc/common/proc_get_info.c
66
if ((fd = open(fname, O_RDONLY)) >= 0) {
usr/src/lib/libproc/common/proc_get_info.c
86
if ((fd = open(fname, O_RDONLY)) >= 0) {
usr/src/lib/libproject/common/setproject.c
449
if ((fd = open("/dev/pool", O_RDONLY)) < 0)
usr/src/lib/libprtdiag/common/io.c
457
fd = open(device, O_RDWR, 0666);
usr/src/lib/libprtdiag/common/pdevinfo_funcs.c
239
if ((prom_fd = open(promdev, oflag)) < 0) {
usr/src/lib/libprtdiag_psr/sparc/javelin/common/javelin.c
719
fd = open(device, O_RDWR, 0666);
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
565
if ((fd = open(path, O_RDWR)) == -1) {
usr/src/lib/libprtdiag_psr/sparc/tazmo/common/tazmo.c
1331
if ((search_file = open(devpath, O_RDONLY | O_NDELAY)) < 0)
usr/src/lib/libprtdiag_psr/sparc/tazmo/common/tazmo.c
723
fd = open(device, O_RDWR, 0666);
usr/src/lib/libraidcfg/common/raidcfg.c
2514
image_fd = open((const char *)prop_list,
usr/src/lib/libraidcfg/common/raidcfg.c
4440
fd = open(path, O_RDONLY | O_NDELAY);
usr/src/lib/librcm/librcm_event.c
334
fd = open(door_name, O_EXCL|O_CREAT, S_IREAD|S_IWRITE);
usr/src/lib/librcm/librcm_event.c
91
if ((service_door = open(door_name, O_RDONLY, 0)) == -1) {
usr/src/lib/librename/common/librename.c
142
if ((fd = open(dir, O_RDONLY)) < 0)
usr/src/lib/libresolv2/common/bsd/mktemp.c
123
open(path, O_CREAT|O_EXCL|O_RDWR, 0600)) >= 0)
usr/src/lib/libresolv2/common/isc/logging.c
136
fd = open(chan->out.file.name, flags,
usr/src/lib/librsc/sparc/mpxu/common/librsc.c
160
if ((rsc_fd = open(RSC_RMCADM_DRV, O_RDWR)) < 0) {
usr/src/lib/librsm/common/rsmlib.c
1207
p->rsmseg_fd = open(DEVRSM, O_RDWR);
usr/src/lib/librsm/common/rsmlib.c
149
_rsm_fd = open(DEVRSM, O_RDONLY);
usr/src/lib/librsm/common/rsmlib.c
825
p->rsmseg_fd = open(DEVRSM, O_RDWR);
usr/src/lib/libsasl/lib/checkpw.c
571
s = open(pwpath, O_RDONLY);
usr/src/lib/libsasl/lib/saslutil.c
352
fd = open(DEV_RANDOM, O_RDONLY);
usr/src/lib/libsaveargs/tests/dump/dump.c
154
if ((fd = open(argv[1], O_RDONLY)) == -1)
usr/src/lib/libscf/common/lowlevel.c
1197
fd = open(door_name, O_RDONLY | O_NOFOLLOW, 0);
usr/src/lib/libshare/common/libshare.c
888
lockfd = open(DFS_LOCK_FILE, O_RDWR);
usr/src/lib/libshare/smb/libshare_smb.c
1207
fd = open(path, O_RDONLY);
usr/src/lib/libshare/smb/smb_share_doorclnt.c
88
if ((smb_share_dfd = open(door_name, O_RDONLY)) < 0)
usr/src/lib/libsip/common/sip_gids.c
58
(devrandom = open("/dev/urandom", O_RDONLY)) == -1) {
usr/src/lib/libsldap/common/ns_cache_door.c
108
if ((doorfd = open(LDAP_CACHE_DOOR, O_RDONLY, 0))
usr/src/lib/libsldap/common/ns_common.c
686
if ((fd = open(UDP, O_RDONLY)) < 0)
usr/src/lib/libsldap/common/ns_connmgmt.c
425
if ((fd = open(fname, O_RDONLY)) >= 0) {
usr/src/lib/libsldap/common/ns_trace.c
96
fd = open(val, O_WRONLY | O_CREAT, 0644);
usr/src/lib/libsmbfs/smb/crypt.c
228
fd = open("/dev/urandom", O_RDONLY);
usr/src/lib/libsmbfs/smb/ctx.c
1191
fd = open("/dev/"NSMB_NAME, O_RDWR);
usr/src/lib/libsmbfs/smb/iod_cl.c
138
fd = open(svc_door, O_RDONLY, 0);
usr/src/lib/libsmbfs/smb/iod_cl.c
97
fd = open(path, O_RDONLY, 0);
usr/src/lib/libsmedia/library/common/l_misc.c
111
door_fd = open(smedia_service, O_RDONLY, 0644);
usr/src/lib/libsmedia/library/common/l_misc.c
166
door_fd = open(smedia_service, O_RDONLY, 0644);
usr/src/lib/libsmedia/library/common/l_misc.c
394
door_fd = open(smedia_service, O_RDONLY, 0644);
usr/src/lib/libsocket/inet/getifaddrs.c
424
door_fd = open(DLMGMT_DOOR, O_RDONLY);
usr/src/lib/libsocket/inet/getifaddrs.c
430
if ((dld_fd = open(DLD_CONTROL_DEV, O_RDWR)) < 0)
usr/src/lib/libsqlite/src/os.c
465
id->fd = open(zFilename, O_RDWR|O_CREAT|O_LARGEFILE|O_BINARY, 0644);
usr/src/lib/libsqlite/src/os.c
472
id->fd = open(zFilename, O_RDONLY|O_LARGEFILE|O_BINARY);
usr/src/lib/libsqlite/src/os.c
596
id->fd = open(zFilename,
usr/src/lib/libsqlite/src/os.c
684
id->fd = open(zFilename, O_RDONLY|O_LARGEFILE|O_BINARY);
usr/src/lib/libsqlite/src/os.c
772
id->dirfd = open(zDirname, O_RDONLY|O_BINARY, 0644);
usr/src/lib/libsqlite/tool/diffdb.c
24
db1 = open(argv[1], O_RDONLY);
usr/src/lib/libsqlite/tool/diffdb.c
29
db2 = open(argv[2], O_RDONLY);
usr/src/lib/libsqlite/tool/showdb.c
49
db = open(argv[1], O_RDONLY);
usr/src/lib/libsqlite/tool/showjournal.c
52
db = open(argv[1], O_RDONLY);
usr/src/lib/libstmf/common/stmf.c
164
if ((*fd = open(STMF_PATH, O_NDELAY | O_RDONLY | flag)) != -1) {
usr/src/lib/libstmf/common/stmf.c
192
if ((*fd = open(SBD_PATH, O_NDELAY | O_RDONLY | flag)) != -1) {
usr/src/lib/libstmf/common/stmf.c
220
if ((*fd = open(PPPT_PATH, O_RDONLY | flag)) != -1) {
usr/src/lib/libsun_ima/common/ima.c
1048
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
1088
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
1174
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
1272
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
1420
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
1461
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
1649
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
1803
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
1905
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
1997
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
2197
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
2259
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
2296
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
2357
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
2436
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
2482
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
2564
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
2633
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
2681
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
274
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
3040
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
3171
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
325
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
3272
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
3329
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
355
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
419
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
789
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsun_ima/common/ima.c
935
if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
usr/src/lib/libsysevent/libevchannel.c
154
EV_FD(scp) = open(DEVSYSEVENT, O_RDWR);
usr/src/lib/libsysevent/libevchannel.c
162
EV_FD(scp) = open(DEVICESYSEVENT, O_RDWR);
usr/src/lib/libsysevent/libsysevent.c
1660
if ((sub_fd = open(sub->sd_door_name, O_RDONLY)) == -1) {
usr/src/lib/libsysevent/libsysevent.c
1980
fd = open(SH_DOOR_NAME(shp), O_CREAT|O_RDWR,
usr/src/lib/libsysevent/libsysevent.c
2173
fd = open(SH_DOOR_NAME(shp), O_CREAT|O_RDWR, S_IREAD|S_IWRITE);
usr/src/lib/libsysevent/libsysevent.c
2437
if ((sub_fd = open(sub->sd_door_name, O_RDONLY)) == -1) {
usr/src/lib/libsysevent/libsysevent.c
2598
pub_fd = open(door_name, O_RDONLY);
usr/src/lib/libsysevent/libsysevent.c
971
pub_fd = open(sub_info->sp_door_name, O_RDONLY);
usr/src/lib/libuuid/common/uuid.c
255
if ((fd = open(STATE_LOCATION, O_RDWR)) < 0) {
usr/src/lib/libuutil/common/uu_open.c
56
f = open(fname, O_CREAT | O_EXCL | O_RDWR, 0600);
usr/src/lib/libv12n/sparc/libv12n.c
148
fd = open(MD_DEVICE, O_RDONLY);
usr/src/lib/libvmmapi/common/vmmapi.c
124
fd = open(vmfile, O_RDWR, 0);
usr/src/lib/libvmmapi/common/vmmapi.c
145
ctl_fd = open(VMM_CTL_DEV, O_EXCL | O_RDWR);
usr/src/lib/libvmmapi/common/vmmapi.c
741
fd = open(pathname, O_RDWR);
usr/src/lib/libvolmgt/common/volmgt_on_private.c
304
if ((fd = open(cn, O_RDONLY|O_NDELAY)) < 0) {
usr/src/lib/libvolmgt/common/volmgt_on_private.c
434
if ((fd = open(cn, O_RDONLY|O_NDELAY)) < 0) {
usr/src/lib/libvolmgt/common/volmgt_on_private.c
593
if ((xfd = open(NULL_PATH, O_RDWR)) >= 0) {
usr/src/lib/libvolmgt/common/volmgt_on_private.c
95
if ((fd = open(cn, O_RDONLY|O_NDELAY)) < 0) {
usr/src/lib/libvscan/common/libvscan.c
1359
if ((door_fd = open(VS_STATS_DOOR_NAME, O_RDONLY)) < 0) {
usr/src/lib/libvscan/common/libvscan.c
1407
if ((door_fd = open(VS_STATS_DOOR_NAME, O_RDONLY)) < 0) {
usr/src/lib/libwrap/shell_cmd.c
88
if (open("/dev/null", 2) != 0) {
usr/src/lib/libxcurses/src/libc/xcurses/setup.c
133
if ((fd = open(filename, 0)) < 0)
usr/src/lib/libxcurses2/src/libc/xcurses/setup.c
175
if ((fd = open(filename, 0)) < 0) {
usr/src/lib/libxpio/common/libxpio.c
343
ctrl->xc_fd = open(buf, O_RDWR);
usr/src/lib/libxpio/common/libxpio_dpio.c
147
if ((fd = open(xpio_dpinfo_path, O_RDONLY)) < 0) {
usr/src/lib/libzfs/common/libzfs_diff.c
736
di->cleanupfd = open(ZFS_DEV, O_RDWR|O_EXCL);
usr/src/lib/libzfs/common/libzfs_pool.c
2829
if ((fd = open(path, O_RDWR | O_NDELAY)) < 0) {
usr/src/lib/libzfs/common/libzfs_pool.c
3870
if ((fd = open(path, O_RDONLY)) < 0)
usr/src/lib/libzfs/common/libzfs_pool.c
4544
if ((fd = open(diskname, O_RDONLY|O_NDELAY)) >= 0) {
usr/src/lib/libzfs/common/libzfs_pool.c
4637
if ((fd = open(path, O_RDWR | O_NDELAY)) < 0) {
usr/src/lib/libzfs/common/libzfs_sendrecv.c
2053
sdd.cleanup_fd = open(ZFS_DEV, O_RDWR|O_EXCL);
usr/src/lib/libzfs/common/libzfs_sendrecv.c
4659
cleanup_fd = open(ZFS_DEV, O_RDWR|O_EXCL);
usr/src/lib/libzfs/common/libzfs_util.c
1654
fd = open(path, O_RDONLY | O_LARGEFILE);
usr/src/lib/libzfs/common/libzfs_util.c
691
if ((hdl->libzfs_fd = open(ZFS_DEV, O_RDWR)) < 0) {
usr/src/lib/libzfs_core/common/libzfs_core.c
139
g_fd = open("/dev/zfs", O_RDWR);
usr/src/lib/libzonecfg/common/getzoneent.c
213
lock_fd = open(path, O_CREAT|O_RDWR, 0644);
usr/src/lib/libzonecfg/common/libzonecfg.c
7455
if ((*lockfd = open(pathbuf, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) {
usr/src/lib/libzonecfg/common/libzonecfg.c
7650
if ((doorfd = open(doorpath, O_RDONLY)) < 0) {
usr/src/lib/libzonecfg/common/libzonecfg.c
7734
if ((doorfd = open(doorpath, O_RDONLY)) < 0) {
usr/src/lib/libzonecfg/common/libzonecfg.c
7788
if ((doorfd = open(doorpath, O_RDONLY)) < 0) {
usr/src/lib/libzonecfg/common/scratchops.c
107
fd = open(mapfile, O_RDWR);
usr/src/lib/libzonecfg/common/scratchops.c
95
if ((fd = open(mapfile, flags, 0644)) == -1) {
usr/src/lib/libzoneinfo/common/libzone.c
892
if ((fid = open(path, O_RDONLY)) == -1) {
usr/src/lib/libzonestat/common/libzonestat.c
91
fd = open(ZS_DOOR_PATH, O_RDONLY);
usr/src/lib/libzpool/common/util.c
227
fd = open("/dev/zfs", O_RDWR);
usr/src/lib/libzutil/common/zutil_import.c
1371
if ((fd = open(cachefile, O_RDONLY)) < 0) {
usr/src/lib/madv/common/madv.c
170
int fd = open("/proc/self/auxv", O_RDONLY);
usr/src/lib/madv/common/madv.c
194
fd = open("/proc/self/status", O_RDONLY);
usr/src/lib/madv/common/madv.c
256
fd = open("/proc/self/psinfo", O_RDONLY);
usr/src/lib/mpapi/libmpapi/common/mpapi.c
194
if ((fd_mpconf = open(mpConfFilePath, O_RDONLY)) < 0) {
usr/src/lib/mpapi/libmpapi/common/mpapi.c
3492
if ((mpconf = open(mpConfFilePath, O_RDWR | O_CREAT)) == -1) {
usr/src/lib/mpapi/libmpapi/common/mpapi.c
3601
if ((mpconf = open(mpConfFilePath, O_RDWR)) == -1) {
usr/src/lib/mpapi/libmpapi/common/mpapi.c
3641
if ((tmp_mpconf = open(tmp_mpConfFilePath,
usr/src/lib/mpapi/libmpscsi_vhci/common/Initialize.c
66
g_scsi_vhci_fd = open("/devices/scsi_vhci:devctl",
usr/src/lib/mpss/common/mpss.c
114
int fd = open("/proc/self/auxv", O_RDONLY);
usr/src/lib/mpss/common/mpss.c
260
fd = open("/proc/self/psinfo", O_RDONLY);
usr/src/lib/nsswitch/files/common/files_common.c
488
if ((fd = open(be->filename, O_RDONLY)) < 0)
usr/src/lib/pam_modules/authtok_check/dict.c
69
if ((lockfd = open(dblock, O_WRONLY|O_CREAT|O_EXCL, 0400)) == -1) {
usr/src/lib/pam_modules/authtok_check/dict.c
71
lockfd = open(dblock, O_WRONLY);
usr/src/lib/pam_modules/authtok_check/packer.c
235
if ((fd = open(fname, O_RDONLY)) == -1) {
usr/src/lib/pam_modules/authtok_check/packlib.c
65
if ((fd_d = open(dname, O_RDWR|O_CREAT, 0600)) == -1)
usr/src/lib/pam_modules/authtok_check/packlib.c
68
if ((fd_i = open(iname, O_RDWR|O_CREAT, 0600)) == -1)
usr/src/lib/pam_modules/authtok_check/packlib.c
71
if ((fd_w = open(wname, O_RDWR|O_CREAT, 0600)) == -1)
usr/src/lib/pam_modules/timestamp/pam_timestamp.c
268
if ((fd = open(timestampfile, O_RDONLY)) < 0) {
usr/src/lib/pam_modules/timestamp/pam_timestamp.c
382
if ((fd = open(timestampfile, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR)) < 0) {
usr/src/lib/pam_modules/unix_account/unix_acct.c
100
if ((fdl = open(LASTLOG, O_RDWR|O_CREAT, 0444)) >= 0) {
usr/src/lib/pam_modules/unix_session/unix_session.c
132
if ((fdl = open(LASTLOG, O_RDWR|O_CREAT|O_DSYNC, 0444)) >= 0) {
usr/src/lib/passwdutil/files_attr.c
1028
if ((tempfd = open(PASSTEMP, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) {
usr/src/lib/passwdutil/files_attr.c
1167
if ((tmpfd = open(HISTEMP, O_WRONLY|O_CREAT|O_TRUNC, HISTMODE)) < 0) {
usr/src/lib/passwdutil/files_attr.c
931
tempfd = open(SHADTEMP, O_WRONLY|O_CREAT|O_TRUNC, filemode);
usr/src/lib/pkcs11/pkcs11_kernel/common/kernelGeneral.c
205
while ((kernel_fd = open(CRYPTO_DEVICE, O_RDWR)) < 0) {
usr/src/lib/print/libpapi-ipp/common/ipp-support.c
535
if ((fd = open(file, O_RDONLY)) < 0) {
usr/src/lib/print/libpapi-lpd/common/lpd-job.c
617
if ((fd = open(path, O_RDONLY)) >= 0) {
usr/src/lib/print/libpapi-lpd/common/lpd-port.c
199
if (((fd = open(JOB_ID_FILE, O_RDWR)) < 0) && (errno == ENOENT))
usr/src/lib/print/libpapi-lpd/common/lpd-port.c
200
fd = open(JOB_ID_FILE, O_CREAT|O_EXCL|O_RDWR, 0644);
usr/src/lib/print/libpapi-lpd/common/lpd-port.c
420
if ((fd = open(name, O_RDONLY)) < 0)
usr/src/lib/print/libpapi-lpd/common/lpd-port.c
509
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/lib/print/libpapi-lpd/common/lpd-port.c
593
if ((fd = open(path, O_WRONLY)) >= 0) {
usr/src/lib/print/libprint/common/nss_write.c
111
fd = open(file, O_RDWR | O_CREAT | O_EXCL, 0644);
usr/src/lib/print/libprint/common/nss_write.c
113
fd = open(file, O_RDWR);
usr/src/lib/sasl_plugins/cram/cram.c
164
int fd = open(_DEV_URANDOM, O_RDONLY);
usr/src/lib/sasl_plugins/digestmd5/digestmd5.c
492
int fd = open(_DEV_URANDOM, O_RDONLY);
usr/src/lib/scsi/plugins/scsi/engines/uscsi/uscsi.c
63
if ((dp->fd = open(target_name, O_RDONLY)) < 0) {
usr/src/lib/scsi/plugins/smp/usmp/common/usmp.c
99
if ((dp->ud_fd = open(target_name, O_RDONLY)) < 0) {
usr/src/lib/smbclnt/libfksmbfs/common/fake_vnode.c
1025
VOPSTATS_UPDATE(vp, open);
usr/src/lib/smbclnt/libfksmbfs/common/fake_vnode.c
1039
VOPSTATS_UPDATE(*vpp, open);
usr/src/lib/smbsrv/libfksmbsrv/common/fake_vfs.c
80
fd = open(name, O_RDONLY, 0);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
1200
if ((dfd = open(rootdir, O_RDONLY)) > 0) {
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
1145
if ((dirfd = open(dir, O_RDONLY)) < 0) {
usr/src/lib/smbsrv/libmlsvc/common/spoolss_svc.c
341
fd = open(g_path, O_CREAT | O_RDWR, 0600);
usr/src/lib/smbsrv/libsmb/common/smb_doorclnt.c
356
if ((fd = open(door_name, O_RDONLY)) < 0) {
usr/src/lib/smbsrv/libsmb/common/smb_kmod.c
67
fd = open(SMBDRV_DEVICE_PATH, 0);
usr/src/lib/smbsrv/libsmb/common/smb_kmod.c
69
fd = open(SMBDRV_DEVICE_PATH "1", 0);
usr/src/lib/smbsrv/libsmb/common/smb_pwdutil.c
496
if ((tempfd = open(SMB_PASSTEMP, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) {
usr/src/lib/storage/liba5k/common/lhot.c
684
if ((fd = open(*dev_path, O_RDONLY)) == -1) {
usr/src/lib/storage/libg_fc/common/genf.c
654
fd = open(path, flag);
usr/src/lib/storage/libg_fc/common/genf.c
660
fd = open(path, flag);
usr/src/lib/sun_fc/common/FCHBA.cc
157
if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) == -1) {
usr/src/lib/sun_fc/common/FCHBA.cc
223
if ((fd = open(port->getPath().c_str(), O_RDONLY | O_EXCL)) == -1) {
usr/src/lib/sun_fc/common/FCHBA.cc
266
if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) == -1) {
usr/src/lib/sun_fc/common/FCHBA.cc
359
if ((fd = open(FCSM_DRIVER_PATH.c_str(), O_RDONLY)) < 0) {
usr/src/lib/sun_fc/common/FCHBA.cc
89
if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) ==
usr/src/lib/sun_fc/common/HBA.cc
284
if ((fd = open(path.c_str(), flag)) < 0) {
usr/src/lib/sun_fc/common/Sun_fcAdapterCreateWWN.cc
41
int fd = open("/dev/urandom", O_RDONLY);
usr/src/lib/sun_fc/common/TgtFCHBA.cc
173
if ((fd = open(FCT_DRIVER_PATH.c_str(), O_NDELAY | O_RDONLY)) == -1) {
usr/src/lib/sun_fc/common/TgtFCHBA.cc
259
if ((fd = open(FCT_DRIVER_PATH.c_str(), O_RDONLY)) < 0) {
usr/src/lib/sun_fc/common/TgtFCHBA.cc
97
if ((fd = open(FCT_DRIVER_PATH.c_str(), O_NDELAY | O_RDONLY)) == -1) {
usr/src/lib/sun_fc/common/Trace.cc
76
fd = open(DEBUG_FILE, O_WRONLY|O_APPEND); /* will only open if exists */
usr/src/lib/sun_fc/common/Trace.cc
82
fd = open(LOG_FILE, O_WRONLY|O_APPEND);
usr/src/lib/sun_sas/common/Sun_sasSendSMPPassThru.c
57
if ((fd = open(devpath, O_RDONLY | O_NONBLOCK)) == -1) {
usr/src/lib/sun_sas/common/devtree_device_disco.c
62
if ((fd = open(fullpath, O_RDONLY)) == -1) {
usr/src/lib/sun_sas/common/sun_sas.c
395
if ((fd = open(devpath, O_RDONLY | O_NDELAY)) == -1) {
usr/src/lib/udapl/udapl_tavor/tavor/dapl_tavor_hca.c
235
fd = open(path_buf, O_RDWR);
usr/src/lib/udapl/udapl_tavor/tavor/dapl_tavor_hca.c
492
fd = open(DEVDAPLT, O_RDONLY);
usr/src/lib/udapl/udapl_tavor/tavor/dapl_tavor_hca.c
94
if ((ibnex_fd = open(IBNEX_DEVCTL_DEV, O_RDONLY)) < 0) {
usr/src/lib/varpd/files/common/libvarpd_files.c
170
if ((fd = open(vaf->vaf_path, O_RDONLY)) < 0)
usr/src/lib/varpd/libvarpd/common/libvarpd_client.c
97
client->vcl_doorfd = open(doorname, O_RDWR);
usr/src/lib/varpd/libvarpd/common/libvarpd_door.c
421
if ((fd = open(path, O_CREAT | O_RDWR, 0666)) == -1) {
usr/src/lib/varpd/libvarpd/common/libvarpd_overlay.c
39
vip->vdi_overlayfd = open(OVERLAY_PATH, O_RDWR | O_EXCL);
usr/src/lib/varpd/libvarpd/common/libvarpd_persist.c
85
fd = open(rootdir, O_RDONLY);
usr/src/lib/watchmalloc/common/malloc.c
1324
if ((ctlfd = open("/proc/self/ctl", O_WRONLY)) < 0 ||
usr/src/lib/watchmalloc/common/malloc.c
1348
if ((pfd = open("/proc/self/status", O_RDONLY)) >= 0) {
usr/src/lib/watchmalloc/common/malloc.c
1376
if ((ctlfd = open("/proc/self/ctl", O_WRONLY)) < 0 ||
usr/src/psm/stand/boot/common/readfile.c
1331
return (open(fname, flags));
usr/src/psm/stand/boot/common/readfile.c
1354
if ((fd = open(buf, flags)) > 0)
usr/src/psm/stand/boot/sparc/common/boot_plat.c
146
if ((fd = open(BOOT_REDIRECT, O_RDONLY)) != -1) {
usr/src/psm/stand/boot/sparc/common/boot_plat.c
238
return (open(pathname, O_RDONLY));
usr/src/stand/lib/fs/common/fsswitch.c
199
if ((fd = open(filename, O_RDONLY)) != -1) {
usr/src/stand/lib/sa/stdio.c
187
fd = open(filename, O_RDONLY);
usr/src/stand/lib/sa/unistd.h
47
extern int open(const char *, int);
usr/src/stand/sys/bootvfs.h
73
extern int open(const char *filename, int flags);
usr/src/test/bhyve-tests/tests/common/common.c
130
int ctl_fd = open(VMM_CTL_DEV, O_EXCL | O_RDWR);
usr/src/test/bhyve-tests/tests/common/common.c
81
return (open("/dev/vmm_drv_test", O_RDWR));
usr/src/test/bhyve-tests/tests/common/common.c
97
int fd = open(vm_path, O_RDWR, 0);
usr/src/test/bhyve-tests/tests/viona/interface_version.c
31
int ctl_fd = open(VIONA_DEV, O_EXCL | O_RDWR);
usr/src/test/bhyve-tests/tests/viona/viona_suite.c
25
return (open(VIONA_DEV, O_RDWR));
usr/src/test/bhyve-tests/tests/vmm/check_iommu.c
30
int ctl_fd = open(VMM_CTL_DEV, O_EXCL | O_RDWR);
usr/src/test/bhyve-tests/tests/vmm/interface_version.c
34
int ctl_fd = open(VMM_CTL_DEV, O_EXCL | O_RDWR);
usr/src/test/crypto-tests/tests/common/cryptotest_kcf.c
93
while ((fd = open(CRYPTO_DEVICE, O_RDWR)) < 0) {
usr/src/test/i2c-tests/i2csimd/i2csimd.c
283
dupfd = open(_PATH_DEVNULL, O_RDONLY);
usr/src/test/i2c-tests/i2csimd/i2csimd.c
87
simd->simd_fd = open("/devices/pseudo/i2csim@0:ctrl", O_RDWR);
usr/src/test/i2c-tests/tests/ioctl/i2c_ioctl_util.c
61
i2c_test_devfd = open("/devices", O_RDONLY | O_DIRECTORY);
usr/src/test/i2c-tests/tests/libi2c/claimed-addrs.c
57
int fd = open(path, O_RDONLY);
usr/src/test/libc-tests/tests/common/openpty.c
53
sfd = open(name, O_RDWR | O_NOCTTY);
usr/src/test/libc-tests/tests/fexecve/fexecve_test.c
169
fd = open("/usr/bin/uname", O_RDONLY);
usr/src/test/libc-tests/tests/fexecve/fexecve_test.c
196
fd = open("/usr/bin/ls", O_RDONLY | O_EXEC | O_CLOEXEC);
usr/src/test/libc-tests/tests/fexecve/fexecve_test.c
214
fd = open("/usr/bin/uname", O_EXEC);
usr/src/test/libc-tests/tests/fexecve/fexecve_test.c
233
fd = open("/usr/bin/uname", O_EXEC);
usr/src/test/libc-tests/tests/isatty.c
78
int fd = open(notttys[i], O_RDONLY);
usr/src/test/libc-tests/tests/ptsname.c
111
if ((zero = open("/dev/zero", O_RDWR)) < 0) {
usr/src/test/libc-tests/tests/select/select_test.c
86
if ((null = open("/dev/null", O_RDONLY)) == -1)
usr/src/test/libc-tests/tests/select/select_test.c
93
if ((zero = open("/dev/zero", O_RDWR)) == -1)
usr/src/test/libc-tests/tests/stdio/fdclose.c
65
fd = open("/dev/null", O_WRONLY);
usr/src/test/libc-tests/tests/stdio/fileno.c
113
fd = open("/dev/null", O_RDWR);
usr/src/test/libc-tests/tests/stdio/fileno.c
197
fno_nextfd = open("/dev/null", O_RDONLY);
usr/src/test/libc-tests/tests/threads/thread_name.c
185
fd = open(path, O_RDWR);
usr/src/test/libc-tests/tests/utimes.c
154
if ((fd = open(path, O_CREAT, 0644)) == -1)
usr/src/test/libc-tests/tests/utimes.c
163
if ((lfd = open(lpath, O_RDWR)) == -1)
usr/src/test/libc-tests/tests/utimes.c
166
if ((dfd = open(dir, O_DIRECTORY|O_RDONLY)) == -1)
usr/src/test/libc-tests/tests/utimes.c
265
if ((rfd = open("/dev/null", O_RDONLY)) == -1)
usr/src/test/libc-tests/tests/utimes.c
361
if ((rfd = open("/dev/null", O_RDONLY)) == -1)
usr/src/test/libproc-tests/tests/syscall/pr_inject.c
47
if ((fd = open("/dev/null", O_RDONLY)) < 0) {
usr/src/test/libproc-tests/tests/syscall/pr_target.c
104
fd = open("/dev/null", PRT_NULL_OFLAG);
usr/src/test/libproc-tests/tests/syscall/pr_target.c
114
fd = open("/dev/zero", O_RDONLY);
usr/src/test/nvme-tests/tests/ioctl/nvme_ioctl_util.c
116
fd = open(path, oflag);
usr/src/test/nvme-tests/tests/libnvme/format.c
207
fd = open(path, O_RDWR | O_NDELAY);
usr/src/test/os-tests/tests/cores/secmapper/secmapper.c
184
fd = open(sm->sm_obj, O_RDONLY);
usr/src/test/os-tests/tests/cores/secmapper/secmapper.c
332
if ((fd = open(argv[1], O_RDONLY)) < 0) {
usr/src/test/os-tests/tests/ddi_ufm/ufm-test.c
121
if ((tst_state->ufts_ufm_fd = open(DDI_UFM_DEV, O_RDONLY)) < 0) {
usr/src/test/os-tests/tests/ddi_ufm/ufm-test.c
126
if ((tst_state->ufts_ufmtest_fd = open("/dev/ufmtest", O_RDONLY)) < 0) {
usr/src/test/os-tests/tests/ddi_ufm/ufm-test.c
245
fd = open(DDI_UFM_DEV, oflag);
usr/src/test/os-tests/tests/fifo-tvnsec.c
228
pipes[1] = open(path, O_RDONLY | O_NONBLOCK);
usr/src/test/os-tests/tests/fifo-tvnsec.c
233
pipes[0] = open(path, O_WRONLY | O_NONBLOCK);
usr/src/test/os-tests/tests/file-locking/acquire-lock.c
153
fd = open(path, rdonly ? O_RDONLY : O_WRONLY);
usr/src/test/os-tests/tests/file-locking/runtests.c
218
if ((dst->lf_fd = open(src->lf_path, O_RDWR)) == -1) {
usr/src/test/os-tests/tests/file-locking/runtests.c
235
if ((lf->lf_fd = open(lf->lf_path, O_RDWR|O_CREAT, 0600)) == -1) {
usr/src/test/os-tests/tests/file-locking/runtests.c
257
if ((lf->lf_fd = open(lf->lf_path, O_RDONLY)) == -1) {
usr/src/test/os-tests/tests/gpio/dpio_test.c
247
fd = open(path, O_RDWR);
usr/src/test/os-tests/tests/gpio/dpio_test.c
375
nonexcl = open(path, O_RDWR);
usr/src/test/os-tests/tests/gpio/dpio_test.c
382
exclfd = open(path, O_RDWR | O_EXCL);
usr/src/test/os-tests/tests/gpio/dpio_test.c
394
exclfd = open(path, O_RDWR | O_EXCL);
usr/src/test/os-tests/tests/gpio/dpio_test.c
402
nonexcl = open(path, O_RDWR);
usr/src/test/os-tests/tests/gpio/dpio_test.c
429
fd = open(path, O_RDWR);
usr/src/test/os-tests/tests/gpio/dpio_test.c
456
ctrl_fd = open(dpio_ctrl_path, O_RDWR);
usr/src/test/os-tests/tests/gpio/gpio_attr.c
468
ctrl_fd = open(gpio_ctrl_path, O_RDWR);
usr/src/test/os-tests/tests/gpio/gpio_lookup.c
121
fds[i] = open(gpio_paths[i], O_RDONLY);
usr/src/test/os-tests/tests/hexdump/hexdump_basic.c
226
if ((fd = open(filename, O_RDONLY)) == -1)
usr/src/test/os-tests/tests/ksensor/ksensor_basic.c
59
fd = open(st->st_path, O_RDONLY);
usr/src/test/os-tests/tests/ksensor/ksensor_err.c
107
fd = open(error_sensor, flags[i]);
usr/src/test/os-tests/tests/ksensor/ksensor_err.c
93
int fd = open(error_sensor, O_RDONLY);
usr/src/test/os-tests/tests/ksensor/ksensor_sread.c
70
fd = open(buf, O_RDONLY);
usr/src/test/os-tests/tests/libtopo/digraph-test.c
85
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/test/os-tests/tests/mac/mac_cksum.c
122
int fd = open(argv[0], O_RDONLY);
usr/src/test/os-tests/tests/mac/mac_lso.c
141
int in_fd = open(argv[0], O_RDONLY);
usr/src/test/os-tests/tests/mac/mac_lso.c
146
int out_fd = open(argv[1], O_RDONLY);
usr/src/test/os-tests/tests/oclo/oclo.c
1192
fd = open("/dev/zero", flags);
usr/src/test/os-tests/tests/oclo/oclo.c
200
fd = open("/dev/null", flags);
usr/src/test/os-tests/tests/odirectory.c
46
int fd = open(path, flags | O_DIRECTORY | O_RDONLY, 0644);
usr/src/test/os-tests/tests/poll/poll_test.c
375
pollfd = open("/dev/poll", O_RDWR);
usr/src/test/os-tests/tests/portfs/file_assoc.c
238
fd = open(fa_path, O_RDWR | O_CREAT, 0644);
usr/src/test/os-tests/tests/regression/illumos-15036.c
71
result_fds[nvalid] = open(path, O_RDONLY, 0);
usr/src/test/os-tests/tests/sdevfs/sdevfs_eisdir.c
60
ret = open(SD_TEST_DIR, O_RDWR, 0);
usr/src/test/os-tests/tests/sdevfs/sdevfs_eisdir.c
68
ret = open(SD_TEST_DIR, O_RDWR | O_CREAT, 0);
usr/src/test/os-tests/tests/signalfd/multipoll.c
37
int pfd = open("/dev/poll", O_RDWR);
usr/src/test/os-tests/tests/sockfs/rights.c
465
if ((testfd = open("/dev/null", O_RDONLY)) == -1)
usr/src/test/os-tests/tests/syscall/fchmodat.c
57
int fd = open(file, O_WRONLY | O_CREAT, 0644);
usr/src/test/os-tests/tests/syscall/open.c
67
fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_DIRECT, 0644);
usr/src/test/os-tests/tests/uccid/excl-badread.c
43
if ((fd = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/uccid/excl-basic.c
43
if ((fd = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/uccid/excl-close.c
49
fd = open(argv[1], O_RDWR);
usr/src/test/os-tests/tests/uccid/excl-close.c
71
fd = open(argv[1], O_RDWR);
usr/src/test/os-tests/tests/uccid/excl-loop.c
45
if ((fd = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/uccid/excl-loop.c
70
if ((fd = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/uccid/excl-nonblock.c
66
if ((fda = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/uccid/excl-nonblock.c
70
if ((fdb = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/uccid/excl-reset.c
43
if ((fd = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/uccid/modify.c
52
if ((fd = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/uccid/notxn-poll.c
44
if ((fd = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/uccid/pollin.c
43
if ((fd = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/uccid/pollout.c
43
if ((fd = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/uccid/status.c
48
if ((fd = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/uccid/status.c
52
if ((efd = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/uccid/txn-pollerr.c
52
if ((fd = open(argv[1], O_RDWR | O_EXCL)) < 0) {
usr/src/test/os-tests/tests/uccid/yk-poll.c
49
if ((fd = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/uccid/yk-readonly.c
50
if ((fd = open(argv[1], O_RDONLY)) < 0) {
usr/src/test/os-tests/tests/uccid/yk.c
48
if ((fd = open(argv[1], O_RDWR)) < 0) {
usr/src/test/os-tests/tests/vfs/statvfs.c
133
int fd = open(test->ft_path, O_RDONLY);
usr/src/test/os-tests/tests/vfs/syncfs.c
156
int fd = open(path, O_RDONLY);
usr/src/test/os-tests/tests/vfs/syncfs.c
52
int fd = open(test->se_path, O_RDONLY);
usr/src/test/smbclient-tests/cmd/abort_conn/abort_conn.c
73
if ((fd = open("/dev/tcp", O_RDONLY)) < 0) {
usr/src/test/smbclient-tests/cmd/close_wr/close_wr.c
54
fid = open(argv[1], O_RDWR | O_CREAT | O_TRUNC,
usr/src/test/smbclient-tests/cmd/cp_mmap/cp_mmap.c
106
src_fid = open(src_file, O_RDONLY);
usr/src/test/smbclient-tests/cmd/cp_mmap/cp_mmap.c
112
des_fid = open(des_file, O_RDWR | O_CREAT | O_TRUNC,
usr/src/test/smbclient-tests/cmd/file_trunc/file_trunc.c
79
fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
usr/src/test/smbclient-tests/cmd/mkfile_mmap/mkfile_mmap.c
108
fid = open(filename, O_RDWR | O_CREAT | O_TRUNC,
usr/src/test/smbclient-tests/cmd/no_close/no_close.c
51
fid = open(argv[1], O_RDWR | O_CREAT | O_TRUNC,
usr/src/test/smbclient-tests/cmd/prot_mmap/prot_mmap.c
127
src_fid = open(src_file, flags0);
usr/src/test/smbclient-tests/cmd/prot_mmap/prot_mmap.c
133
des_fid = open(des_file, flags1);
usr/src/test/smbclient-tests/cmd/rw_mmap/rw_mmap.c
105
fid = open(filename, O_RDWR | O_CREAT | O_TRUNC,
usr/src/test/tz-tests/tests/zoneinfo_dump.c
240
if ((dirfd = open(base, O_RDONLY | O_DIRECTORY)) < 0) {
usr/src/test/util-tests/tests/cpmvln/mkobj.c
86
if ((fd = open(door, O_CREAT | O_EXCL | O_RDWR, 0666)) < 0) {
usr/src/test/util-tests/tests/ctf/check-merge-static.c
258
if ((fd = open(argv[i], O_RDONLY)) < 0) {
usr/src/test/util-tests/tests/smbios/smbios.c
818
if ((test_dirfd = open(outdir, O_RDONLY)) < 0) {
usr/src/test/zfs-tests/cmd/devname2devid/devname2devid.c
74
if ((fd = open(device, O_RDONLY|O_NDELAY)) < 0) {
usr/src/test/zfs-tests/cmd/dir_rd_update/dir_rd_update.c
106
int fd = open(dirpath, O_RDONLY);
usr/src/test/zfs-tests/cmd/dir_rd_update/dir_rd_update.c
82
testdd = open(dirpath, O_RDONLY|O_RSYNC|O_SYNC|O_DSYNC);
usr/src/test/zfs-tests/cmd/dir_rd_update/dir_rd_update.c
92
int fd = open(dirpath, O_RDONLY|O_RSYNC|O_SYNC|O_DSYNC);
usr/src/test/zfs-tests/cmd/dos_ro/dos_ro.c
92
fd = open(fname, O_CREAT | O_RDWR, 0644);
usr/src/test/zfs-tests/cmd/file_check/file_check.c
67
if ((bigfd = open(argv[1], O_RDONLY)) == -1) {
usr/src/test/zfs-tests/cmd/file_trunc/file_trunc.c
84
fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
usr/src/test/zfs-tests/cmd/file_write/file_write.c
173
if ((bigfd = open(filename, oflag, 0666)) == -1) {
usr/src/test/zfs-tests/cmd/getholes/getholes.c
149
if ((fd = open(fname, O_LARGEFILE | O_RDONLY)) < 0) {
usr/src/test/zfs-tests/cmd/has_unmap/has_unmap.c
36
if ((fd = open(argv[1], O_RDONLY)) == -1) {
usr/src/test/zfs-tests/cmd/largest_file/largest_file.c
73
fd = open(testfile, O_CREAT | O_RDWR, mode);
usr/src/test/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c
1004
zfs_fd = open(ZFS_DEV, O_RDWR|O_EXCL);
usr/src/test/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c
543
int cleanup_fd = open(ZFS_DEV, O_RDWR);
usr/src/test/zfs-tests/cmd/mkbusy/mkbusy.c
164
if ((fd = open(fpath, flags, mode)) < 0)
usr/src/test/zfs-tests/cmd/mkfiles/mkfiles.c
57
if ((fd = open(buf, O_CREAT | O_EXCL, O_RDWR)) == -1) {
usr/src/test/zfs-tests/cmd/mkholes/mkholes.c
140
if ((fd = open(fname, O_LARGEFILE | O_RDWR | O_CREAT | O_SYNC,
usr/src/test/zfs-tests/cmd/mkholes/mkholes.c
68
if ((rand_fd = open("/dev/urandom", O_RDONLY)) < 0) {
usr/src/test/zfs-tests/cmd/mktree/mktree.c
172
if ((fd = open(pname, O_CREAT|O_RDWR, 0777)) < 0) {
usr/src/test/zfs-tests/cmd/mmapwrite/mmapwrite.c
77
if ((fd = open(argv[1], O_RDWR|O_CREAT|O_TRUNC, 0666)) == -1) {
usr/src/test/zfs-tests/cmd/randfree_file/randfree_file.c
89
if ((fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, mode)) < 0) {
usr/src/test/zfs-tests/cmd/randwritecomp/randwritecomp.c
159
fd = open(filename, O_RDWR|O_CREAT, 0666);
usr/src/test/zfs-tests/cmd/readmmap/readmmap.c
74
fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
usr/src/test/zfs-tests/cmd/rm_lnkcnt_zero_file/rm_lnkcnt_zero_file.c
106
*fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
usr/src/test/zfs-tests/cmd/rm_lnkcnt_zero_file/rm_lnkcnt_zero_file.c
127
fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
usr/src/test/zfs-tests/tests/functional/ctime/ctime_001_pos.c
111
if ((fd = open(pfile, O_RDONLY, ALL_MODE)) == -1) {
usr/src/test/zfs-tests/tests/functional/ctime/ctime_001_pos.c
134
if ((fd = open(pfile, O_WRONLY, ALL_MODE)) == -1) {
usr/src/test/zfs-tests/tests/functional/ctime/ctime_001_pos.c
305
if ((fd = open(tfile, O_WRONLY | O_CREAT | O_TRUNC, ALL_MODE)) == -1) {
usr/src/test/zfs-tests/tests/functional/exec/mmap_exec.c
55
if ((fd = open(argv[1], O_RDONLY)) < 0) {
usr/src/test/zfs-tests/tests/functional/libzfs/many_fds.c
56
int fd = open("/dev/null", O_RDONLY);
usr/src/test/zfs-tests/tests/functional/threadsappend/threadsappend.c
108
outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777);
usr/src/tools/btxld/btxld.c
227
if ((fdi[i] = open(fname, O_RDONLY)) == -1)
usr/src/tools/btxld/btxld.c
273
if ((fdo = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0666)) == -1)
usr/src/tools/btxld/version.c
117
fd = open(ofile, O_CREAT | O_WRONLY | O_TRUNC, 0644);
usr/src/tools/btxld/version.c
59
fd = open(ifile, O_RDONLY);
usr/src/tools/cpcgen/cpcgen.c
2017
if ((outdirfd = open(outdir, O_RDONLY)) < 0) {
usr/src/tools/cpcgen/cpcgen.c
542
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/tools/cscope-fast/cgrep.c
1655
if ((file_desc = open(file, O_RDONLY)) < 0) {
usr/src/tools/cscope-fast/logdir.c
67
if ((pwf = open("/etc/passwd", O_RDONLY)) == -1)
usr/src/tools/cscope-fast/vpopen.c
48
if ((returncode = open(path, oflag, 0666)) == -1 && *path != '/' &&
usr/src/tools/cscope-fast/vpopen.c
53
if ((returncode = open(buf, oflag, 0666)) != -1) {
usr/src/tools/ctf/ctfstrip/ctfstrip.c
74
fd = open(filename, O_RDONLY);
usr/src/tools/cw/cw.c
1277
if ((fd = open(ctx->i_stderr, O_WRONLY | O_CREAT | O_EXCL,
usr/src/tools/elfextract/elfextract.c
220
fd = open(fname, O_RDONLY);
usr/src/tools/find_elf/find_elf.c
205
if ((fd = open(arg, O_RDONLY)) == -1) {
usr/src/tools/find_elf/find_elf.c
240
rootfd = open(dir, O_RDONLY);
usr/src/tools/find_elf/find_elf.c
242
rootfd = open(dir, O_RDONLY|O_DIRECTORY);
usr/src/tools/install.bin/install.bin.c
71
if ((src_fd = open(src_file, O_RDONLY)) == -1) {
usr/src/tools/install.bin/install.bin.c
77
if ((dest_fd = open(dest_file, O_CREAT|O_WRONLY|O_TRUNC, 0755)) == -1) {
usr/src/tools/manlink/manlink.c
174
int dfd = open(dest_dir, O_DIRECTORY | O_RDONLY, 0);
usr/src/tools/mbh_patch/mbh_patch.c
270
if ((fd = open(fname, O_RDWR)) < 0) {
usr/src/tools/smatch/src/lib.c
1510
fd = open(filename, O_RDONLY);
usr/src/tools/smatch/src/pre-process.c
917
fd = open(fullname, O_RDONLY);
usr/src/tools/smatch/src/smatch_files.c
29
fd = open(filename, O_RDONLY);
usr/src/tools/smatch/src/smatch_files.c
35
return open(buf, O_RDONLY);
usr/src/tools/smatch/src/smatch_files.c
47
return open(buf, O_RDONLY);
usr/src/tools/smatch/src/smatch_mem_tracker.c
38
my_fd = open("/proc/self/psinfo", O_RDONLY);
usr/src/ucbcmd/install.d/install.c
232
if ((to_fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, 0)) < 0) {
usr/src/ucbcmd/install.d/install.c
274
if ((from_fd = open(from_name, O_RDONLY, 0)) < 0) {
usr/src/ucbcmd/sed/sed1.c
111
if ((f = open(file, 0)) < 0) {
usr/src/ucbcmd/shutdown/shutdown.c
358
if ((fd = open(term, O_WRONLY|O_NOCTTY)) == -1) {
usr/src/ucbcmd/stty/stty.c
124
if ((i = open("/dev/tty", 0)) < 0) {
usr/src/ucbcmd/stty/stty.c
83
if ((i = open("/dev/tty", 0)) < 0) {
usr/src/ucbcmd/stty/stty.c
95
if ((i = open("/dev/tty", 0)) < 0) {
usr/src/ucbcmd/touch/touch.c
309
if ((fd = open(filename, 2)) < 0)
usr/src/ucbcmd/tset/tset.c
1280
fd = open(file, 0);
usr/src/ucbcmd/vipw/vipw.c
197
fd = open(to, O_WRONLY|O_CREAT|O_EXCL, 0600);
usr/src/ucbhead/sys/fcntl.h
229
#define open64 open
usr/src/ucbhead/sys/fcntl.h
236
extern int open(const char *, int, ...);
usr/src/ucblib/libdbm/dbm.c
76
pagf = open(pagbuf, 2);
usr/src/ucblib/libdbm/dbm.c
78
pagf = open(pagbuf, 0);
usr/src/ucblib/libdbm/dbm.c
89
dirf = open(pagbuf, 2);
usr/src/ucblib/libdbm/dbm.c
91
dirf = open(pagbuf, 0);
usr/src/ucblib/libtermcap/termcap.c
100
tf = open(E_TERMCAP, 0);
usr/src/ucblib/libtermcap/termcap.c
102
tf = open(E_TERMCAP, 0);
usr/src/ucblib/libtermcap/termcap.c
88
tf = open(cp, 0);
usr/src/ucblib/libucb/port/gen/nlist.c
107
if ((fd = open(name, 0)) < 0)
usr/src/ucblib/libucb/port/stdio/fopen.c
79
fd = open(file, oflag, 0666);
usr/src/uts/common/des/des_crypt.c
66
#define getdesfd() (open("/dev/des", 0, 0))
usr/src/uts/common/fs/fem.c
136
_FEMGUARD(OPEN, open),
usr/src/uts/common/fs/fem.c
82
_FEMOPDEF(OPEN, open),
usr/src/uts/common/fs/smbsrv/smb2_create.c
1037
smb_arg_open_t *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb2_create.c
107
smb_arg_open_t *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb2_create.c
726
smb_arg_open_t *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb2_durable.c
1049
smb_arg_open_t *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb2_durable.c
129
smb_arg_open_t *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb2_durable.c
499
smb_arg_open_t *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb2_lease.c
152
smb_arg_open_t *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb2_lease.c
769
smb_arg_open_t *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb2_oplock.c
411
smb_arg_open_t *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb2_oplock.c
550
smb_arg_open_t *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_create.c
121
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_create.c
125
bzero(op, sizeof (sr->arg.open));
usr/src/uts/common/fs/smbsrv/smb_create.c
148
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_create.c
179
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_create.c
38
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_create.c
41
bzero(op, sizeof (sr->arg.open));
usr/src/uts/common/fs/smbsrv/smb_create.c
80
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_create.c
83
bzero(op, sizeof (sr->arg.open));
usr/src/uts/common/fs/smbsrv/smb_directory.c
168
sr->arg.open.create_options = FILE_DIRECTORY_FILE;
usr/src/uts/common/fs/smbsrv/smb_dispatch.c
154
{ "SmbOpen", SMB_SDT_OPS(open), /* 0x02 002 */
usr/src/uts/common/fs/smbsrv/smb_fsops.c
216
*ret_snode = smb_node_lookup(sr, &sr->arg.open, cr, vp,
usr/src/uts/common/fs/smbsrv/smb_fsops.c
245
*ret_snode = smb_node_lookup(sr, &sr->arg.open, cr, vp,
usr/src/uts/common/fs/smbsrv/smb_fsops.c
591
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_nt_create_andx.c
173
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_nt_create_andx.c
179
bzero(op, sizeof (sr->arg.open));
usr/src/uts/common/fs/smbsrv/smb_nt_create_andx.c
225
if (sr->arg.open.dir != NULL) {
usr/src/uts/common/fs/smbsrv/smb_nt_create_andx.c
226
smb_ofile_release(sr->arg.open.dir);
usr/src/uts/common/fs/smbsrv/smb_nt_create_andx.c
227
sr->arg.open.dir = NULL;
usr/src/uts/common/fs/smbsrv/smb_nt_create_andx.c
237
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_nt_transact_create.c
126
smb_sd_t *sd = sr->arg.open.sd;
usr/src/uts/common/fs/smbsrv/smb_nt_transact_create.c
136
if (sr->arg.open.dir != NULL) {
usr/src/uts/common/fs/smbsrv/smb_nt_transact_create.c
137
smb_ofile_release(sr->arg.open.dir);
usr/src/uts/common/fs/smbsrv/smb_nt_transact_create.c
138
sr->arg.open.dir = NULL;
usr/src/uts/common/fs/smbsrv/smb_nt_transact_create.c
148
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_nt_transact_create.c
57
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_nt_transact_create.c
67
bzero(op, sizeof (sr->arg.open));
usr/src/uts/common/fs/smbsrv/smb_open_andx.c
221
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_open_andx.c
224
bzero(op, sizeof (sr->arg.open));
usr/src/uts/common/fs/smbsrv/smb_open_andx.c
244
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_open_andx.c
330
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_open_andx.c
337
bzero(op, sizeof (sr->arg.open));
usr/src/uts/common/fs/smbsrv/smb_open_andx.c
384
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_open_andx.c
507
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_open_andx.c
516
bzero(op, sizeof (sr->arg.open));
usr/src/uts/common/fs/smbsrv/smb_oplock.c
237
smb_arg_open_t *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_pathname.c
234
chk_vss = sr->arg.open.create_timewarp;
usr/src/uts/common/fs/smbsrv/smb_print.c
109
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_print.c
58
struct open_param *op = &sr->arg.open;
usr/src/uts/common/fs/smbsrv/smb_print.c
67
bzero(op, sizeof (sr->arg.open));
usr/src/uts/common/fs/smbsrv/smb_vss.c
143
smb_arg_open_t *op = &sr->arg.open;
usr/src/uts/common/fs/vnode.c
3400
VOPSTATS_UPDATE(vp, open);
usr/src/uts/common/fs/vnode.c
3414
VOPSTATS_UPDATE(*vpp, open);
usr/src/uts/common/fs/zfs/spa_misc.c
2250
arc_procfd = open("/proc/self/ctl", O_WRONLY);
usr/src/uts/common/gssapi/mechs/krb5/include/krb5.h
153
#define THREEPARAMOPEN(x,y,z) open(x,y,z)
usr/src/uts/common/io/audio/drv/audiocmi/audiocmi.h
273
boolean_t open;
usr/src/uts/common/io/audio/impl/audio_impl.h
507
#define ENG_OPEN(e, flg, nf, d) E_OP(e, open)(E_PRV(e), flg, nf, d)
usr/src/uts/common/io/audio/impl/audio_sun.c
268
prinfo->open = B_FALSE;
usr/src/uts/common/io/audio/impl/audio_sun.c
288
prinfo->open = B_FALSE;
usr/src/uts/common/io/audio/impl/audio_sun.c
412
play->open = B_TRUE;
usr/src/uts/common/io/audio/impl/audio_sun.c
433
rec->open = B_TRUE;
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
473
uint_t open; /* character device is open */
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
884
return (atomic_cas_uint(&sc->open, 0, EBUSY));
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
897
(void) atomic_swap_uint(&sc->open, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_thread.c
150
if (taskq->open) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_thread.c
183
taskq->open = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_thread.c
199
if (!taskq->open) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_thread.c
206
if (!taskq->open) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_thread.c
211
taskq->open = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_thread.c
91
if (!taskq->open) {
usr/src/uts/common/io/iwn/if_iwn.c
5448
btprot.open = 1;
usr/src/uts/common/io/iwn/if_iwn.c
5456
btprot.open = 0;
usr/src/uts/common/io/iwn/if_iwnreg.h
1013
uint8_t open;
usr/src/uts/common/os/dumpsubr.c
1635
atomic_dec_uint(&cq->open);
usr/src/uts/common/os/dumpsubr.c
1639
atomic_dec_uint(&cq->open);
usr/src/uts/common/os/dumpsubr.c
1694
while (cq->open)
usr/src/uts/common/os/dumpsubr.c
1737
if (cq->open == 0)
usr/src/uts/common/os/dumpsubr.c
1750
dumpsys_unlock(cq, live, cq->first != NULL || cq->open == 0);
usr/src/uts/common/os/dumpsubr.c
316
volatile uint_t open; /* producer ref count */
usr/src/uts/common/os/dumpsubr.c
327
atomic_inc_uint(&ds->q.open)
usr/src/uts/common/os/kiconv.c
1112
if (conv_list[j].open == NULL) {
usr/src/uts/common/os/kiconv.c
1113
conv_list[j].open = op->kiconv_open;
usr/src/uts/common/os/kiconv.c
1168
conv_list[i].open = NULL;
usr/src/uts/common/os/kiconv.c
1225
if (conv_list[i].open == NULL) {
usr/src/uts/common/os/kiconv.c
1237
if (conv_list[i].open == NULL) {
usr/src/uts/common/os/kiconv.c
1275
kcd->handle = (conv_list[kcd->id].open)();
usr/src/uts/common/os/sysent.c
109
int open(char *, int, int);
usr/src/uts/common/os/sysent.c
444
/* 5 */ SYSENT_CI("open", open, 3),
usr/src/uts/common/smbsrv/smb_kproto.h
162
SMB_COM_DECL(open);
usr/src/uts/common/smbsrv/smb_ktypes.h
1935
smb_arg_open_t open;
usr/src/uts/common/smbsrv/smb_ktypes.h
1948
#define sr_open arg.open
usr/src/uts/common/sys/audioio.h
86
uchar_t open; /* non-zero if open access permitted */
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_thread.h
80
uint32_t open;
usr/src/uts/common/sys/kiconv.h
56
void *(*open)(void);
usr/src/uts/intel/sys/bootvfs.h
99
extern int open(const char *filename, int flags);
usr/src/uts/sun4v/io/vdc.c
1214
if (vdc->open[i] != 0)
usr/src/uts/sun4v/io/vdc.c
1251
if (vdc->open[i] & slicemask)
usr/src/uts/sun4v/io/vdc.c
1261
vdc->open[otyp] |= slicemask;
usr/src/uts/sun4v/io/vdc.c
1282
vdc->open[otyp] &= ~slicemask;
usr/src/uts/sun4v/sys/vdc.h
305
uint8_t open[OTYPCNT]; /* mask of opened slices */