Home
last modified time | relevance | path

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

12345678910>>...35

/titanic_50/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 },
67 { "rewind", MTREW, O_RDONLY, 0 },
68 { "offline", MTOFFL, O_RDONLY, 0 },
69 { "rewoffl", MTOFFL, O_RDONLY, 0 },
70 { "status", MTNOP, O_RDONLY, 0 },
71 { "retension", MTRETEN, O_RDONLY, 0 },
[all …]
/titanic_50/usr/src/lib/libproc/common/
H A Dproc_get_info.c62 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_cred()
83 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_priv()
113 if ((fd = open(fname, O_RDONLY)) < 0) in proc_get_ldt()
144 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_psinfo()
161 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_status()
184 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_auxv()
H A Dproc_arg.c66 if ((fd = open64(path, O_RDONLY)) >= 0) { in open_psinfo()
94 if ((fd = open64(arg, O_RDONLY)) >= 0) { in open_core()
457 fd = open(pidstr, O_RDONLY); in proc_walk()
474 fd = open(pidstr, O_RDONLY); in proc_walk()
/titanic_50/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c42 pwdfd = open(".", O_RDONLY); in get_attrdirs()
44 if ((fd1 = attropen(attrfile, ".", O_RDONLY)) == -1) { in get_attrdirs()
56 if ((fd2 = attropen(attrfile, ".", O_RDONLY)) == -1) { in get_attrdirs()
97 if ((srcfd = open(infile, O_RDONLY)) == -1) { in mv_xattrs()
104 if ((indfd = openat(srcfd, ".", O_RDONLY|O_XATTR)) == -1) { in mv_xattrs()
108 if ((outdfd = attropen(outfile, ".", O_RDONLY)) == -1) { in mv_xattrs()
130 O_RDONLY)) == -1) { in mv_xattrs()
/titanic_50/usr/src/test/zfs-tests/cmd/dir_rd_update/
H A Ddir_rd_update.c77 testdd = open(dirpath, O_RDONLY|O_RSYNC|O_SYNC|O_DSYNC); in main()
87 int fd = open(dirpath, O_RDONLY|O_RSYNC|O_SYNC|O_DSYNC); in main()
101 int fd = open(dirpath, O_RDONLY); in main()
/titanic_50/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()
/titanic_50/usr/src/cmd/avs/sdbc/
H A Dsdbc_ioctl.c56 fd = open("/dev/nsctl", O_RDONLY); in __sdbc_open()
60 fd = open(__sdbc_dev, O_RDONLY); in __sdbc_open()
77 fd = open(SV_DEVICE, O_RDONLY); in sv_list()
/titanic_50/usr/src/lib/libnsctl/common/
H A Dcache.c121 if ((mode & O_ACCMODE) != O_RDONLY) {
122 if ((i & O_ACCMODE) == O_RDONLY) {
184 if ((fd->sf_fmode & O_ACCMODE) == O_RDONLY)
258 if (ckdchk && (fd->sf_fmode & O_ACCMODE) != O_RDONLY) {
308 fd = open(_NSC_DEV_PATH, O_RDONLY);
/titanic_50/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()
/titanic_50/usr/src/lib/libc/port/gen/
H A D_xftw.c292 if ((fd = openat(AT_FDCWD, dirp, O_RDONLY)) < 0) { in nocdopendir()
298 if ((cfd = openat(fd, token, O_RDONLY)) < 0) { in nocdopendir()
339 if ((fd = openat(AT_FDCWD, dirp, O_RDONLY)) < 0) { in nocdstat()
347 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()
/titanic_50/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()
/titanic_50/usr/src/lib/libc/port/stdio/
H A D_endopen.c68 oflag = O_RDONLY; in _endopen()
105 oflag = (oflag & ~(O_RDONLY | O_WRONLY)) | O_RDWR; in _endopen()
/titanic_50/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()
/titanic_50/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 …]
/titanic_50/usr/src/lib/libbc/inc/include/sys/
H A Dfcntlcom.h62 #define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
69 #define O_RDONLY 0 /* +1 == FREAD */ macro
/titanic_50/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()
/titanic_50/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()
/titanic_50/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()
/titanic_50/usr/src/cmd/avs/sv/
H A Dsvboot.c151 fd = open(sv_rpath, O_RDONLY); in sv_get_maxdevs()
302 fd = open(sv_rpath, O_RDONLY); in resume_sv()
489 if ((fd = open(sv_rpath, O_RDONLY)) < 0) { in suspend_sv()
520 if ((fd = open(sv_rpath, O_RDONLY)) < 0) { in prepare_unload_sv()
/titanic_50/usr/src/lib/efcode/efdaemon/
H A Defdaemon.c81 if ((fd = open(dev_fcode_file, O_RDONLY)) < 0) { in main()
125 while ((fd = open(dev_fcode_file, O_RDONLY)) < 0) { in main()
/titanic_50/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()
/titanic_50/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()
/titanic_50/usr/src/cmd/sendmail/libsm/
H A Dstdio.c80 oflags = O_RDONLY;
420 oflags = O_RDONLY;
499 case O_RDONLY:
/titanic_50/usr/src/cmd/tip/
H A Dremcap.c153 tf = open(E_TERMCAP, O_RDONLY); in getent()
159 tf = open(RM = cp, O_RDONLY); in getent()
165 tf = open(E_TERMCAP, O_RDONLY); in getent()

12345678910>>...35