Home
last modified time | relevance | path

Searched refs:O_RDONLY (Results 26 – 50 of 874) sorted by relevance

12345678910>>...35

/illumos-gate/usr/src/cmd/sgs/libcrle/common/
H A Ddump.c215 if ((fd = open(MSG_ORIG(MSG_PTH_PROCSTATUS), O_RDONLY)) == -1) { in filladdr()
246 if ((fd = open(MSG_ORIG(MSG_PTH_PROCRMAP), O_RDONLY)) == -1) { in filladdr()
283 if ((fd = open(MSG_ORIG(MSG_PTH_DEVNULL), O_RDONLY)) == -1) { in filladdr()
/illumos-gate/usr/src/cmd/fs.d/ufs/lockfs/
H A Dlockfs.c257 fd = open64(fn, O_RDONLY); in printstatus()
348 fd = open64(fn, O_RDONLY); in flushfs()
373 fd = open64(fn, O_RDONLY); in lockfs()
/illumos-gate/usr/src/cmd/backup/dump/
H A Dlftw.c118 if ((pwdfd = open(".", O_RDONLY)) < 0) { in lf_lftw()
167 attrfd = attropen64(path, ".", O_RDONLY|O_NONBLOCK); in lf_xftw()
/illumos-gate/usr/src/lib/krb5/ss/
H A Dhelp.c69 if ((fd = open(&buffer[0], O_RDONLY)) >= 0) goto got_it;
71 if ((fd = open(&buffer[0], O_RDONLY)) < 0) {
/illumos-gate/usr/src/boot/i386/gptzfsboot/
H A Dzfsboot.c288 fd = open(PATH_CONFIG, O_RDONLY); in main()
290 fd = open(PATH_DOTCONFIG, O_RDONLY); in main()
379 if ((fd = open(kname, O_RDONLY)) == -1) { in load()
539 fd = open(arg, O_RDONLY); in fs_list()
739 pa.fd = open(devname, O_RDONLY); in probe_partition()
799 pa.fd = open(devname, O_RDONLY); in probe_disk()
/illumos-gate/usr/src/cmd/fs.d/ufs/roll_log/
H A Droll_log.c350 O_RDONLY)) == SYSERR) { in rlflush()
485 fd = open(li.li_mntpoint, O_RDONLY); in rl_log_control()
487 fd = open(li.li_tmpmp, O_RDONLY); in rl_log_control()
/illumos-gate/usr/src/lib/sun_fc/common/
H A DTgtFCHBA.cc97 if ((fd = open(FCT_DRIVER_PATH.c_str(), O_NDELAY | O_RDONLY)) == -1) { in getHBAAttributes()
173 if ((fd = open(FCT_DRIVER_PATH.c_str(), O_NDELAY | O_RDONLY)) == -1) { in doForceLip()
259 if ((fd = open(FCT_DRIVER_PATH.c_str(), O_RDONLY)) < 0) { in loadAdapters()
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dmap.c1389 if ((fcp_fd = g_object_open(FCP_PATH, O_RDONLY)) == -1) { in g_get_inq_dtype()
1452 if ((fcp_fd = g_object_open(FCP_PATH, O_RDONLY)) == -1) { in get_fca_inq_dtype()
2084 if ((fcp_fd = g_object_open(FCP_PATH, O_RDONLY)) == -1) { in handle_map_dev_FCP_prop()
2558 O_NDELAY | O_RDONLY | O_EXCL)) == in g_dev_map_init()
3432 O_NDELAY | O_RDONLY)) == -1) in g_rdls()
4015 if ((fd = g_object_open(path, O_NDELAY | O_RDONLY)) == -1) in g_get_inquiry()
4097 if ((fd = g_object_open(path, O_NDELAY | O_RDONLY)) == -1) in g_get_perf_statistics()
4119 if ((fd = g_object_open(path, O_NDELAY | O_RDONLY)) == -1) in g_start()
4132 if ((fd = g_object_open(path, O_NDELAY | O_RDONLY)) == -1) in g_stop()
4145 if ((fd = g_object_open(path, O_NDELAY | O_RDONLY)) == -1) in g_reserve()
[all …]
/illumos-gate/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_kef_ioctl.c267 if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDONLY)) == -1) { in get_dev_list()
350 if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDONLY)) == -1) { in get_dev_info()
464 if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDONLY)) == -1) { in get_soft_info()
549 if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDONLY)) == -1) { in get_soft_list()
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones_exec.c182 stdinfile = open(a_inputFile, O_RDONLY); in z_ExecCmdArray()
184 stdinfile = open("/dev/null", O_RDONLY); /* stdin = /dev/null */ in z_ExecCmdArray()
749 stdinfile = open(a_inputFile, O_RDONLY); in _z_zone_exec()
751 stdinfile = open("/dev/null", O_RDONLY); /* stdin = /dev/null */ in _z_zone_exec()
/illumos-gate/usr/src/cmd/cdrw/
H A Ddevice.c126 fd = open(devnode, O_RDONLY|O_NDELAY); in get_device()
457 ((fd = open(supplied, O_RDONLY|O_NDELAY)) >= 0)) { in lookup_device()
478 if ((fd = open(tmpstr, O_RDONLY|O_NDELAY)) >= 0) { in lookup_device()
494 if ((fd = open(tmpstr, O_RDONLY|O_NDELAY)) >= 0) { in lookup_device()
518 fd = open(node, O_RDONLY|O_NDELAY); in is_cd()
/illumos-gate/usr/src/cmd/fm/mcdecode/
H A Dmcdecode.c176 if ((fd = open(file, O_RDONLY)) < 0) { in mcdecode_from_file()
232 if ((fd = open(device, O_RDONLY)) < 0) { in mcdecode_pa()
297 if ((fd = open(device, O_RDONLY)) < 0) { in mcdecode_dump()
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgexecv.c354 n = open(filein, O_RDONLY); in pkgexecv()
364 n = open(filein, O_RDONLY); in pkgexecv()
/illumos-gate/usr/src/cmd/vt/
H A Dvtinfo.c45 if ((fd = open("/dev/vt/0", O_RDONLY)) < 0) in main()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_main.c303 if ((fd = open("/dev/kmdb", O_RDONLY)) < 0) in control_kmdb()
456 _mdb_self_fd = open("/proc/self/as", O_RDONLY); in main()
909 O_RDONLY, 0)) == NULL) in main()
989 tgt_argv[2], O_RDONLY, 0)) == NULL) in main()
997 O_RDONLY, 0)) == NULL) in main()
1098 fd = open64(rcpath, O_RDONLY); in main()
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/
H A Dps.c79 if ((pauxvfd = open(pname, O_RDONLY)) == -1) in get_ldbase()
140 if ((procp->pp_mapfd = open(procname, O_RDONLY)) == -1) in ps_init()
327 if ((lwpfd = open(procname, O_RDONLY)) == -1) in ps_lgetregs()
/illumos-gate/usr/src/boot/libsa/
H A Dstat.c43 fd = open(str, O_RDONLY); in stat()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dfcntl.c257 #ifndef O_RDONLY in main()
275 #ifndef O_RDONLY in main()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dopendir.c53 O_RDONLY | O_NDELAY | O_LARGEFILE, 0)) < 0) in opendir()
/illumos-gate/usr/src/cmd/svc/startd/
H A Dproc.c46 fd = open("/proc/self/psinfo", O_RDONLY); in proc_get_ctid()
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dcan_use_af.c48 if ((fd = open("/dev/udp", O_RDONLY)) < 0) in __can_use_af()
/illumos-gate/usr/src/cmd/rcap/common/
H A Drcapd_stat.c45 if ((fd = open(file, O_RDONLY)) < 0) in stat_get_rcapd_pid()
/illumos-gate/usr/src/test/zfs-tests/cmd/has_unmap/
H A Dhas_unmap.c36 if ((fd = open(argv[1], O_RDONLY)) == -1) { in main()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/exec/
H A Dmmap_exec.c55 if ((fd = open(argv[1], O_RDONLY)) < 0) { in main()
/illumos-gate/usr/src/cmd/w/
H A Dw.c363 dirfd = priv_proc_open(pname, O_RDONLY | O_DIRECTORY); in main()
367 procfd = priv_proc_openat(dirfd, "psinfo", O_RDONLY); in main()
386 procfd = priv_proc_openat(dirfd, "status", O_RDONLY); in main()
399 procfd = priv_proc_openat(dirfd, "sigact", O_RDONLY); in main()

12345678910>>...35