Home
last modified time | relevance | path

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

12345678910>>...35

/illumos-gate/usr/src/cmd/mt/
H A Dmt.c60 { "fsf", MTFSF, O_RDONLY, 1 },
61 { "bsf", MTBSF, O_RDONLY, 1 },
62 { "asf", MTASF, O_RDONLY, 1 },
63 { "fsr", MTFSR, O_RDONLY, 1 },
64 { "bsr", MTBSR, O_RDONLY, 1 },
71 { "eom", MTEOM, O_RDONLY, 0 },
72 { "nbsf", MTNBSF, O_RDONLY, 1 },
77 { "fssf", MTFSSF, O_RDONLY, 1 },
78 { "bssf", MTBSSF, O_RDONLY, 1 },
79 { "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()
248 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_lwpstatus()
H A Dproc_arg.c67 if ((fd = open64(path, O_RDONLY)) >= 0) { in open_psinfo()
95 if ((fd = open64(arg, O_RDONLY)) >= 0) { in open_core()
463 fd = open(pidstr, O_RDONLY); in proc_walk()
480 fd = open(pidstr, O_RDONLY); in proc_walk()
/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/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/libsqlite/tool/
H A Ddiffdb.c24 db1 = open(argv[1], O_RDONLY); in main()
29 db2 = open(argv[2], O_RDONLY); in main()
/illumos-gate/usr/src/lib/libc/port/gen/
H A D_xftw.c289 if ((fd = openat(AT_FDCWD, dirp, O_RDONLY)) < 0) { in nocdopendir()
295 if ((cfd = openat(fd, token, O_RDONLY)) < 0) { in nocdopendir()
336 if ((fd = openat(AT_FDCWD, dirp, O_RDONLY)) < 0) { in nocdstat()
344 if ((cfd = openat(fd, token, O_RDONLY)) < 0) { in nocdstat()
H A Dattropen.c58 if ((fd = open64(file, O_RDONLY|O_NONBLOCK)) == -1) { in attropen64()
89 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/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/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/cmd/dtrace/test/cmd/badioctl/
H A Dbadioctl.c64 if ((random = open("/dev/random", O_RDONLY)) == -1) in badioctl()
89 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/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/cmd/runat/
H A Drunat.c66 if ((fd = open64(argv[1], O_RDONLY)) == -1) { in main()
73 if ((dirfd = openat64(fd, ".", O_RDONLY|O_XATTR)) == -1) { in main()
/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/libcontract/common/
H A Dlibcontract_priv.c65 if ((cfd = open64(CTFS_ROOT "/process/latest", O_RDONLY)) == -1) in contract_latest()
131 if ((fd = open("/proc/self/psinfo", O_RDONLY)) == -1) in getctid()
/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()
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dstdio.c78 oflags = O_RDONLY;
418 oflags = O_RDONLY;
497 case O_RDONLY:
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipnat.c136 mode = O_RDONLY; in main()
146 mode = O_RDONLY; in main()
156 mode = O_RDONLY; in main()
191 ((fd = open(IPNAT_NAME, O_RDONLY)) == -1)) { in main()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/features/
H A Dpoll81 open("/dev/null", O_RDONLY);
82 if ((n = open("/dev/fd/0", O_RDONLY)) < 0)
92 if ((n = open("/dev/fd/0", O_RDONLY)) < 0)

12345678910>>...35