/illumos-gate/usr/src/lib/libsun_ima/common/ |
H A D | ima.c | 274 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { 275 syslog(LOG_USER|LOG_DEBUG, "Cannot open %s (%d)", 325 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { 326 syslog(LOG_USER|LOG_DEBUG, "Cannot open %s (%d)", 355 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { 356 syslog(LOG_USER|LOG_DEBUG, "Cannot open %s (%d)", 419 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { 420 syslog(LOG_USER|LOG_DEBUG, "Cannot open %s (%d)", 789 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { 790 syslog(LOG_USER|LOG_DEBUG, "Cannot open [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getut.c | 141 * If the "utmp" file is not open, attempt to open it for 147 if ((fd = open(_compat_utmpfile, O_RDWR|O_CREAT, 0644)) < 0) { 150 * If the open failed for permissions, try opening 154 if ((fd = open(_compat_utmpfile, O_RDONLY)) < 0) 430 fd = open(file, O_WRONLY | O_APPEND); 433 if ((fd = open(file, O_WRONLY|O_CREAT, 0644)) < 0) 669 if ((fd = open(_compat_utmpfile, O_RDWR|O_CREAT, 0644)) < 0)
|
/illumos-gate/usr/src/cmd/power/ |
H A D | sys-suspend.c | 595 (void) dup2(open("/dev/console", O_RDONLY), 0); 596 (void) dup2(open("/dev/console", O_WRONLY), 1); 597 (void) dup2(open("/dev/console", O_WRONLY), 2); 754 if ((fd = open("/dev/pm", O_RDWR)) < 0) { 755 (void) printf(gettext("Can't open /dev/pm\n")); 782 if ((fd = open(CPR_CONFIG, O_RDONLY)) < 0) { 783 (void) printf(gettext("Can't open /etc/.cpr_config file.")); 804 * from the pm_suspend code, it will need to open a new session.
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipf.c | 203 if ((fd = open(ipfdev, O_RDWR)) == -1) 204 if ((fd = open(ipfdev, O_RDONLY)) == -1) 205 perror("open device"); 331 xfd = open(IPSTATE_NAME, O_RDWR); 353 xfd = open(IPNAT_NAME, O_RDWR); 420 perror("open(IPL_AUTH)"); 546 if ((vfd = open(ipfname, O_RDONLY)) == -1) { 547 perror("open device");
|
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | bindings.c | 77 if ((fd = open("/tmp/bind_err", O_RDWR | O_CREAT, 0666)) == -1) { 78 (void) fprintf(stderr, "bindings.so: unable to open err_log\n"); 79 perror("open"); 141 if ((fd = open(buffer_name, O_RDWR)) == -1) { 143 "bidings: grow_buffer: open failed: %s\n", buffer_name); 144 perror("open"); 245 if ((fd = open(buffer_name, O_RDWR | O_CREAT | O_EXCL, 0666)) != -1) { 277 } else if ((fd = open(buffer_name, O_RDWR)) != -1) { 325 (void) fprintf(stderr, "bindings: unable to open %s\n", 327 perror("open"); [all...] |
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | FCHBA.cc | 86 // open the fcsm node so we can send the ioctl to 89 if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) == 91 log.debug("Unable to open %d opened (%s)", i, 102 throw IOError("Unable to open FCSM driver"); 157 if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) == -1) { 223 if ((fd = open(port->getPath().c_str(), O_RDONLY | O_EXCL)) == -1) { 266 if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) == -1) { 357 /* open the fcsm node so we can send the ioctl to */ 359 if ((fd = open(FCSM_DRIVER_PATH.c_str(), O_RDONLY)) < 0) { 369 throw IOError("Unable to open FCS [all...] |
H A D | TgtFCHBA.cc | 97 if ((fd = open(FCT_DRIVER_PATH.c_str(), O_NDELAY | O_RDONLY)) == -1) { 173 if ((fd = open(FCT_DRIVER_PATH.c_str(), O_NDELAY | O_RDONLY)) == -1) { 257 /* open the fcsm node so we can send the ioctl to */ 259 if ((fd = open(FCT_DRIVER_PATH.c_str(), O_RDONLY)) < 0) { 269 throw IOError("Unable to open FCT driver");
|
/illumos-gate/usr/src/cmd/utmpd/ |
H A D | utmpd.c | 126 * open fd. These tables are kept sorted by process ID for quick lookups. 266 * We open these to avoid accidentally writing to a proc file 268 (void) open("/dev/null", O_RDONLY); 269 (void) open("/dev/null", O_WRONLY); 270 (void) open("/dev/null", O_WRONLY); 300 if ((WTMPXfd = open(WTMPX_FILE, O_RDONLY)) < 0) 301 nonfatal("WARNING: unable to open " WTMPX_FILE " for update."); 347 * Close any open files. 611 Pfd = open(UTMPPIPE, O_RDWR | O_NDELAY); 876 * proc_to_fd - Take a process ID and return an open fil [all...] |
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | bstream.c | 59 return (gettext("Stdin not open for reading")); 274 fd = open(file, O_RDONLY); 396 fd = open(fname, O_RDONLY); 477 fd = open(fname, O_RDONLY); 557 fd = open(fname, O_RDWR|O_CREAT|O_TRUNC, 0666); 586 fd = open(fname, O_RDWR|O_CREAT|O_TRUNC, 0666); 613 fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666); 630 fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666);
|
/illumos-gate/usr/src/tools/scripts/ |
H A D | wsdiff.py | 272 fd1 = open(tmpFile1, "w") 274 error("failed to open: " + tmpFile1) 278 fd2 = open(tmpFile2, "w") 280 error("failed to open: " + tmpFile2) 450 fd = open(f) 452 error("failed to open: " + f) 467 fd = open(f) 469 error("failed to open: " + f) 577 fd = open(flist, "r") 579 error("could not open [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/enchilada/envd/ |
H A D | piclenvd.c | 62 #include <sys/open.h> 607 fd = open(path, O_RDONLY); 1061 fd = open(path, O_RDWR); 1168 diskp->fd = open(diskp->devfs_path, O_RDONLY); 1254 sensorp->fd = open(path, O_RDWR); 1374 sysfd = open(hwm_devs[sys_id], O_RDWR); 1461 pm_fd = open(PM_DEVICE, O_RDWR); 1793 fd = open(hwm_devs[hwm_id], O_RDWR); 2055 disk_pm_fd = open(PM_DEVICE, O_RDWR); 2228 * Setup temperature sensors and fail if we can't open [all...] |
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | slice.c | 135 fd = open(devpath, O_RDONLY|O_NDELAY); 230 fd = open(devpath, O_RDONLY|O_NDELAY); 535 if ((sfd = open(sp->devpath, O_RDONLY|O_NDELAY)) >= 0) { 571 * We need to open the cooked slice (not the raw one) to get the 577 cooked_fd = open(localpath, O_RDONLY|O_NDELAY); 579 cooked_fd = open(dp->name, O_RDONLY|O_NDELAY); 721 if ((fd = open(devp->devpath, O_RDONLY|O_NDELAY)) >= 0) {
|
/illumos-gate/usr/src/cmd/ucodeadm/ |
H A D | ucodeadm.c | 133 if ((fd = open(infile, O_RDONLY)) < 0) 215 if ((fd = open(filename, O_RDONLY)) == -1) 250 fd = open(common_path, O_WRONLY | O_CREAT | O_TRUNC, 277 fd = open(common_path, O_WRONLY | O_CREAT | O_TRUNC, 355 if ((fd = open(firstname, O_WRONLY | O_CREAT | O_TRUNC, 660 if ((dev_fd = open(ucode_dev, O_RDONLY)) == -1) {
|
/illumos-gate/usr/src/boot/sys/boot/i386/gptzfsboot/ |
H A D | zfsboot.c | 176 pa.fd = open(devname, O_RDONLY); 203 * open partition table on disk and scan partition entries to find 216 pa.fd = open(devname, O_RDONLY); 326 fd = open(PATH_CONFIG, O_RDONLY); 328 fd = open(PATH_DOTCONFIG, O_RDONLY); 402 if ((fd = open(kname, O_RDONLY)) == -1) { 558 fd = open(arg, O_RDONLY);
|
/illumos-gate/usr/src/lib/pam_modules/authtok_check/ |
H A D | packlib.c | 61 if ((fd_d = open(dname, O_RDWR|O_CREAT, 0600)) == -1) 62 syslog(LOG_ERR, "PWopen: can't open %s: %s", dname, 64 if ((fd_i = open(iname, O_RDWR|O_CREAT, 0600)) == -1) 65 syslog(LOG_ERR, "PWopen: can't open %s: %s", iname, 67 if ((fd_w = open(wname, O_RDWR|O_CREAT, 0600)) == -1) 68 syslog(LOG_ERR, "PWopen: can't open %s: %s", wname,
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.comsat.c | 171 if ((uf = open(UTMPX_FILE, 0)) < 0) { 330 if ((fd = open(tty, O_RDWR)) == -1) { 331 dsyslog(LOG_DEBUG, "can't open tty"); 344 * Check after open, to prevent race on open. 371 if ((mbox = open(name, O_RDONLY)) == -1) { 372 dsyslog(LOG_DEBUG, "can't open mailbox for %s", name); 377 * care we don't open and read from the wrong file.
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/sppptun/ |
H A D | sppptun.c | 231 /* Call per-protocol attach routine to open device */ 240 if ((muxfd = open("/dev/" PPP_TUN_NAME, O_RDWR)) < 0) { 347 if ((muxfd = open("/dev/" PPP_TUN_NAME, O_RDWR)) < 0) { 394 if ((muxfd = open("/dev/" PPP_TUN_NAME, O_RDWR)) < 0) {
|
/illumos-gate/usr/src/cmd/enhance/ |
H A D | enhance.c | 243 * have to search for a free master terminal. We just open /dev/ptmx, 248 *cntrl = open("/dev/ptmx", O_RDWR); 272 * we open one master terminal after another, until one that isn't 279 fprintf(stderr, "%s: Couldn't open %s (%s)\n", prog, PTY_DEV_DIR, 296 * Attempt to open the control file. 301 *cntrl = open(master_name, O_RDWR); 305 * Attempt to open the matching slave file. 317 * Did we fail to find a pseudo-terminal pair that we could open? 365 * Attempt to open the specified device. 367 fd = open(slave_nam [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/roll_log/ |
H A D | roll_log.c | 31 * It is intended for use by applications that open a raw device with the 351 if ((fd = open((lip->li_mntpoint ? lip->li_mntpoint : lip->li_tmpmp), 487 fd = open(li.li_mntpoint, O_RDONLY); 489 fd = open(li.li_tmpmp, O_RDONLY); 491 perror("open");
|
/illumos-gate/usr/src/cmd/sgs/rtld.4.x/ |
H A D | rtldlib.s | 36 ! +4 open file descriptor for /dev/zero 37 ! +8 open file descriptor for ld.so 87 _open: ! open(path, oflags, mode) =>
|
/illumos-gate/usr/src/cmd/lvm/md_monitord/ |
H A D | md_monitord.c | 128 daemon_lock_fd = open(daemon_lock_file, O_CREAT|O_RDWR, 0644); 130 monitord_print(0, "open(%s) - %s\n", daemon_lock_file, 157 daemon_lock_fd = open(daemon_lock_file, O_CREAT|O_RDWR, 0644); 159 monitord_print(0, "open(%s) - %s\n", 506 (void) open("/dev/null", 0);
|
/illumos-gate/usr/src/boot/sys/boot/userboot/test/ |
H A D | test.c | 137 tf->tf_u.fd = open(path, O_RDONLY); 387 .open = test_open, 463 disk_fd = open(disk_image, O_RDONLY); 465 err(1, "Can't open disk image '%s'", disk_image);
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/ |
H A D | disk_mptsas.c | 46 if ((fd = open(devctl, O_RDWR)) == -1) { 47 topo_mod_dprintf(mod, "could not open '%s' for ioctl: %s\n",
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_cache_door.c | 47 * 1) Never use 0,1 or 2; if we get this from the open 94 * the first time in we try and open and validate the door. 110 if ((doorfd = open(LDAP_CACHE_DOOR, O_RDONLY, 0))
|
/illumos-gate/usr/src/lib/libcontract/common/ |
H A D | libcontract_priv.c | 133 if ((fd = open("/proc/self/psinfo", O_RDONLY)) == -1)
|