Searched refs:open (Results 776 - 800 of 1624) sorted by relevance

<<31323334353637383940>>

/illumos-gate/usr/src/cmd/sed/
H A Dprocess.c229 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 Dmain.c927 * 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 Doutfile.c105 * 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 Daudiorecord.c370 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 Drpc.rquotad.c198 * 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 Dprobe-volume.c395 /* 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 Dsun_ima.c543 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 Dloadkeys.y181 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 Doutput.c345 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 Dget_depend_info145 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 Dmake_pkg_db89 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 Dkdb_log.c560 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 Dsyslog.c98 * 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 Dpostreverse.c200 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 Dadm.c234 " 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 Dsmb_common_open.c28 * 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 Dmntinfo.c197 /* 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 Dread.c202 "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 Dinstallboot.c100 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 Dloader_emu.c832 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 Drun294 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 Dbtxld.c212 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 Dcrypt_sha.c391 if ((fd = open("/dev/urandom", O_RDONLY)) == -1) {
/illumos-gate/usr/src/lib/crypt_modules/sunmd5/
H A Dsunmd5.c199 if ((fd = open("/dev/random", O_RDONLY)) == -1) {
/illumos-gate/usr/src/lib/efcode/fcdriver/
H A Dget_req.c70 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.

Completed in 338 milliseconds

<<31323334353637383940>>