Home
last modified time | relevance | path

Searched refs:O_RDONLY (Results 1 – 25 of 892) sorted by relevance

12345678910>>...36

/illumos-gate/usr/src/cmd/mt/
H A Dmt.c62 { "fsf", MTFSF, O_RDONLY, 1 },
63 { "bsf", MTBSF, O_RDONLY, 1 },
64 { "asf", MTASF, O_RDONLY, 1 },
65 { "fsr", MTFSR, O_RDONLY, 1 },
66 { "bsr", MTBSR, O_RDONLY, 1 },
73 { "eom", MTEOM, O_RDONLY, 0 },
74 { "nbsf", MTNBSF, O_RDONLY, 1 },
79 { "fssf", MTFSSF, O_RDONLY, 1 },
80 { "bssf", MTBSSF, O_RDONLY, 1 },
81 { "tell", MTTELL, O_RDONLY, 0 },
[all …]
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_get_info.c65 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_cred()
85 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_secflags()
113 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_priv()
143 if ((fd = open(fname, O_RDONLY)) < 0) in proc_get_ldt()
174 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_psinfo()
191 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_status()
214 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_auxv()
231 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_lwpsinfo()
/illumos-gate/usr/src/test/smbclient-tests/cmd/prot_mmap/
H A Dprot_mmap.c73 flags0 |= O_RDONLY; in main()
77 if ((flags0 & (O_RDONLY | O_WRONLY)) == in main()
78 (O_RDONLY | O_WRONLY)) in main()
83 flags1 |= O_RDONLY; in main()
87 if ((flags1 & (O_RDONLY | O_WRONLY)) == in main()
88 (O_RDONLY | O_WRONLY)) in main()
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c43 pwdfd = open(".", O_RDONLY); in get_attrdirs()
45 if ((fd1 = attropen(attrfile, ".", O_RDONLY)) == -1) { in get_attrdirs()
57 if ((fd2 = attropen(attrfile, ".", O_RDONLY)) == -1) { in get_attrdirs()
98 if ((srcfd = open(infile, O_RDONLY)) == -1) { in mv_xattrs()
105 if ((indfd = openat(srcfd, ".", O_RDONLY|O_XATTR)) == -1) { in mv_xattrs()
109 if ((outdfd = attropen(outfile, ".", O_RDONLY)) == -1) { in mv_xattrs()
131 O_RDONLY)) == -1) { in mv_xattrs()
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_files.c29 fd = open(filename, O_RDONLY); in open_data_file()
35 return open(buf, O_RDONLY); in open_data_file()
47 return open(buf, O_RDONLY); in open_schema_file()
/illumos-gate/usr/src/test/zfs-tests/cmd/dir_rd_update/
H A Ddir_rd_update.c82 testdd = open(dirpath, O_RDONLY|O_RSYNC|O_SYNC|O_DSYNC); in main()
92 int fd = open(dirpath, O_RDONLY|O_RSYNC|O_SYNC|O_DSYNC); in main()
106 int fd = open(dirpath, O_RDONLY); in main()
/illumos-gate/usr/src/test/os-tests/tests/ksensor/
H A Dksensor_err.c91 int flags[] = { O_RDWR, O_WRONLY, O_RDONLY | O_NDELAY, in main()
92 O_RDONLY | O_NONBLOCK }; in main()
93 int fd = open(error_sensor, O_RDONLY); in main()
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/
H A Dcmd_ecache.c77 if ((fd = open(path, O_RDONLY)) < 0) in ecache_scan_dir()
133 if ((fd = open(cmd.cmd_ecache_dev, O_RDONLY)) < 0) { in cmd_ecache_flush()
142 (fd = open(cmd.cmd_ecache_dev, O_RDONLY)) < 0) in cmd_ecache_flush()
/illumos-gate/usr/src/lib/libsqlite/tool/
H A Ddiffdb.c27 db1 = open(argv[1], O_RDONLY); in main()
32 db2 = open(argv[2], O_RDONLY); in main()
/illumos-gate/usr/src/lib/libc/port/stdio/
H A D_stdio_flags.c58 oflag = O_RDONLY; in _stdio_flags()
97 oflag = (oflag & ~(O_RDONLY | O_WRONLY)) | O_RDWR; in _stdio_flags()
/illumos-gate/usr/src/lib/libc/port/gen/
H A D_xftw.c290 if ((fd = openat(AT_FDCWD, dirp, O_RDONLY)) < 0) { in nocdopendir()
296 if ((cfd = openat(fd, token, O_RDONLY)) < 0) { in nocdopendir()
337 if ((fd = openat(AT_FDCWD, dirp, O_RDONLY)) < 0) { in nocdstat()
345 if ((cfd = openat(fd, token, O_RDONLY)) < 0) { in nocdstat()
H A Dattropen.c60 if ((fd = open64(file, O_RDONLY|O_NONBLOCK)) == -1) { in attropen64()
91 if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) { in attropen()
/illumos-gate/usr/src/cmd/svc/startd/
H A Dcontract.c92 if ((psfd = open("/proc/self/psinfo", O_RDONLY)) < 0) { in contract_init()
110 if ((csfd = contract_open(ctid, "process", "status", O_RDONLY)) < 0) { in contract_init()
167 O_RDONLY)) < 0) { in contract_init()
219 fd = contract_open(ctid, "process", "status", O_RDONLY); in contract_is_empty()
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_object_detector.c69 #ifndef O_RDONLY
70 #define O_RDONLY 0 macro
563 fd = open(outpath,O_RDONLY|O_BINARY); in dwarf_object_detector_path()
566 fd = open(path,O_RDONLY|O_BINARY); in dwarf_object_detector_path()
570 fd = open(path,O_RDONLY|O_BINARY); in dwarf_object_detector_path()
/illumos-gate/usr/src/lib/libsun_ima/common/
H A Dima.c274 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { in IMA_GetNodeProperties()
325 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { in IMA_SetNodeName()
355 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { in IMA_SetNodeAlias()
419 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { in IMA_GetDiscoveryProperties()
789 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { in IMA_GetDiscoveryAddressOidList()
935 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { in IMA_RemoveDiscoveryAddress()
1048 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { in IMA_AddDiscoveryAddress()
1088 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { in IMA_GetStaticDiscoveryTargetProperties()
1174 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { in IMA_GetDiscoveryAddressProperties()
1272 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { in IMA_RemoveStaticDiscoveryTarget()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/cmd/badioctl/
H A Dbadioctl.c66 if ((random = open("/dev/random", O_RDONLY)) == -1) in badioctl()
91 fd = open("/devices/pseudo/dtrace@0:dtrace", O_RDONLY); in badioctl()
/illumos-gate/usr/src/lib/sun_fc/common/
H A DFCHBA.cc89 if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) == in FCHBA()
157 if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) == -1) { in getHBAAttributes()
223 if ((fd = open(port->getPath().c_str(), O_RDONLY | O_EXCL)) == -1) { in doForceLip()
266 if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) == -1) { in npivGetHBAAttributes()
359 if ((fd = open(FCSM_DRIVER_PATH.c_str(), O_RDONLY)) < 0) { in loadAdapters()
/illumos-gate/usr/src/cmd/runat/
H A Drunat.c68 if ((fd = open64(argv[1], O_RDONLY)) == -1) { in main()
75 if ((dirfd = openat64(fd, ".", O_RDONLY|O_XATTR)) == -1) { in main()
/illumos-gate/usr/src/cmd/fm/mcdecode/
H A Dmcdecode.c65 if ((fd = open(file, O_RDONLY)) < 0) { in mcdecode_from_file()
132 if ((fd = open(device, O_RDONLY)) < 0) { in mcdecode_pa()
165 if ((fd = open(device, O_RDONLY)) < 0) { in mcdecode_dump()
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcp_stable.c70 if ((fd = open(DUID_FILE, O_RDONLY)) == -1) in read_stable_duid()
198 if ((fd = open(IAID_FILE, O_RDONLY)) == -1) in read_stable_iaid()
268 if ((fd = open(IAID_FILE, O_RDONLY)) == -1) in make_stable_iaid()
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Diod_cl.c97 fd = open(path, O_RDONLY, 0); in smb_iod_open_door()
138 fd = open(svc_door, O_RDONLY, 0); in start_iod()
/illumos-gate/usr/src/lib/efcode/efdaemon/
H A Defdaemon.c79 if ((fd = open(dev_fcode_file, O_RDONLY)) < 0) { in main()
123 while ((fd = open(dev_fcode_file, O_RDONLY)) < 0) { in main()
/illumos-gate/usr/src/lib/libcontract/common/
H A Dlibcontract_priv.c67 if ((cfd = open64(CTFS_ROOT "/process/latest", O_RDONLY)) == -1) in contract_latest()
133 if ((fd = open("/proc/self/psinfo", O_RDONLY)) == -1) in getctid()
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dstdio.c80 oflags = O_RDONLY;
420 oflags = O_RDONLY;
499 case O_RDONLY:
/illumos-gate/usr/src/cmd/tip/
H A Dremcap.c150 tf = open(E_TERMCAP, O_RDONLY); in getent()
156 tf = open(RM = cp, O_RDONLY); in getent()
162 tf = open(E_TERMCAP, O_RDONLY); in getent()

12345678910>>...36