/illumos-gate/usr/src/cmd/boot/installboot/i386/ |
H A D | installboot.c | 147 fd = open(path, O_RDONLY); 171 fd = open(file, O_RDONLY); 174 perror("open"); 828 fd = open(path, O_RDONLY); 830 fd = open(path, O_RDWR); 833 BOOT_DEBUG("Unable to open %s\n", path); 834 perror("open"); 1244 (void) fprintf(stderr, gettext("Unable to open device %s\n"),
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | commands.c | 136 if ((hfd = open(buf, O_RDONLY)) < 0) {
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_nameinfo.c | 276 * a more open approach regarding the mapping so as to 299 * meta_load_dl -- open dynamic library using LDLIBRARYPATH, a debug 535 if ((fd = open(rname, (O_RDONLY|O_NDELAY), 0)) < 0) { 541 * The disk is open so this is a good point to get the devid 735 if ((fd = open(rname, (O_RDONLY | O_NDELAY), 0)) < 0) 809 if ((fd = open(rname, (O_RDONLY|O_NDELAY), 0)) < 0) { 1250 * shortcut: if the device is open, no need to check on other nodes, 1290 * we better say the device is open
|
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | files_attr.c | 924 * a combination of open() and fdopen() 926 tempfd = open(SHADTEMP, O_WRONLY|O_CREAT|O_TRUNC, filemode); 1021 /* see files_update_shadow() for open()+fdopen() rationale */ 1023 if ((tempfd = open(PASSTEMP, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) { 1161 if ((tmpfd = open(HISTEMP, O_WRONLY|O_CREAT|O_TRUNC, HISTMODE)) < 0) {
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | krb5_gss_glue.c | 195 int* /* open */ 813 locally_initiated, open) 823 int *open; 828 open));
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | scalls.c | 63 #pragma weak _open = open 835 open(const char *path, int oflag, ...) function 850 return (open(path, O_WRONLY | O_CREAT | O_TRUNC, mode));
|
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | cp.c | 166 int wflags; /* open() for write flags */ 435 if ((n = open(state->path, O_RDWR|O_BINARY)) >= 0) 570 if (ent->fts_statp->st_size > 0 && (rfd = open(ent->fts_path, O_RDONLY|O_BINARY)) < 0) 575 else if ((wfd = open(state->path, st.st_mode ? (state->wflags & ~O_EXCL) : state->wflags, ent->fts_statp->st_mode & state->perm)) < 0)
|
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_icap.c | 242 fd = open(devname, O_RDONLY); 247 fd = open(devname, O_RDONLY); 251 syslog(LOG_ERR, "Failed to open device %s - %s", 988 * and VS_NO_REPAIR is not set, open repair file to save the reponse body 1037 * Create and open a file to save cleaned data in. 1045 if ((ctx->vsc_repair_fd = open(ctx->vsc_repair_fname,
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | yp_b_subr.c | 1290 fd = open(pdom->cache_file, O_CREAT|O_WRONLY, 0444); 1311 xdr_destroy(&xdrs); /* flushes xdr but leaves fp open */ 1367 fd = open(filename, O_CREAT|O_WRONLY, 0444); /* readable by all */ 1412 fd = open(filename, O_CREAT|O_WRONLY, 0444); /* readable by all */ 1435 /* we keep 'fd' open so that the lock will continue to be held */
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | ttymux_rcm.c | 277 * Open a file identified by fname with the given open flags. 278 * If the request is to open a file with exclusive access and the open 279 * fails then backoff exponentially and then retry the open. 290 return (open(fname, flags)); 295 for (cnt = 0; cnt < 5 && (fd = open(fname, flags)) == -1; cnt++) { 468 * O_EXCL open flag. 486 lfd = open(link->used->id, O_EXCL|O_RDWR|O_NONBLOCK|O_NOCTTY); 494 _("TTYMUX: open error %d for device %s\n"), 502 * muxfd = open(lin [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ncaconfd/ |
H A D | ncaconfd.c | 194 if ((ip_fd = open(IP_DEV_NAME, O_RDWR)) < 0) { 195 logperror("Cannot open IP"); 198 if ((*udp_fd = open(UDP_DEV_NAME, O_RDWR)) < 0) { 199 logperror("Cannot open UDP"); 471 logperror(gettext("Cannot open socket")); 1037 if ((mib_fd = open(IP_DEV_NAME, O_RDWR)) < 0) { 1038 logperror("cannot open ip to get router info"); 1407 logperror("Cannot open routing socket");
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | trace.c | 178 fd = open("/dev/null", O_RDWR); 290 * is already open or if coming from a trusted source, such as 345 nfd = open(fn, O_CREAT|O_EXCL|O_WRONLY, 0644); 351 nfd = open(fn, O_APPEND|O_WRONLY, 0644); 357 msglog("failed to open trace file \"%s\" %s", fn,
|
/illumos-gate/usr/src/cmd/lvm/rpc.metamhd/ |
H A D | mhd_drive.c | 663 if ((fd = open(pln_ctlr_name, (O_RDONLY|O_NDELAY), 0)) < 0) { 920 /* open drive, if necessary */ 927 dp->dr_fd = open(dp->dr_rname0, (O_RDWR|O_NDELAY), 0); 931 mhd_perror("%s: open", dp->dr_rname); 1092 int *fdp, /* open device or -1 */ 1140 /* steal open drive */ 1216 if ((fd = open(path, (O_RDONLY|O_NDELAY), 0)) < 0)
|
/illumos-gate/usr/src/cmd/sendmail/aux/ |
H A D | mail.local.c | 543 printf("451 4.3.0 unable to open temporary file\r\n"); 546 mailerr("451 4.3.0", "unable to open temporary file"); 563 err("unable to open temporary file"); 785 * the lstat returned, but before the open. We attempt to detect 787 * returned by an fstat of the file descriptor returned by the open. 801 * open(2) should support flock'ing the file. 813 mbfd = open(path, O_APPEND|O_CREAT|O_EXCL|O_WRONLY, 832 mbfd = open(path, O_APPEND|O_WRONLY, 0); 839 "%s: fstat: file changed after open", path); 938 ** between the failed close and the re-open()/r [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | setup.c | 106 fd = open(mount_point, O_RDONLY); 108 errexit("fsck: open mount point error: %s", 184 fd = open(mount_point, O_RDONLY); 186 errexit("fsck: open mount point error: %s", 488 (void) printf("Can't open %s: %s\n", devstr, strerror(errno)); 1432 devnull = open("/dev/null", O_WRONLY); 1434 (void) printf("calcsb: could not open /dev/null: %s\n",
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ip_fil.c | 549 fd = open(fname, O_WRONLY|O_APPEND); 551 perror("open"); 745 fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600); 747 perror("open"); 756 fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600); 758 perror("open");
|
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventd/ |
H A D | syseventd.c | 394 fd = open("/dev/null", 0); 1229 syseventd_print(1, "Unable to open module directory %s: %s\n", 1470 fd = open(local_door_file, O_CREAT|O_RDWR, S_IREAD|S_IWRITE); 1560 daemon_lock_fd = open(local_lock_file, O_CREAT|O_RDWR, 0644);
|
/illumos-gate/usr/src/ucbcmd/stty/ |
H A D | stty.c | 82 if ((i = open("/dev/tty", 0)) < 0) { 83 perror("stty: Cannot open /dev/tty"); 94 if ((i = open("/dev/tty", 0)) < 0) { 95 perror("stty: Cannot open /dev/tty"); 123 if ((i = open("/dev/tty", 0)) < 0) { 124 perror("stty: Cannot open /dev/tty");
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/ |
H A D | dpost.c | 810 error(FATAL, "can't open accounting file %s", optarg); 979 error(FATAL, "can't open %s", *argv); 1360 if ( (fin = open(temp, 0)) < 0 ) 1361 error(FATAL, "can't open tables for %s", temp); 1410 * open fails we try to map font *s into one we expect will be available, and then 1426 if ( (fin = open(temp, 0)) < 0 ) { 1428 if ( (fin = open(temp, 0)) < 0 ) 1429 error(FATAL, "can't open font table %s", temp); 2517 * Horizontal positions are out of sync. End the last open string, adjust the
|
/illumos-gate/usr/src/cmd/isns/isnsd/xml/ |
H A D | data.c | 219 * open the xml file and assign the global xml doc if the xml file 238 /* open the xml file */ 855 fd = open(xml_bak_file, O_RDWR); 857 fd = open(xml_bak_file, O_RDWR | O_CREAT, 873 fd = open(xml_file, O_RDWR);
|
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | path.c | 531 * open file corresponding to name using path give by <pp> 586 * open file corresponding to name using path give by <pp> 899 if((fd=open(path,O_RDONLY,0))<0 || fstat(fd,&statb)<0) 1246 /* check if file cannot open for read or script is setuid/setgid */ 1264 /* create a suid open file with owner equal effective uid */ 1265 if((n=open(name,O_CREAT|O_TRUNC|O_WRONLY,S_ISUID|S_IXUSR)) < 0) 1286 if((n=open(path,O_RDONLY,0)) < 0) 1375 fd = open( SHACCT , O_WRONLY | O_APPEND | O_CREAT,RW_ALL); 1475 if((fd=open(stakptr(offset),O_RDONLY))>=0)
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/montecarlo/common/ |
H A D | montecarlo.c | 451 if (open(scsb_node, O_RDONLY) < 0) 453 "\nscsb open FAILED!"), 0); 459 if ((ps_fd[i] = open(ps_node[i], O_RDONLY)) < 0) 461 "\npowersupply%d open failed"), 466 /* open the cpu temp driver */ 468 if (open(temp_node, O_RDONLY) < 0) 470 "\ncputemp open FAILED!"), 0); 955 log_printf("ks open for pcf8591 failed", 0); 1020 "\nCannot open openprom device"), 0); 1042 if ((oprom_fd = open(OPENPROMDE [all...] |
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | tape.c | 134 gettext("Cannot open(\"/dev/tty\")"); 141 "Cannot open(\"/dev/null\")"); 193 mt = open(archivefile, O_RDONLY|O_LARGEFILE); 208 else if ((mt = open(magtape, O_RDONLY|O_LARGEFILE)) < 0) { 556 (mt = open(magtape, O_RDONLY|O_LARGEFILE)) == -1)) { 558 (void) fprintf(stderr, gettext("Cannot open %s: %s\n"), 2071 * for the open to fail (measured at 21 seconds for an 2087 if ((fd = open(magtape, O_RDONLY|O_LARGEFILE, 2104 (mt = open(magtape, O_RDONLY|O_LARGEFILE)) == -1)) { 2106 "Autoload could not re-open tap [all...] |
/illumos-gate/usr/src/cmd/sgs/mcs/common/ |
H A D | file.c | 91 if ((fd = open(cur_file, oflag)) == -1) { 116 if ((fdartmp = open(artmpfile.tmp_name, 704 if ((fdtmp = open(elftmpfile.tmp_name, O_RDWR | O_TRUNC | O_CREAT, 1276 if ((fdtmp3 = open(elftmpfile.tmp_name, O_RDONLY)) == -1) { 1414 if ((fdtmp2 = open(temp_file->tmp_name, O_RDONLY)) == -1) {
|
/illumos-gate/usr/src/cmd/init/ |
H A D | init.c | 954 fd = open(SYSCON, O_RDWR | O_NOCTTY); 962 syslog(LOG_CRIT, "init[%d]: cannot open %s; %s\n", 1510 * is returned inittab is automatically opened if it is not currently open 1540 * Before attempting to open inittab we stat it to make 1570 * If unable to open inittab, print error message and 1574 console(B_TRUE, "Cannot open %s errno: %d\n", INITTAB, 1952 "Cannot open %s. Environment not initialized.\n", 2218 * Set up pipe for "godchildren". If the file exists and is a pipe just open 2220 * creation and open until after /var/run has been mounted. This function is 2239 Pfd = open(INITPIP [all...] |