/illumos-gate/usr/src/cmd/tnf/tnfxtract/ |
H A D | tnfxtract.c | 144 if ((input_fd = open(TNFDEV, O_RDWR)) < 0) { 279 output_fd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0600);
|
/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | input.c | 195 if ((fd = open(file, O_RDONLY)) < 0) 196 terminate("%s: Cannot open for reading", file); 289 if ((fd = open(file, O_RDONLY)) < 0) { 296 warning("Can't open input file %s: %s\n", file,
|
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | boot_plat.c | 145 if ((fd = open(BOOT_REDIRECT, O_RDONLY)) != -1) { 201 printf("%s: cannot open %s\n", my_own_name, bootfile); 237 return (open(pathname, O_RDONLY)); 523 * This new boot program will open a file, read the ELF header,
|
/illumos-gate/usr/src/lib/libast/common/vmalloc/ |
H A D | vmmopen.c | 100 if((fd = open(file, O_RDWR, CREAT_MODE)) >= 0) 120 { if((fd = open(file, O_RDWR|O_CREAT, CREAT_MODE)) < 0)
|
/illumos-gate/usr/src/cmd/make/lib/mksh/ |
H A D | dosys.cc | 45 #include <fcntl.h> /* open() */ 50 #include <sys/stat.h> /* open() */ 71 * Workaround for NFS bug. Sometimes, when running 'open' on a remote 77 int res = open(path, oflag, mode); 80 res = open(path, oflag, mode); 100 fatal_mksh(gettext("Couldn't open standard out temp file `%s': %s"), 118 fatal_mksh(gettext("Couldn't open standard error temp file `%s': %s"),
|
/illumos-gate/usr/src/cmd/fm/modules/common/syslog-msgs/ |
H A D | syslog.c | 349 if ((syslog_logfd = open("/dev/conslog", O_WRONLY | O_NOCTTY)) == -1) 350 fmd_hdl_abort(hdl, "syslog-msgs failed to open /dev/conslog"); 352 if ((syslog_msgfd = open("/dev/sysmsg", O_WRONLY | O_NOCTTY)) == -1) 353 fmd_hdl_abort(hdl, "syslog-msgs failed to open /dev/sysmsg");
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | gzipfs.c | 177 /* Try to open the compressed datafile */ 178 rawfd = open(fname, O_RDONLY | F_GZIP); 185 rawfd = open(zfname, O_RDONLY);
|
/illumos-gate/usr/src/lib/libc/i386/sys/ |
H A D | ptrace.c | 173 if ((fd = open(procname, O_WRONLY, 0)) < 0) 488 * Use exclusive-open only if this is the first open. 492 if ((fd = open(procname, omode, 0)) < 0 || 497 if ((fd = open(procname, O_WRONLY, 0)) < 0 || 502 if ((fd = open(procname, O_RDONLY, 0)) < 0 || 581 * Close the /proc/<pid> file, if open. 705 if ((fd = open(procname, O_RDONLY, 0)) < 0) { 730 if ((fd = open(procname, O_RDONLY, 0)) >= 0) {
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getutx.c | 187 * If the "utmpx" file is not open, attempt to open it for 194 if ((fd = open(utmpxfile, O_RDWR|O_CREAT, 0644)) < 0) { 197 * If the open failed for permissions, try opening 202 if ((fd = open(utmpxfile, O_RDONLY)) < 0) 872 if ((wfdx = open(filex, O_WRONLY | O_APPEND)) < 0) 1082 if ((lockfd = open(UTMPX_FILE, O_RDWR|O_CREAT, 0644)) < 0) 1125 * if for some reason init didn't open initpipe, open it read/write 1128 pfd = open(IPIP [all...] |
/illumos-gate/usr/src/lib/libc/sparc/sys/ |
H A D | ptrace.c | 173 if ((fd = open(procname, O_WRONLY, 0)) < 0) 496 * Use exclusive-open only if this is the first open. 500 if ((fd = open(procname, omode, 0)) < 0 || 505 if ((fd = open(procname, O_WRONLY, 0)) < 0 || 510 if ((fd = open(procname, O_RDONLY, 0)) < 0 || 589 * Close the /proc/<pid> file, if open. 715 if ((fd = open(procname, O_RDONLY, 0)) < 0) { 740 if ((fd = open(procname, O_RDONLY, 0)) >= 0) {
|
/illumos-gate/usr/src/cmd/passmgmt/ |
H A D | passmgmt.c | 656 fd_ptemp = open(PASSTEMP, O_CREAT|O_EXCL|O_WRONLY, statbuf.st_mode); 664 fd_ptemp = open(PASSTEMP, O_CREAT|O_EXCL|O_WRONLY, 694 fd_stemp = open(SHADTEMP, O_CREAT|O_EXCL|O_WRONLY, 703 fd_stemp = open(SHADTEMP, 734 fd_uatemp = open(USERATTR_TEMP, O_CREAT|O_EXCL|O_WRONLY, 743 fd_uatemp = open(USERATTR_TEMP,
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | kiconv.c | 1114 if (conv_list[j].open == NULL) { 1115 conv_list[j].open = op->kiconv_open; 1170 conv_list[i].open = NULL; 1227 if (conv_list[i].open == NULL) { 1239 if (conv_list[i].open == NULL) { 1277 kcd->handle = (conv_list[kcd->id].open)();
|
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_vdev.c | 193 * because we already have an alias handle open for the device. 299 if ((fd = open(file, O_RDONLY)) < 0) 369 if ((fd = open(path, O_RDWR | O_NDELAY)) < 0) 411 gettext("cannot open '%s': %s\n"), 437 gettext("cannot open '%s': no such " 445 gettext("cannot open '%s': %s\n"), 489 if ((fd = open(path, O_RDONLY)) < 0) { 490 (void) fprintf(stderr, gettext("cannot open '%s': " 681 * device is currently open, then we (should) 688 if ((fd = open(pat [all...] |
/illumos-gate/usr/src/lib/libadt_jni/ |
H A D | auditxml_jni | 160 # open output files 161 open (Cfile, ">$jniFile") or 162 die "can't open output file ($jniFile): $!\n"; 163 open (Jfile, ">$javaFile") or 164 die "can't open output file ($javaFile): $!\n"; 165 open (MapFile, ">$mapFile") or 166 die "can't open output file ($mapFile): $!\n"; 285 unless (open(Sfile, ">$subclassPath/AuditEvent_$root.java")) { 286 print STDERR "can't open class file AuditEvent_$root.java: $!\n"; 1130 open(Even [all...] |
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_misc.c | 287 PERROR("Could not open /etc/mnttab"); 366 PERROR("Could not open /etc/mnttab"); 503 PERROR("Could not open /etc/mnttab"); 520 * Attempt to open the device. If it fails, skip it. 526 mfd = open(raw_device, O_RDWR | O_NDELAY); 692 fd = open(tmp_path_name, flags); 1342 * safe to try to open the file without checking access. 1345 fd = open(devnode, O_RDONLY|O_NDELAY); 1420 * Builds an open()able device path from a user supplied node which can be 1437 ((fd = open(supplie [all...] |
/illumos-gate/usr/src/cmd/listen/ |
H A D | listen.c | 121 * reserved to open the STREAMS pipe when passing the connection 123 * fd 4: Opened to the pid file. We have to keep it open to keep the 156 static char *nologfile = "Unable to open listener log file during initialization"; 217 /* open log file */ 225 if ((i = open(log, O_WRONLY|O_CREAT|O_APPEND, 0444)) < 0) 282 init_files(); /* open Accept, Sac, Pm, Pass files */ 317 sprintf(scratch, "couldn't open %s, default to GMT", 371 net_open(); /* init, open, bind names */ 373 for (i = 3; i < Ndesc; i++) { /* leave stdout, stderr open */ 387 * open pidfil [all...] |
/illumos-gate/usr/src/lib/libshell/common/edit/ |
H A D | history.c | 183 if((fd=open(name, O_RDONLY)) < 0) 222 * open the history file 226 * hist_open() returns 1, if history file is open 267 if((fd=open(cp,O_BINARY|O_APPEND|O_RDWR|O_CREAT,histmode))>=0) 298 fd = open(fname,O_BINARY|O_APPEND|O_CREAT|O_RDWR,S_IRUSR|S_IWUSR); 485 fd = open(tmpname,O_RDONLY); 1165 /* write failure could be NFS problem, try to re-open */ 1167 if((newfd=open(hp->histname,O_BINARY|O_APPEND|O_CREAT|O_RDWR,S_IRUSR|S_IWUSR)) >= 0)
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_tape.c | 124 "Connection already has a tape or scsi device open"); 145 NDMP_LOG(LOG_ERR, "Failed to open device %s: %m.", 194 if ((session->ns_tape.td_fd = open(request->device.name, mode)) < 0) { 195 NDMP_LOG(LOG_ERR, "Failed to open tape device %s: %m.", 232 * This handler closes the currently open tape device. 249 NDMP_LOG(LOG_ERR, "Tape device is not open."); 263 * Status information for the currently open tape device is returned. 284 NDMP_LOG(LOG_ERR, "Tape device is not open."); 364 NDMP_LOG(LOG_ERR, "Tape device is not open."); 502 NDMP_LOG(LOG_ERR, "Tape device is not open [all...] |
/illumos-gate/usr/src/cmd/sgs/ar/common/ |
H A D | file.c | 62 * If this variable references an open file when exit_cleanup() 68 int fd; /* -1, or open file descriptor */ 69 const char *path; /* Path to open file */ 150 if ((cmd_info->afd = fd = open(arnam, O_RDONLY)) == -1) { 528 open(fptr->ar_pathname, O_RDONLY)) == -1) { 1139 * against this is to open the file for non-destructive 1140 * write access. If the open succeeds, we are clear to 1144 if ((fd = open(name, O_RDWR)) < 0) { 1187 ar_outfile.fd = open(ar_outfile.path, O_RDWR|O_CREAT|O_LARGEFILE, 0666); 1272 * so open i [all...] |
/illumos-gate/usr/src/lib/madv/common/ |
H A D | madv.c | 172 int fd = open("/proc/self/auxv", O_RDONLY); 196 fd = open("/proc/self/status", O_RDONLY); 258 fd = open("/proc/self/psinfo", O_RDONLY); 280 "%s: /proc/self/psinfo open failed [%s]\n"), 465 "%s: cannot open error file: %s [%s]\n"), 491 "%s: cannot open configuration file: %s [%s]\n"),
|
/illumos-gate/usr/src/lib/libdscfg/common/ |
H A D | cfg_local.c | 89 fd = open(char_name, O_RDONLY); 170 "cfg_open: unable to open configuration location"); 175 cfp->cf_fd = open(name, O_RDWR|O_CREAT|O_DSYNC|O_RSYNC, 0640); 177 if ((cfp->cf_fd = open(name, O_RDONLY, 0640)) == -1) { 179 "cfg_open: unable to open configuration location");
|
/illumos-gate/usr/src/lib/libgrubmgmt/common/ |
H A D | libgrub_fs.c | 80 fd = open(path, O_RDONLY); 114 if ((fd = open(rdev, O_RDONLY|O_NDELAY)) >= 0) { 132 fd = open(rdev, O_RDONLY);
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgserv.c | 55 #define ERR_OPEN_DOOR "cannot open pkgserv door" 124 dir = open(path, O_RDONLY); 294 server->door = open(pkgdoor, O_RDWR); 562 fd = open(pkgfile, O_RDWR);
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | setlocale.c | 371 /* open and load the numeric information */ 611 * (Assumption - there is always at least one fd open before setlocale 649 if ((fd = open(pathname, O_RDONLY)) < 0 && errno == ENOENT) { 654 fd = open(pathname, O_RDONLY); 681 fd2 = open(pathname, O_RDONLY);
|
/illumos-gate/usr/src/cmd/w/ |
H A D | w.c | 330 (void) fprintf(stderr, gettext("%s: could not open %s: %s\n"), 342 if ((procfd = open(pname, O_RDONLY)) < 0) 373 procfd = open(pname, O_RDONLY); 375 /* drop proc_owner privilege after open */ 405 procfd = open(pname, O_RDONLY); 407 /* drop proc_owner privilege after open */
|