Searched refs:open (Results 901 - 925 of 1624) sorted by relevance

<<31323334353637383940>>

/illumos-gate/usr/src/uts/common/os/
H A Ddumpsubr.c312 volatile uint_t open; /* producer ref count */ member in struct:cqueue
323 atomic_inc_uint(&ds->q.open)
428 vnode_t *cdev_vp; /* VCHR open of the dump device */
1201 * If the dump device is a block device, attempt to open up the
1610 atomic_dec_uint(&cq->open);
1614 atomic_dec_uint(&cq->open);
1669 while (cq->open)
1712 if (cq->open == 0)
1725 dumpsys_unlock(cq, live, cq->first != NULL || cq->open == 0);
2691 * If this is a live dump, try to open
[all...]
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_import.c485 if ((fd = open(rsp->rname,
955 if ((fd = open(rsp->rname,
1697 if ((fd = open(rsp->rname, O_RDONLY| O_NDELAY)) < 0)
2542 * Determine and open the replica slice
2560 if ((fd = open(rsp->rname, O_RDONLY|O_NDELAY)) < 0)
2564 * After the open() succeeds, we should return via the "out"
2838 if ((fd = open(devname, O_RDONLY|O_NDELAY, 0)) < 0) {
2899 if ((fd = open(rsp->rname, O_RDWR | O_NDELAY)) < 0) {
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_devlink.c133 * Allocate a read-write handle but open the DB in readonly
168 * Failed to open DB.
261 if ((fd = open(path, flg, DB_PERMS)) == -1) {
375 fd = open(di_test_db, O_CREAT|O_RDWR|O_EXCL, 0644);
2012 * If we failed to open DB the most likely cause is that DB file did
2014 * recreate the DB file and retry. If we fail to open the DB after
3068 * == 1 success and grabbed the lock file, we can open the DB.
3094 again: if ((fd = open(lockfile,
3157 * Close and re-open lock file every time so that it is recreated if deleted.
3416 if ((rofd = open(DEVNAME_CHECK_FIL
[all...]
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dio.c663 * Mimic open(2) with checks for pseudo /dev/ files.
728 nfd = open(path,flags,st.st_mode);
731 nfd = open(path,flags);
757 while((fd = open(path, flags, mode)) < 0)
786 * move open file descriptor to a number > 2
957 * flag = 3 when called from $( < ...), just open file and return
966 int o_mode; /* mode flag for open */
1583 * returns access information on open file <fd>
2002 * record open file descriptors so they can
/illumos-gate/usr/src/lib/libdlpi/common/
H A Dlibdlpi.c119 * open the handle here.
197 * style-2 open. Change the error code back to
1010 * This function attempts to open a device under the following namespaces:
1017 * open a data-link node, or "/dev/ip" node. It is usually be called firstly
1020 * B_FALSE (style-1 open attempt first, then style-2 open attempt).
1022 * If DLPI_DEVONLY is specified, both attempt will try to open the /dev node
1025 * Otherwise, for style-1 attempt, the function will try to open the style-1
1026 * /dev/net node, and perhaps fallback to open the style-1 /dev node if the
1036 * ENOENT, but we should not fallback to open /de
[all...]
/illumos-gate/usr/src/cmd/ptools/pmap/
H A Dpmap.c363 if ((mapfd = open(buf, O_RDONLY)) < 0) {
596 if ((mapfd = open(mapname, O_RDONLY)) < 0 || fstat(mapfd, &st) != 0) {
637 if ((mapfd = open(mapname, O_RDONLY)) < 0 || fstat(mapfd, &st) != 0) {
/illumos-gate/usr/src/cmd/ed/
H A Ded.c46 "write or open on pipe failed", /* 0 */
49 "Cannot open input file", /* 3 */
55 "cannot open file", /* 9 */
120 "Cannot open temporary file", /* 70 */
832 if (close(open(file, O_WRONLY)) < 0)
865 if ((io = open(file,
1269 /* Cant open file or file does not exist */
1800 if ((tfile = open(tfname, O_CREAT|O_EXCL|O_RDWR,
2659 if ((io = open(string, rw)) >= 0) {
/illumos-gate/usr/src/cmd/fdformat/
H A Dfdformat.c358 * before the open, the open will fail. The failed open will not
377 /* Set to user access permissions to open file */
380 if ((fd = open(real_name, O_NDELAY | O_RDWR | O_EXCL)) == -1) {
388 (void) fprintf(stderr, gettext("%s: could not open \"%s\": "),
1099 * Attempt to open the device. If it fails, skip it.
1101 if ((mfd = open(raw_device, O_RDWR | O_NDELAY)) < 0) {
1448 if ((bfd = open(bootfile, O_RDONLY)) == -1) {
1449 (void) fprintf(stderr, gettext("%s: could not open \"
[all...]
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/
H A Dcmd_Lxcache.c710 fd = open(mem_cache_device, O_RDONLY);
713 "cpu_id = %d could not open %s to read tag info.\n",
784 fd = open(mem_cache_device, O_RDWR);
787 "fltnm:cpu_id %d open of %s failed\n",
835 fd = open(mem_cache_device, O_RDWR);
838 "fltnm:cpu_id %d open of %s failed\n",
1331 * case and open a new case for it.
1356 " and open a new case.\n",
/illumos-gate/usr/src/cmd/avs/rdc/
H A Dsndrd.c195 int fd = open(rdc_devr, O_RDONLY);
207 if (!rdc_fdr && open_rdc() < 0) { /* open failed */
597 * Close existing file descriptors, open "/dev/null" as
608 (void) open("/dev/null", O_RDONLY);
609 (void) open("/dev/null", O_WRONLY);
719 * poll on the open transport descriptors for events and errors.
1830 * It's value is equal to the number of open file descriptors after the
/illumos-gate/usr/src/cmd/avs/sdbc/
H A Dscmadm.c536 (void) fprintf(stderr, "%s: unable to open configuration: %s",
1502 gettext("Cannot open configuration file\n"));
1698 fd = open(alert_file, O_WRONLY|O_APPEND|O_CREAT, 0644);
1700 fd = open("/dev/console", O_WRONLY);
1743 if ((fd = open(filename, O_CREAT | O_RDWR, 0444)) == -1) {
1744 (void) fprintf(stderr, gettext("%s: open: %s\n"),
/illumos-gate/usr/src/cmd/krb5/slave/
H A Dkpropd.c658 lock_fd = open(temp_file_name, O_RDWR|O_CREAT, 0600);
668 if ((database_fd = open(temp_file_name,
1838 open("/dev/null", O_RDWR);
/illumos-gate/usr/src/lib/watchmalloc/common/
H A Dmalloc.c1327 if ((ctlfd = open("/proc/self/ctl", O_WRONLY)) < 0 ||
1351 if ((pfd = open("/proc/self/status", O_RDONLY)) >= 0) {
1377 * Just open another one.
1379 if ((ctlfd = open("/proc/self/ctl", O_WRONLY)) < 0 ||
/illumos-gate/usr/src/cmd/lp/lib/papi/
H A Djob.c310 if ((ifd = open(from, O_RDONLY)) < 0)
313 if ((ofd = open(to, O_WRONLY)) < 0) {
844 s->fd = open(lpfile, O_WRONLY);
1376 /* create/open data file (only root or lp can really do this */
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_open.c152 * hash when a new dtrace client open occurs. For more info see dt_ident.h.
582 * cache when a new dtrace client open occurs. Values are set by dtrace_open().
595 * cache when a new dtrace client open occurs. Values are set by dtrace_open().
608 * when a new dtrace client open occurs. Values are set by dtrace_update().
745 return; /* failed to open directory; just skip it */
768 if ((fd = open(path, O_RDONLY)) == -1)
769 continue; /* failed to open driver; just skip it */
877 goto alloc; /* do not attempt to open dtrace device */
882 * descriptors to objects open for the lifetime of the proc handle;
893 * Get the device path of each of the providers. We hold them open
[all...]
/illumos-gate/usr/src/lib/mpapi/libmpapi/common/
H A Dmpapi.c194 if ((fd_mpconf = open(mpConfFilePath, O_RDONLY)) < 0) {
3493 if ((mpconf = open(mpConfFilePath, O_RDWR | O_CREAT)) == -1) {
3602 if ((mpconf = open(mpConfFilePath, O_RDWR)) == -1) {
3642 if ((tmp_mpconf = open(tmp_mpConfFilePath,
/illumos-gate/usr/src/lib/pam_modules/unix_account/
H A Dunix_acct.c98 if ((fdl = open(LASTLOG, O_RDWR|O_CREAT, 0444)) >= 0) {
/illumos-gate/usr/src/lib/fm/libseslog/common/
H A Dlibseslog.c49 * open the device with given device name
57 fd = open(device_name, oflags);
728 /* Failed to open device */
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi_subr.c576 /* open /dev/fm */
577 fd = open("/dev/fm", O_RDONLY);
579 topo_mod_dprintf(mod, "%s: failed to open /dev/fm.\n", f);
/illumos-gate/usr/src/lib/librsc/sparc/mpxu/common/
H A Dlibrsc.c143 * open the rmcadm (pseudo) device and initialize data
160 * open rmcadm driver
162 if ((rsc_fd = open(RSC_RMCADM_DRV, O_RDWR)) < 0) {
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dcheckpw.c572 s = open(pwpath, O_RDONLY);
574 sasl_seterror(conn, 0, "cannot open door to saslauthd server: %m", errno);
H A Dsaslutil.c352 fd = open(DEV_RANDOM, O_RDONLY);
/illumos-gate/usr/src/lib/libtnfctl/
H A Dkernel_int.c89 kfd = open(TNFDRIVER, O_RDWR);
H A Dutil.c475 fd = open(path, O_CREAT | O_RDWR | O_TRUNC, 0644);
/illumos-gate/usr/src/lib/libuuid/common/
H A Duuid.c255 if ((fd = open(STATE_LOCATION, O_RDWR)) < 0) {

Completed in 250 milliseconds

<<31323334353637383940>>