Searched refs:open (Results 601 - 625 of 1624) sorted by relevance

<<21222324252627282930>>

/illumos-gate/usr/src/lib/libproc/common/
H A DPsyscall.c126 /* open the agent LWP files */
139 if ((fd = open(pathname, O_RDONLY)) < 0 ||
145 if ((fd = open(pathname, O_WRONLY)) < 0 ||
/illumos-gate/usr/src/lib/libbsm/common/
H A Ddevalloc.c92 if ((fd = open(LOGINDEVPERM, O_RDONLY)) == -1)
209 if ((fd = open(fname, O_RDONLY)) == -1) {
1192 if ((lockfd = open(lockfile, O_RDWR | O_CREAT, 0600)) == -1)
1193 /* cannot open lock file */
1269 * open the device allocation file
1282 if ((fda = open(fname, oflag, DA_DBMODE)) == -1) {
1302 * open the device map file
1317 if ((fdm = open(fname, oflag, DA_DBMODE)) == -1) {
1445 if ((tmpfd = open(tmpdefpath, O_RDWR|O_CREAT, DA_DBMODE)) == -1) {
1583 if ((tafd = open(apath
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dttyname.c58 * do the lookup based on an open file descriptor,
507 * open directory
629 if ((fd = open(TTYSRCH, 0)) < 0)
736 int tfd = open("/dev/console", O_WRONLY);
/illumos-gate/usr/src/lib/libldap5/
H A DMakefile.com39 modify.o open.o os-ip.o proxyauthctrl.o psearch.o referral.o \
/illumos-gate/usr/src/cmd/vntsd/
H A Dvntsd.c451 /* open VCC driver control port */
460 vntsdp->ctrl_fd = open(path, O_RDWR);
499 fd = open("/dev/null", O_RDWR);
501 syslog(LOG_ERR, "Can not open /dev/null");
/illumos-gate/usr/src/cmd/ypcmd/
H A Dyp_b_svc.c291 (void) open("/dev/null", O_RDONLY);
292 (void) open("/dev/null", O_WRONLY);
320 nc_handle = __rpc_setconf("netpath"); /* open netconfig file */
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/libctsmc/
H A Dlibctsmc.c50 #define SMC_ERRMSG_OPEN "SMC open failed, cmd = %x\n"
168 if ((fd = open(SMC_NODE, O_RDWR)) < 0) {
399 if ((fd = open(SMC_NODE, O_RDWR)) < 0) {
/illumos-gate/usr/src/cmd/ppgsz/
H A Dppgsz.c467 if ((fd = open(path, O_RDONLY)) < 0)
554 if ((fd = open(path, O_RDONLY)) < 0)
/illumos-gate/usr/src/cmd/rcap/rcapstat/
H A Drcapstat.c154 if ((fd = open(STAT_FILE_DEFAULT, O_RDONLY)) < 0) {
175 if ((proc_fd = open(procfile, O_RDONLY)) < 0) {
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Ddump_rcm.c395 if ((fd = open("/dev/dump", O_RDONLY)) == -1) {
400 (fd = open("/dev/dump", O_RDONLY)) == -1) {
402 "failed to open /dev/dump: %s\n",
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/keygen/
H A Dkeygen.c274 * If the file already exists (possibly via keymgmt), then open
275 * the file for update. Otherwise create it and open it for
278 fd = open(MASTER_KEY_FILE, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR);
291 wbku_printerr("Cannot open master keystore", MASTER_KEY_FILE);
371 * If the file already exists (possibly via keymgmt), then open
372 * the file for update. Otherwise create it and open it for
375 fd = open(filename, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR);
388 wbku_printerr("Cannot open client keystore");
415 wbku_printerr("Cannot open master keystore");
545 wbku_printerr("Cannot open keystor
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dndd.c415 if ((fd = open(cp, O_RDWR)) == -1)
416 fatal("open of %s failed: %s", cp, errmsg(errno));
613 if ((fd = open(modpath, O_RDWR)) == -1) {
614 printe(B_TRUE, "open of %s failed", modpath);
/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starcat/
H A Dcvcd.c224 if ((fd = open(NODENAME, O_RDONLY)) > 0) {
353 * open the Network Console redirection driver, which will
357 fd = open(CVCREDIR_DEV, O_RDWR|O_NDELAY);
359 cvcd_err(LOG_ERR, "open(redir): %s", strerror(errno));
366 * driver open, so drive the network console until something
605 * Wait for activity on any of the open file descriptors, which
/illumos-gate/usr/src/cmd/filesync/
H A Drecon.c672 sfd = open(srcname, 0);
676 dfd = open(dstname, 0);
/illumos-gate/usr/src/cmd/format/
H A Dmisc.c445 if ((ttystate.ttyfile = open("/dev/tty",
447 err_print("Unable to open /dev/tty.\n");
503 * If tty unopened, open the tty and store the file pointer for later.
506 if ((ttystate.ttyfile = open("/dev/tty",
508 err_print("Unable to open /dev/tty.\n");
/illumos-gate/usr/src/cmd/rpcsvc/rpc.bootparamd/
H A Dbootparam_ip_route.c252 /* open a stream to IP */
253 sd = open("/dev/ip", O_RDWR);
255 perror("ip open");
257 msgout("can't open mib stream");
450 /* open a stream to IP */
451 sd = open("/dev/ip", O_RDWR);
453 perror("ip open");
455 msgout("can't open mib stream");
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Dcrle.c385 if ((fd = open(crle.c_confil, (O_RDWR | O_CREAT | O_TRUNC),
480 if ((crle.c_tempfd = open(crle.c_tempname, (O_RDWR | O_CREAT),
/illumos-gate/usr/src/cmd/audio/audiotest/
H A Daudiotest.c386 fd = open(dn, O_WRONLY, 0);
531 if ((mixerfd = open("/dev/mixer", O_RDWR, 0)) == -1) {
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioFile.cc91 // If the file was open, close it
130 // Convert the open mode to an int argument for open()
161 desc = open(path, openmode | O_CREAT | O_TRUNC, 0666);
169 // Set the file descriptor (this marks the file open)
226 // Convert the open mode to an int argument for open()
231 // Can't open if already opened or if mode or name not set
288 // Attempt to open the given audio file
311 desc = open(GetNam
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Dct.c389 (void) fprintf(stderr, "ct: Cannot open %s, errno %d\n",
447 /* ttymon will use open fd 0 for connection */
659 if ((fd = open(WTMPX_FILE, O_WRONLY | O_APPEND)) != -1) {
717 if ((fd = open(WTMPX_FILE, O_WRONLY | O_APPEND)) != -1) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nca/
H A Dncab2clf.c853 if ((ifd = open(infile, O_RDONLY)) < 0) {
856 "Failure to open binary log file %s: %s\n"),
869 if ((ofd = open(outfile, O_WRONLY|O_CREAT, 0644)) < 0) {
872 "Failure to open output file %s: %s\n"),
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dsetup.c134 errexit(gettext("Can't open checklist file: %s\n"),
201 if ((fsreadfd = open(devstr, O_RDONLY)) < 0) {
202 (void) printf(gettext("Can't open %s\n"), devstr);
209 if (nflag || (fswritefd = open(devstr, O_WRONLY)) < 0) {
/illumos-gate/usr/src/cmd/hal/probing/storage/
H A Dprobe-storage.c302 /* to open logindevperm'd devices */
388 if ((rfd = open (raw_device_file, O_RDONLY | O_NONBLOCK)) < 0) {
389 HAL_DEBUG (("Cannot open %s: %s", raw_device_file, strerror (errno)));
432 if ((fd = open (device_file, O_RDONLY | O_NONBLOCK)) < 0) {
433 HAL_DEBUG (("Cannot open %s: %s", device_file, strerror (errno)));
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipnat.c201 if (((fd = open(IPNAT_NAME, mode)) == -1) &&
202 ((fd = open(IPNAT_NAME, O_RDONLY)) == -1)) {
203 (void) fprintf(stderr, "%s: open: %s\n", IPNAT_NAME,
/illumos-gate/usr/src/cmd/iscsid/
H A Discsid.c187 i = open("/dev/null", O_RDWR);
213 iscsi_dev_handle = open(ISCSI_DRIVER_DEVCTL, O_RDWR);
216 perror(gettext("iscsi device open failed"));
230 * Keep the dev open, so to keep iscsi module from unloaded.

Completed in 112 milliseconds

<<21222324252627282930>>