/illumos-gate/usr/src/cmd/mt/ |
H A D | mt.c | 60 { "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 }, 65 { "rewind", MTREW, O_RDONLY, 0 }, 66 { "offline", MTOFFL, O_RDONLY, 0 }, 67 { "rewoffl", MTOFFL, O_RDONLY, 0 }, 68 { "status", MTNOP, O_RDONLY, 0 }, 69 { "retension", MTRETEN, O_RDONLY, 0 }, [all …]
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | proc_get_info.c | 66 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_cred() 86 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_secflags() 114 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_priv() 144 if ((fd = open(fname, O_RDONLY)) < 0) in proc_get_ldt() 175 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_psinfo() 192 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_status() 215 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_auxv() 232 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_lwpsinfo() 249 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_lwpstatus()
|
H A D | proc_arg.c | 67 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 D | prot_mmap.c | 73 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 D | process_xattrs.c | 43 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 D | smatch_files.c | 29 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 D | dir_rd_update.c | 82 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 D | ksensor_err.c | 91 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/gen/ |
H A D | _xftw.c | 289 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 D | attropen.c | 58 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/lib/libsqlite/tool/ |
H A D | diffdb.c | 24 db1 = open(argv[1], O_RDONLY); in main() 29 db2 = open(argv[2], O_RDONLY); in main()
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | _stdio_flags.c | 58 oflag = O_RDONLY; in _stdio_flags() 97 oflag = (oflag & ~(O_RDONLY | O_WRONLY)) | O_RDWR; in _stdio_flags()
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | contract.c | 92 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 D | ima.c | 274 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 D | dwarf_object_detector.c | 69 #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/sun_fc/common/ |
H A D | FCHBA.cc | 89 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/dtrace/test/cmd/badioctl/ |
H A D | badioctl.c | 64 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/libdhcpagent/common/ |
H A D | dhcp_stable.c | 70 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 D | runat.c | 66 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/cmd/tip/ |
H A D | remcap.c | 150 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 D | stdio.c | 78 oflags = O_RDONLY; 418 oflags = O_RDONLY; 497 case O_RDONLY:
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | iod_cl.c | 97 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 D | libcontract_priv.c | 65 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/ipf/tools/ |
H A D | ipnat.c | 136 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 D | poll | 81 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)
|