/illumos-gate/usr/src/cmd/sed/ |
H A D | process.c | 229 if (cp->u.fd == -1 && (cp->u.fd = open(cp->t, 457 if (cp->u.s->wfd == -1 && (cp->u.s->wfd = open(cp->u.s->wfile,
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | main.c | 927 * If the -w option has indicated an output file open it. It's 935 if ((wfd = open(wname, (O_RDWR | O_CREAT | O_TRUNC), 952 if ((fd = open(argv[optind], O_RDONLY)) == -1) {
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | outfile.c | 105 * process has the file open. In the meantime, we 120 * only 100% reliable test against this is to open 122 * open succeeds, we are clear to unlink it, and if 126 if ((ofl->ofl_fd = open(ofl->ofl_name, O_RDWR, 157 if ((ofl->ofl_fd = open(ofl->ofl_name, O_RDWR | O_CREAT | O_TRUNC, 458 * pass the interpreter an open file descriptor
|
/illumos-gate/usr/src/cmd/audio/audiorecord/ |
H A D | audiorecord.c | 370 ofd = open(Ofile, 373 Error(stderr, MGET("%s: cannot open "), prog); 470 /* Validate and open the audio device */ 473 Error(stderr, MGET("%s: cannot open "), prog); 484 * For the mixer environment we need to open the audio device before 488 Audio_fd = open(Audio_dev, O_RDONLY | O_NONBLOCK);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/ |
H A D | rpc.rquotad.c | 198 * Close existing file descriptors, open "/dev/null" as 203 (void) open("/dev/null", O_RDONLY); 204 (void) open("/dev/null", O_WRONLY); 286 syslog(LOG_ERR, "can not open zfs dataset %s", dataset); 426 syslog(LOG_ERR, "can not open %s: %m ", MNTTAB); 456 syslog(LOG_ERR, "can not open %s: %m ", mountpoint);
|
/illumos-gate/usr/src/cmd/hal/probing/volume/ |
H A D | probe-volume.c | 395 /* to open logindevperm'd devices */ 498 fd = open (devpath, O_RDONLY | O_NONBLOCK); 502 rfd = open (rdevpath, O_RDONLY | O_NONBLOCK);
|
/illumos-gate/usr/src/cmd/iscsiadm/ |
H A D | sun_ima.c | 543 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { 544 syslog(LOG_USER|LOG_DEBUG, "Cannot open %s (%d)", 1732 /* open driver */ 2237 /* We try to open the driver now. */ 2333 /* We try to open the driver. */ 2457 /* Helper function to open driver */ 2463 if ((*fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { 2465 syslog(LOG_USER|LOG_DEBUG, "Cannot open %s (%d)", 3009 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { 3010 syslog(LOG_USER|LOG_DEBUG, "Cannot open [all...] |
/illumos-gate/usr/src/cmd/loadkeys/ |
H A D | loadkeys.y | 181 if ((kbdfd = open("/dev/kbd", O_WRONLY)) < 0) { 318 if ((kbdfd = open("/dev/kbd", O_WRONLY)) < 0) {
|
/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | output.c | 345 terminate("%s: Can't open symbol table\n", file); 695 if ((fd = open(curname, O_RDONLY)) < 0 || fstat(fd, &st) < 0) 696 terminate("%s: Cannot open for re-reading", curname); 700 if ((tfd = open(newname, O_RDWR | O_CREAT | O_TRUNC, st.st_mode)) < 0) 701 terminate("Cannot open temp file %s for writing", newname);
|
/illumos-gate/usr/src/tools/depcheck/ |
H A D | get_depend_info | 145 print STDERR "Could not open file $entry\n"; 271 # open the databases for read-only 273 die"Cannot open dbm db $DBDir/FTYPE\n"; 276 die"Cannot open dbm db $DBDir/MODE\n"; 279 die"Cannot open dbm db $DBDir/PKGS\n"; 282 die"Cannot open dbm db $DBDir/ABSLINK \n"; 285 die"Cannot open dbm db $DBDir/PKGNAMES\n"; 418 open(SCRIPT, $filename);
|
H A D | make_pkg_db | 89 print STDERR "Cannot open the directory $PKGDefs\n"; 124 # now open the dbm databases we will initialize 134 dbmopen(%PKGNAMES, "$DBDir/PKGNAMES", 0644) || die"Cannot open dbm db $DBDir/PKGNAMES\n"; 137 dbmopen(%FTYPE, "$DBDir/FTYPE", 0664) || die"Cannot open dbm db $DBDir/FTYPE\n"; 140 dbmopen(%MODE, "$DBDir/MODE", 0664) || die"Cannot open dbm db $DBDir/MODE\n"; 143 dbmopen(%PKGS, "$DBDir/PKGS", 0664) || die"Cannot open dbm db $DBDir/PKGS\n"; 146 dbmopen(%ABSLINK, "$DBDir/ABSLINK", 0664) || die"Cannot open dbm db $DBDir/ABSLINK\n"; 171 print STDERR "Could not open file: $IFile\n"; 187 open (IFILE, "$IFile") || die "cannot open inpu [all...] |
/illumos-gate/usr/src/lib/krb5/kdb/ |
H A D | kdb_log.c | 560 if ((ulogfd = open(logname, O_RDWR+O_CREAT, 0600)) == -1) { 581 if ((ulogfd = open(logname, O_RDWR, 0600)) == -1) { 583 * Can't open existing log file
|
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | syslog.c | 98 * open /dev/(fdp|tcp|udp)/HOST/SERVICE for read 189 * call this after open fails to see if path is a socket 271 if ((log.fd = open(s, O_WRONLY|O_APPEND|O_NOCTTY)) < 0 && (log.fd = sockopen(s)) < 0)
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/postreverse/ |
H A D | postreverse.c | 200 if ((fd = open(fileName, O_RDWR | O_CREAT | O_EXCL, 0600)) < 0) { 201 fprintf(stderr, "open(%s): %s\n", fileName, 586 if ((fd = open(name, O_RDONLY)) < 0) { 587 fprintf(stderr, "open(%s, O_RDONLY): %s\n", name,
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | adm.c | 234 " Error Cannot open directory %s\n"), dir); 245 if ((fp = open(file, O_RDONLY)) < 0) { 248 "Error: open() failed to open file " 253 * and the open error is still an error 619 if ((temp_fd = open(file_name, O_RDONLY)) == -1) {
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_common_open.c | 28 * This module provides the common open functionality to the various 29 * open and create SMB interface functions. 95 * This function converts open modes used by Open and Open AndX 153 * This function converts open function values used by Open and Open AndX 178 * file open may be in the process of closing it. 188 bcopy(&sr->arg.open, parg, sizeof (*parg)); 198 bcopy(parg, &sr->arg.open, sizeof (*parg)); 216 * With LM0.12, the open calls (SmbCreateAndX, SmbNtTransactCreate) 221 * We don't care which open call was used to get us here, we just need 222 * to ensure that the write-through mode flag is copied from the open [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | mntinfo.c | 197 /* LINTED do not use creat(); use open(path,... */ 354 * adjust interrupts and open files as a prelude to a 412 i = open("/dev/null", O_WRONLY); 482 * adjust interrupts and open files as a prelude to a 540 i = open("/dev/null", O_WRONLY);
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | read.c | 202 "data block open at end of tbl", 212 "skipping end of block that is not open", 213 "fewer RS blocks open, skipping", 579 * currently open parse. Since we only get here if 791 if ((fd = open(file, O_RDONLY)) != -1) 801 fd = open(cp, O_RDONLY);
|
/illumos-gate/usr/src/cmd/boot/installboot/sparc/ |
H A D | installboot.c | 100 fd = open(file, O_RDONLY); 103 perror("open"); 456 device->fd = open(device->path, O_RDWR); 458 BOOT_DEBUG("Unable to open %s\n", device->path); 459 perror("open"); 618 (void) fprintf(stderr, gettext("Unable to open device %s\n"),
|
/illumos-gate/usr/src/common/ficl/emu/ |
H A D | loader_emu.c | 832 fd = open(rc, O_RDONLY); 1138 if ((hfd = open(buf, O_RDONLY)) < 0) { 1596 fd = open(cp, O_RDONLY); 1599 "open '%s' failed: %s", path, strerror(errno)); 1673 if (((fd = open(path, O_RDONLY)) == -1)) { 1675 "can't open '%s': %s", filename,
|
/illumos-gate/usr/src/test/test-runner/cmd/ |
H A D | run | 294 with open(os.path.join(self.outputdir, 'stdout'), 'w') as out: 298 with open(os.path.join(self.outputdir, 'stderr'), 'w') as err: 302 with open(os.path.join(self.outputdir, 'merged'), 'w') as merged: 613 with open(options.template, 'w') as f: 616 fail('Could not open \'%s\' for writing.' % options.template)
|
/illumos-gate/usr/src/tools/btxld/ |
H A D | btxld.c | 212 if ((fdi[i] = open(fname, O_RDONLY)) == -1) 258 if ((fdo = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0666)) == -1)
|
/illumos-gate/usr/src/lib/crypt_modules/sha256/ |
H A D | crypt_sha.c | 391 if ((fd = open("/dev/urandom", O_RDONLY)) == -1) {
|
/illumos-gate/usr/src/lib/crypt_modules/sunmd5/ |
H A D | sunmd5.c | 199 if ((fd = open("/dev/random", O_RDONLY)) == -1) {
|
/illumos-gate/usr/src/lib/efcode/fcdriver/ |
H A D | get_req.c | 70 log_message(MSG_FATAL, "fc_get_request: fcode_fd not open\n"); 178 log_perror(MSG_DEBUG, "Save_fcode_to_file: Can't open '%s'", 319 if ((cdp->fcode_fd = open(fcode_dev, O_RDONLY)) < 0) 320 log_perror(MSG_ERROR, "Can't open '%s'", fcode_dev); 426 * open and passed in fd0 (stdin). If it's not, we throw up our hands.
|