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.c150 res_findzonecut(res_state statp, const char *dname, ns_class class, int opts, in res_findzonecut() argument
164 result = res_findzonecut2(statp, dname, class, opts, zname, zsize, in res_findzonecut()
175 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts, in res_findzonecut2() argument
185 dname, p_class(class), (long)zsize, naddrs)); in res_findzonecut2()
193 if ((n = get_soa(statp, dname, class, opts, zname, zsize, in res_findzonecut2()
265 get_soa(res_state statp, const char *dname, ns_class class, int opts, in get_soa() argument
281 if (ns_makecanon(dname, tname, sizeof tname) < 0) in get_soa()
283 dname = tname; in get_soa()
292 while (*dname == '.') in get_soa()
293 dname++; in get_soa()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/dr/
H A Ddr_quiesce.c75 static int dr_bypass_device(char *dname);
207 char *dname, **cpp; in dr_is_unsafe_major() local
210 if ((dname = ddi_major_to_name(major)) == NULL) { in dr_is_unsafe_major()
217 if (strcmp(dname, *cpp++) == 0) in dr_is_unsafe_major()
224 dr_bypass_device(char *dname) in dr_bypass_device() argument
229 if (dname == NULL) in dr_bypass_device()
234 if (strcmp(dname, dr_bypass_list[i++]) == 0) in dr_bypass_device()
282 char *dname; in dr_check_dip() local
291 dname = ddi_binding_name(dip); in dr_check_dip()
293 if (dr_bypass_device(dname)) in dr_check_dip()
[all …]
/illumos-gate/usr/src/uts/sun4u/ngdr/io/
H A Ddr_quiesce.c76 static int dr_bypass_device(char *dname);
208 char *dname, **cpp; in dr_is_unsafe_major() local
211 if ((dname = ddi_major_to_name(major)) == NULL) { in dr_is_unsafe_major()
218 if (strcmp(dname, *cpp++) == 0) in dr_is_unsafe_major()
225 dr_bypass_device(char *dname) in dr_bypass_device() argument
230 if (dname == NULL) in dr_bypass_device()
235 if (strcmp(dname, dr_bypass_list[i++]) == 0) in dr_bypass_device()
283 char *dname; in dr_check_dip() local
292 dname = ddi_binding_name(dip); in dr_check_dip()
294 if (dr_bypass_device(dname)) in dr_check_dip()
[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/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.c102 char dname[MAXPATHLEN] = {0}; in mktree() local
110 (void) memset(dname, '\0', sizeof (dname)); in mktree()
111 (void) strcpy(dname, getfdname(pdir, TYPE_D, level, d, 0)); in mktree()
113 if (mkdir(dname, 0777) != 0) { in mktree()
117 dname, errno, strerror(errno)); in mktree()
124 if (mktree(dname, level+1) != 0) { in mktree()
128 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
394 basepath(temp, dname[nfp], NULL); in findfile()
437 (void) snprintf(host, sizeof (host), "%s/%s", dname[nfp], basename); in findfile()
465 "%s/%s", dname[nfp], pt); in dosearch()
493 "%s/%s", dname[nfp], pt); in dorsearch()
606 (void) snprintf(file, sizeof (file), "%s/%s", dname[nfp], temp); in doinclude()
714 dname[nfp] = topdir; in pushenv()
717 dname[nfp] = qstrdup(file); in pushenv()
718 if (pt = strrchr(dname[nfp], '/')) in pushenv()
722 free(dname[nfp]); in pushenv()
[all …]
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_quiesce.c87 static int sbdp_bypass_device(char *dname);
196 sbdp_bypass_device(char *dname) in sbdp_bypass_device() argument
203 if (strcmp(dname, sbdp_bypass_list[i++]) == 0) in sbdp_bypass_device()
248 char *dname; in sbdp_check_dip() local
260 dname = ddi_binding_name(dip); in sbdp_check_dip()
262 if ((strcmp(dname, "pciclass,060940") == 0) || (strcmp(dname, in sbdp_check_dip()
271 if (sbdp_bypass_device(dname)) in sbdp_check_dip()
280 dname, ddi_name_to_major(dname)); in sbdp_check_dip()
317 char *dname; in sbdp_suspend_devices_() local
330 if ((dname = DEVI(dip)->devi_binding_name) != NULL) in sbdp_suspend_devices_()
[all …]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dentry.c64 static int build_usage_string(char *dname, char *by, char *data, char **use,
854 char *dname = NULL; in dm_inuse() local
866 dname = getfullblkname(dev_name); in dm_inuse()
871 if (dname == NULL || *dname == '\0') { in dm_inuse()
881 if (ANY_ZPOOL_USE(who) && (err = dm_inuse_swap(dname, errp))) { in dm_inuse()
885 free(dname); in dm_inuse()
890 (void) build_usage_string(dname, DM_USE_MOUNT, "swap", msg, in dm_inuse()
896 free(dname); in dm_inuse()
900 dm_get_slice_stats(dname, &dev_stats, errp); in dm_inuse()
910 free(dname); 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()
698 const char *name, const char *dname, idmap_id_type esidtype, in idmap_name2sid_batch_add1() argument
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()
[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()
385 dname, i, KV_DELIMITER); in dotape()
411 dname, i, KV_TOKEN_DELIMIT); in dotape()
456 char dname[128]; in doaudio() local
570 (void) strcpy(dname, DA_AUDIO_NAME); in doaudio()
572 len = sizeof (dname) - slen; in doaudio()
579 (void) snprintf(dname+slen, len, "%d", i); in doaudio()
587 dname, KV_DELIMITER); in doaudio()
[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()
1404 (strcmp(dname, default_domain) == 0)) { in find_domain_node()
1408 if (strcmp(dname, default_domain) == 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()
1825 tmp_domain->dname = strdup(tmpstr); in read_po()
1888 char dname [MAX_DOMAIN_LEN]; in write_one_file() local
[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.c1454 char *dname; /* name in directory entry */ in process_dirblock() local
1536 dname = (char *)HDE_name(dirp); in process_dirblock()
1547 hs_namelen(fsp, dname, dnamelen) > fsp->hsfs_namelen) { 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()
1613 dnamelen = strip_trailing(fsp, dname, dnamelen); in process_dirblock()
1619 (void) strncpy(uppercase_name, dname, dnamelen); in process_dirblock()
1621 dnamelen = hs_joliet_cp(dname, uppercase_name, 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/cmd/backup/dump/
H A Ddumpitime.c26 char *dname; variable
157 if (dname != NULL) in getitime()
158 fname = dname; in getitime()
214 if (dname != NULL) in putitime()
215 fname = dname; in putitime()

12345