Home
last modified time | relevance | path

Searched refs:dname (Results 1 – 25 of 113) sorted by relevance

12345

/illumos-gate/usr/src/lib/brand/solaris10/cmd/
H A Ds10_isaexec_wrapper.sh46 dname=`/usr/bin/dirname $0`
47 echo $dname | /usr/bin/grep "^/" >/dev/null || dname=`/bin/pwd`/$dname
48 dname=`(cd $dname 2>/dev/null && /bin/pwd 2>/dev/null)`
50 LC_ALL=C /usr/bin/file $n/$dname/$bname | /usr/bin/grep "64-bit" \
55 if [ ! -f $n$dname/$bname ]; then
56 echo "Error: \"$dname/$bname\" is not installed in the global zone"
68 $n$dname/$bname "$@"
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_findzonecut.c283 dname = tname; in get_soa()
292 while (*dname == '.') in get_soa()
293 dname++; in get_soa()
299 dname, p_class(class), n)); in get_soa()
338 dname, t) in get_soa()
349 dname, t) in get_soa()
383 if (*dname == '\0') in get_soa()
387 while (*dname != '.') { in get_soa()
388 if (*dname == '\\') in get_soa()
389 if (*++dname == '\0') { in get_soa()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dmkdir.c52 mkdirat(int fd, char *dname, int dmode) in mkdirat() argument
63 if (dname == NULL) in mkdirat()
65 if ((error = fgetstartvp(fd, dname, &startvp)) != 0) in mkdirat()
70 error = vn_createat(dname, UIO_USERSPACE, &vattr, EXCL, 0, &vp, in mkdirat()
81 mkdir(char *dname, int dmode) in mkdir() argument
83 return (mkdirat(AT_FDCWD, dname, dmode)); in mkdir()
/illumos-gate/usr/src/uts/i86pc/io/dr/
H A Ddr_quiesce.c203 char *dname, **cpp; in dr_is_unsafe_major() local
220 dr_bypass_device(char *dname) in dr_bypass_device() argument
225 if (dname == NULL) in dr_bypass_device()
278 char *dname; in dr_check_dip() local
287 dname = ddi_binding_name(dip); in dr_check_dip()
289 if (dr_bypass_device(dname)) in dr_check_dip()
292 if (dname && ((major = ddi_name_to_major(dname)) != (major_t)-1)) { in dr_check_dip()
348 char *dname; in dr_suspend_devices() local
991 char *dname; in drerr_int() local
1014 if (dname) { in drerr_int()
[all …]
/illumos-gate/usr/src/uts/sun4u/ngdr/io/
H A Ddr_quiesce.c204 char *dname, **cpp; in dr_is_unsafe_major() local
221 dr_bypass_device(char *dname) in dr_bypass_device() argument
226 if (dname == NULL) in dr_bypass_device()
279 char *dname; in dr_check_dip() local
288 dname = ddi_binding_name(dip); in dr_check_dip()
290 if (dr_bypass_device(dname)) in dr_check_dip()
293 if (dname && ((major = ddi_name_to_major(dname)) != (major_t)-1)) { in dr_check_dip()
349 char *dname; in dr_suspend_devices() local
1054 char *dname; in drerr_int() local
1077 if (dname) { in drerr_int()
[all …]
/illumos-gate/usr/src/test/zfs-tests/cmd/mkbusy/
H A Dmkbusy.c97 char *arg, *dname, *fname; in main() local
116 dname = strdup("."); in main()
120 dname = strdup(arg); in main()
124 if (dname == NULL || fname == NULL) in main()
126 dlen = strlen(dname); in main()
130 if ((ret = stat(dname, &sbuf)) != 0 || !(sbuf.st_mode & in main()
138 (void) strncpy(fpath, dname, dlen); in main()
141 free(dname); in main()
/illumos-gate/usr/src/test/zfs-tests/cmd/mktree/
H A Dmktree.c98 char dname[MAXPATHLEN] = {0}; in mktree() local
106 (void) memset(dname, '\0', sizeof (dname)); in mktree()
107 (void) strcpy(dname, getfdname(pdir, TYPE_D, level, d, 0)); in mktree()
109 if (mkdir(dname, 0777) != 0) { in mktree()
112 dname, errno, strerror(errno)); in mktree()
119 if (mktree(dname, level+1) != 0) { in mktree()
123 getfdname(dname, TYPE_F, level+1, d, f)); in mktree()
/illumos-gate/usr/src/lib/nsswitch/ad/common/
H A Dgetspent.c77 char *dname; in getbynam() local
89 if ((dname = strchr(name, '@')) == NULL) in getbynam()
92 *dname = '\0'; in getbynam()
93 dname++; in getbynam()
101 idmaprc = idmap_get_w2u_mapping(NULL, NULL, name, dname, in getbynam()
109 if (update_buffer(be, argp, name, dname) < 0) in getbynam()
H A Dgetgrent.c69 char *dname; in getbynam() local
81 if ((dname = strchr(name, '@')) == NULL) in getbynam()
84 *dname = '\0'; in getbynam()
85 dname++; in getbynam()
92 idmaprc = idmap_get_w2u_mapping(NULL, NULL, name, dname, in getbynam()
100 if (update_buffer(be, argp, name, dname, gid) < 0) in getbynam()
H A Dgetpwnam.c300 char *dname; in getbyname() local
315 if ((dname = strchr(name, '@')) == NULL) in getbyname()
318 *dname = '\0'; in getbyname()
319 dname++; in getbyname()
326 flag = (strcasecmp(dname, WK_DOMAIN) == 0) ? in getbyname()
331 dname, flag, &is_user, &is_wuser, &be->uid, NULL, in getbyname()
338 if (strcasecmp(dname, WK_DOMAIN) != 0) { in getbyname()
347 dname, &try_idmap); in getbyname()
362 idmaprc = idmap_get_w2u_mapping(NULL, NULL, name, dname, in getbyname()
370 if (update_buffer(be, argp, name, dname, in getbyname()
/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/
H A Dmkpkgmap.c90 static char *dname[NRECURS], variable
493 "%s/%s", dname[nfp], pt); in dorsearch()
714 dname[nfp] = topdir; in pushenv()
717 dname[nfp] = qstrdup(file); in pushenv()
722 free(dname[nfp]); in pushenv()
723 dname[nfp] = qstrdup(dname[nfp-1]); in pushenv()
728 canonize(dname[nfp]); in pushenv()
730 if (chdir(dname[nfp])) { in pushenv()
750 if (dname[nfp]) in popenv()
751 free(dname[nfp]); in popenv()
[all …]
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_quiesce.c83 static int sbdp_bypass_device(char *dname);
192 sbdp_bypass_device(char *dname) in sbdp_bypass_device() argument
244 char *dname; in sbdp_check_dip() local
256 dname = ddi_binding_name(dip); in sbdp_check_dip()
258 if ((strcmp(dname, "pciclass,060940") == 0) || (strcmp(dname, in sbdp_check_dip()
267 if (sbdp_bypass_device(dname)) in sbdp_check_dip()
276 dname, ddi_name_to_major(dname)); in sbdp_check_dip()
313 char *dname; in sbdp_suspend_devices_() local
327 major = ddi_name_to_major(dname); in sbdp_suspend_devices_()
330 if (sbdp_bypass_device(dname)) { in sbdp_suspend_devices_()
[all …]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dentry.c854 char *dname = NULL; in dm_inuse() local
871 if (dname == NULL || *dname == '\0') { in dm_inuse()
885 free(dname); in dm_inuse()
896 free(dname); in dm_inuse()
910 free(dname); in dm_inuse()
954 if (build_usage_string(dname, in dm_inuse()
978 if (build_usage_string(dname, in dm_inuse()
996 if (build_usage_string(dname, in dm_inuse()
1008 if (build_usage_string(dname, in dm_inuse()
1048 if (dname != NULL) in dm_inuse()
[all …]
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Dadutils.c593 char **canonname, char **dname, in idmap_batch_add1() argument
619 q->domain = dname; in idmap_batch_add1()
670 if (dname != NULL) in idmap_batch_add1()
671 *dname = NULL; in idmap_batch_add1()
722 if (dname == NULL || *dname == '\0') { in idmap_name2sid_batch_add1()
724 dname = state->default_domain; in idmap_name2sid_batch_add1()
725 edomain = strdup(dname); in idmap_name2sid_batch_add1()
731 if ((edomain = strdup(dname)) == NULL) { in idmap_name2sid_batch_add1()
737 if (!adutils_lookup_check_domain(state->qs, dname)) { in idmap_name2sid_batch_add1()
773 char **name, char **dname, idmap_id_type *sid_type, in idmap_sid2name_batch_add1() argument
[all …]
H A Dadutils.h110 const char *name, const char *dname, idmap_id_type esidtype,
132 char **dname, idmap_id_type *sid_type, char **unixname,
141 char **name, char **dname, idmap_id_type *sid_type,
150 char **name, char **dname, idmap_id_type *sid_type,
/illumos-gate/usr/src/cmd/allocate/
H A Dmkdevalloc.c245 char *dname, *dtype, *dclean; in dotape() local
366 dname = DA_TAPE_NAME; in dotape()
370 dname = "st"; in dotape()
456 char dname[128]; in doaudio() local
572 len = sizeof (dname) - slen; in doaudio()
659 char *dname, *dclean; in dofloppy() local
732 dname = DA_FLOPPY_NAME; in dofloppy()
735 dname = "fd"; in dofloppy()
828 char *dname, *dclean; in docd() local
1002 dname = DA_CD_NAME; in docd()
[all …]
/illumos-gate/usr/src/cmd/msgfmt/
H A Dxgettext.c95 char *dname; member
1387 find_domain_node(char *dname) in find_domain_node() argument
1402 if ((dname == NULL) || in find_domain_node()
1403 (dname[0] == '\0') || in find_domain_node()
1418 if (strcmp(p->dname, dname) == 0) { in find_domain_node()
1425 tmp_dom->dname = strdup(dname); in find_domain_node()
1905 dname[0] = '\0'; in write_one_file()
1908 (void) strcpy(dname, head->dname); in write_one_file()
1941 if (head->dname != NULL) { in write_one_file()
1943 head->dname); in write_one_file()
[all …]
/illumos-gate/usr/src/lib/libresolv/
H A Dres_mkquery.c123 res_mkquery(op, dname, class, type, data, datalen, newrr, buf, buflen) in res_mkquery() argument
125 char *dname; /* domain name */
140 printf("res_mkquery(%d, %s, %d, %d)\n", op, dname, class, type);
188 if ((n = dn_comp((u_char *)dname, cp, buflen,
262 if ((n = dn_comp((u_char *)dname, cp, buflen,
290 if ((n = dn_comp((u_char *)dname, cp, buflen,
/illumos-gate/usr/src/cmd/fm/scripts/
H A Ddictck.pl96 my $dname;
104 $dname = $1;
157 die "$name:$line: name \"$props{'name'}\" doesn't match \"$dname\" from filename\n"
158 unless $props{'name'} eq $dname;
205 open(B, "$buildcode $dname $rhs|") or
/illumos-gate/usr/src/tools/scripts/
H A Dvalidate_flg.pl63 my ($dname, $isincflg);
66 $dname = $fname;
67 $dname =~ s+/[^/]*$++;
104 } elsif ($isincflg && $expfile eq $dname) {
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dsun4dep.c49 char dname[OBP_MAXDRVNAME]; in setup_aux() local
73 prom_getprop(node, OBP_DEVICETYPE, dname) > 0 && in setup_aux()
74 strcmp(dname, "core") == 0)) { in setup_aux()
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_init.c58 char *dname; in read_scsi_page() local
81 dname = sasd_slink_name(slink); in read_scsi_page()
82 dev = open(dname, O_RDWR | O_NDELAY); in read_scsi_page()
85 dname, errno); in read_scsi_page()
90 cdb->scc_cmd, dname, errno); in read_scsi_page()
496 char *dname; in inaccbl_drv_warn() local
509 if (!(dname = tlm_get_tape_name(l, d))) { in inaccbl_drv_warn()
513 NDMP_LOG(LOG_DEBUG, "%s", dname); in inaccbl_drv_warn()
/illumos-gate/usr/src/uts/common/fs/hsfs/
H A Dhsfs_node.c1536 dname = (char *)HDE_name(dirp); in process_dirblock()
1575 dname = (char *)&rrip_name_str[0]; in process_dirblock()
1596 if (dname[i] == ';' && in process_dirblock()
1597 dname[i-1] == '\0') { in process_dirblock()
1604 if (dname[i] == ';') in process_dirblock()
1628 dname = uppercase_name; in process_dirblock()
1631 dname[dnamelen - 1] == '.' && in process_dirblock()
1632 CAN_TRUNCATE_DOT(dname, dnamelen)) in process_dirblock()
1633 dname[--dnamelen] = '\0'; in process_dirblock()
1648 if (*nm != *dname || nmlen != dnamelen) in process_dirblock()
[all …]
/illumos-gate/usr/src/cmd/whodo/
H A Dwhodo.c106 char dname[DEVNAMELEN]; /* device name */ member
701 (void) strlcpy(dp->dname, " ? ", sizeof (dp->dname)); in devadd()
702 return (dp->dname); in devadd()
708 (void) strlcpy(dp->dname, &name[5], sizeof (dp->dname)); in devadd()
716 (void) strlcpy(dp->dname, &name[start], DEVNAMELEN); in devadd()
718 (void) strlcpy(dp->dname, &name[i+1], DEVNAMELEN); in devadd()
720 return (dp->dname); in devadd()
731 return (dp->dname); in devlookup()
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Dpacklib.c41 char dname[PATH_MAX]; in PWOpen() local
60 (void) snprintf(dname, sizeof (dname), "%s/%s", path, in PWOpen()
65 if ((fd_d = open(dname, O_RDWR|O_CREAT, 0600)) == -1) in PWOpen()
66 syslog(LOG_ERR, "PWopen: can't open %s: %s", dname, in PWOpen()

12345