Searched refs:open (Results 401 - 425 of 1624) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/cmd/luxadm/
H A Dx86_adm.c135 if ((fd = open("/devices/scsi_vhci:devctl", O_RDWR)) < 0) {
361 if ((fd = open(portAttrs.OSDeviceName,
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c42 pwdfd = open(".", O_RDONLY);
97 if ((srcfd = open(infile, O_RDONLY)) == -1) {
98 etext = dgettext(TEXT_DOMAIN, "cannot open source");
132 "cannot open src attribute file");
143 "cannot open target attribute file");
172 "Failed to open attribute files");
/illumos-gate/usr/src/cmd/power/
H A Dpowerd.c229 pm_fd = open(PM, O_RDWR);
278 if (dup2(open("/dev/console", O_WRONLY|O_NOCTTY), 1) == -1) {
308 if ((pb_fd = open(PB, O_RDONLY)) != -1) {
405 fd = open(SRN, O_RDWR|O_EXCL|O_NDELAY);
407 logerror("Unable to open %s: %s", SRN, strerror(errno));
465 if ((asfd = open(CPR_CONFIG, O_RDONLY)) < 0) {
466 logerror("Unable to open CPR config file '%s'", CPR_CONFIG);
718 tod_fd = open(TOD, O_RDWR);
786 if ((prom_fd = open(PROM, O_RDWR)) == -1 &&
1291 const char *e1 = "%s: Cannot open pi
[all...]
/illumos-gate/usr/src/boot/lib/libstand/
H A Dsplitfs.c87 sf->curfd = open(sf->filesv[sf->curfile], O_RDONLY);
123 /* Try to open the configuration file */
124 conffd = open(confname, O_RDONLY);
/illumos-gate/usr/src/boot/sys/boot/usb/tools/
H A Dsysinit.c203 input_file = open(input_f, O_RDONLY);
205 err(EX_SOFTWARE, "Could not open input file: %s", input_f);
207 output_file = open(output_f, O_TRUNC | O_CREAT | O_RDWR, 0600);
209 err(EX_SOFTWARE, "Could not open output file: %s", output_f);
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/
H A Dlpd-port.c187 /* gain back enough privilege to open the id file */
198 /* open the sequence file */
199 if (((fd = open(JOB_ID_FILE, O_RDWR)) < 0) && (errno == ENOENT))
200 fd = open(JOB_ID_FILE, O_CREAT|O_EXCL|O_RDWR, 0644);
245 /* gain back enough privilege to open a reserved port */
420 if ((fd = open(name, O_RDONLY)) < 0)
508 /* open the control file */
509 if ((fd = open(path, O_RDONLY)) < 0) {
510 syslog(LOG_ERR, "submit_job(%d, %s, %d, %s): open(): %m",
593 if ((fd = open(pat
[all...]
/illumos-gate/usr/src/lib/libpkg/common/
H A Ddstream.c189 if ((ds_fd = open(device, O_RDONLY)) >= 0 &&
280 * Return true if the file descriptor (ds_fd) is open on the package stream.
305 if ((ds_fd = open(device, O_RDONLY)) < 0) {
359 if ((ds_fd = open(norewind, O_RDONLY)) < 0) {
627 if ((ds_fd = open(device, O_RDONLY)) < 0)
859 if ((n = open(ds_device, 0)) >= 0)
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_io.c300 open("/dev/null", 1);
390 io = open(file, 0);
602 io = open(file, 1);
639 io = open(file, 1);
858 if (open(fil, 0) < 0) {
/illumos-gate/usr/src/cmd/cdrw/
H A Ddevice.c123 * safe to try to open the file without checking access.
126 fd = open(devnode, O_RDONLY|O_NDELAY);
129 TRACE(traceall_msg("Cannot open %s: %s\n", node,
443 * Builds an open()able device path from a user supplied node which can be
457 ((fd = open(supplied, O_RDONLY|O_NDELAY)) >= 0)) {
466 * open the /dev/rdsk or /dev/removable-media/rdsk device
478 if ((fd = open(tmpstr, O_RDONLY|O_NDELAY)) >= 0) {
494 if ((fd = open(tmpstr, O_RDONLY|O_NDELAY)) >= 0) {
518 fd = open(node, O_RDONLY|O_NDELAY);
/illumos-gate/usr/src/cmd/zoneadmd/
H A Dzcons.c74 * zcons(7D) instance and an open file descriptor to the master side.
221 * is open, the instance will not detach, which is a potential issue.
277 if ((masterfd = open(conspath, O_RDWR | O_NOCTTY)) != -1) {
280 if ((slavefd = open(conspath, O_RDWR | O_NOCTTY)) != -1) {
288 zerror(zlogp, B_TRUE, "WARNING: could not open slave "
294 zerror(zlogp, B_TRUE, "WARNING: could not open master side of "
378 * to make links, and when we need to open it.
414 if ((masterfd = open(conspath, O_RDWR | O_NOCTTY)) == -1) {
415 zerror(zlogp, B_TRUE, "ERROR: could not open master side of "
421 if ((slavefd = open(conspat
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/wanboot-cgi/
H A Dwanboot-cgi.c242 if ((ifd = open(filename, O_RDONLY)) < 0) {
277 if ((rfd = open(src, O_RDONLY)) < 0 ||
278 (wfd = open(dest, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR)) < 0 ||
329 if ((fd = open(noncepath,
348 if ((fd = open(timestamppath,
367 if ((fd = open(urandompath,
387 if ((fd = open(hashpath,
847 if ((wfd = open((char *)truststorepath,
1198 if ((hostfd = open(hostsfile,
1571 (fd = open(*rootinfo
[all...]
/illumos-gate/usr/src/cmd/vt/
H A Dvtdaemon.c292 if ((fd = open("/dev/console", O_RDONLY)) < 0)
315 if ((fd = open(VT_DAEMON_CONSOLE_FILE, O_WRONLY)) < 0)
891 if ((fd = open(VT_DAEMON_CONSOLE_FILE, O_RDONLY)) < 0)
901 if ((fd = open(vtname, O_RDONLY)) < 0)
1100 * The idea here is that we want to open the path to which we will
1130 if ((doorfd = open(vt_door_path, O_CREAT|O_RDWR,
1132 syslog(LOG_ERR, "failed to open %s", vt_door_path);
1185 * since anyone can open any UNIX domain socket, regardless of
1275 if ((daemonfd = open(VT_DAEMON_CONSOLE_FILE, O_RDWR)) < 0) {
1362 if ((fd = open(VT_DAEMON_CONSOLE_FIL
[all...]
/illumos-gate/usr/src/cmd/avs/sv/
H A Dsvadm.c231 fd = open(sv_rpath, O_RDONLY);
233 error(NULL, gettext("unable to open %s: %s"),
392 fd = open(sv_rpath, O_RDONLY);
394 warn(NULL, gettext("unable to open %s: %s"),
693 fd = open(sv_rpath, O_RDONLY);
695 warn(NULL, gettext("unable to open %s: %s"),
823 error(NULL, gettext("unable to open config file %s: %s"),
917 if ((fd = open(sv_rpath, O_RDONLY)) < 0) {
918 warn(NULL, gettext("unable to open %s: %s"),
987 if ((fd = open(sv_rpat
[all...]
/illumos-gate/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_kef.c353 if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDWR)) == -1) {
354 cryptoerror(LOG_STDERR, gettext("failed to open %s: %s"),
486 if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDWR)) == -1) {
488 gettext("failed to open %s for RW: %s"),
622 if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDWR)) == -1) {
623 cryptoerror(LOG_STDERR, gettext("failed to open %s: %s"),
746 cryptodebug("failed to open %s for write.", _PATH_KCF_CONF);
777 cryptoerror(LOG_STDERR, gettext("failed to open %s - %s"),
918 if ((fd = open(ADMIN_IOCTL_DEVICE, O_RDWR)) == -1) {
919 cryptoerror(LOG_STDERR, gettext("failed to open
[all...]
/illumos-gate/usr/src/lib/libsmedia/library/common/
H A Dl_misc.c111 door_fd = open(smedia_service, O_RDONLY, 0644);
166 door_fd = open(smedia_service, O_RDONLY, 0644);
225 (void) fprintf(stderr, gettext("Couldnot open %s\n"), PATHNAME);
394 door_fd = open(smedia_service, O_RDONLY, 0644);
/illumos-gate/usr/src/cmd/vscan/vscand/
H A Dvs_main.c422 if ((fd = open("/dev/null", O_RDWR)) >= 0) {
447 if ((fd = open(filepath, O_RDONLY | O_CREAT, access_mode)) == -1) {
737 if ((vscand_kdrv_fd = open(devname, O_RDONLY)) < 0) {
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/
H A Dpiclfrudr.c586 envmon_fd = open(sc_device_name, O_RDONLY);
591 * open, so this is an unlikely failure. It would be more
642 int fd = open(led_path, O_RDWR);
666 fd = open(SEATTLE_LED_DEV, O_RDWR);
684 int fd = open(led_path, O_RDWR);
721 int fd = open(led_path, O_RDWR);
755 int fd = open(sc_device_name, O_RDONLY);
2167 fd = open(sc_device_name, O_RDONLY);
2447 fd = open(V440_DISK_DEVCTL, O_RDONLY);
2451 fd = open(SEATTLE_DISK_DEVCT
[all...]
/illumos-gate/usr/src/cmd/rexd/
H A Dunix_login.c226 if ((Master = open("/dev/ptmx", O_RDWR)) == -1) {
228 printf("open-ptmx-failure\n");
230 return (1); /* error could not open /dev/ptmx */
233 printf("open-ptmx success Master =%d\n", Master);
249 if ((Slave = open(slavename, O_RDWR)) == -1) {
250 perror("could not open slave pty");
285 Slave = open(slavename, O_RDWR);
525 /* Opened in AllocPty for parent, still open in child */
/illumos-gate/usr/src/cmd/eject/
H A Deject.c349 if ((fd = open(name, O_RDONLY | O_NDELAY)) < 0) {
484 /* open mnttab for scanning */
486 /* can't open mnttab!? -- give up */
541 * is simply to open it. If the open works, there's something there,
555 if ((fd = open(name, O_RDONLY|O_NONBLOCK)) < 0) {
623 if ((fd = open(name, O_RDONLY)) < 0) {
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dreadelf.c81 if ((fd = open(name, O_RDONLY)) == -1) {
82 (void) fprintf(stderr, "%s: can't open `%s'\n", whoami, name);
127 DPRINTF(" Attempting to open %s \n", aoutname);
128 if ((fd = open((aoutname), O_RDONLY)) == -1) {
129 (void) fprintf(stderr, "%s: can't open `%s'\n",
173 if ((fd = open(module->name, O_RDONLY)) == -1) {
/illumos-gate/usr/src/cmd/autopush/
H A Dautopush.c91 #define Openerr gettext("%s: ERROR: Could not open %s: ")
257 if ((sadfd = open(ADMINDEV, O_RDWR)) < 0) {
351 if ((sadfd = open(ADMINDEV, O_RDWR)) < 0) {
415 if ((sadfd = open(USERDEV, O_RDWR)) < 0) {
/illumos-gate/usr/src/cmd/bnu/
H A Din.uucpd.c129 if ((s = open("/dev/tty", 2)) >= 0) {
405 wtmp = open("/usr/adm/wtmp", O_WRONLY|O_APPEND);
486 wtmp = open("/usr/adm/wtmp", O_WRONLY|O_APPEND);
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbiod-svc/
H A Dsmbiod-svc.c116 if ((fd = open(door_path, O_RDONLY)) < 0)
268 tmp_fd = open(door_path, O_RDWR|O_CREAT|O_EXCL, 0644);
449 fd = open(door_file, O_RDWR|O_CREAT|O_EXCL, 0600);
/illumos-gate/usr/src/cmd/sh/
H A Dservice.c101 (fd = open((char *)ion, 1)) >= 0) {
169 } while ((f = open((char *)curstak(), 0)) < 0 && path);
270 clearup(); /* remove open files and for loop junk */
654 if ((fd = open((char *)acctnod.namval,
/illumos-gate/usr/src/cmd/tput/
H A Dtput.c558 fd = open(file, O_RDONLY);
561 perror("Cannot open initialization file");
607 (filedes = open("/dev/tty", O_RDWR),
613 (filedes = open("/dev/tty", O_RDWR),

Completed in 206 milliseconds

<<11121314151617181920>>