Home
last modified time | relevance | path

Searched refs:bname (Results 1 – 25 of 72) sorted by relevance

123

/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Ddirname.c45 static char bname[MAXPATHLEN]; local
50 (void)strlcpy(bname, ".", sizeof bname);
51 return(bname);
65 (void)strlcpy(bname, *endp == '/' ? "/" : ".", sizeof bname);
66 return(bname);
73 if (endp - path + 2 > sizeof(bname)) {
77 strlcpy(bname, path, endp - path + 2);
78 return(bname);
/titanic_41/usr/src/lib/brand/solaris10/cmd/
H A Ds10_isaexec_wrapper.sh45 bname=`/usr/bin/basename $0`
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 "$@"
/titanic_41/usr/src/lib/lvm/libmeta/common/
H A Dmeta_namespace.c33 char *bname; /* block name of the device */ member
404 char *bname, in add_name() argument
418 nm.devname_len = strlen(bname) + 1; in add_name()
419 nm.devname = (uintptr_t)bname; in add_name()
427 if (metaioctl(MD_IOCSET_NM, &nm, &nm.mde, bname) < 0) in add_name()
463 if (devlist[sideno].bname != (char *)NULL) { in empty_devicelist()
464 Free(devlist[sideno].bname); in empty_devicelist()
474 char *bname, in add_to_devicelist() argument
479 devlist[sideno].bname = Strdup(bname); in add_to_devicelist()
498 char *bname = NULL; in build_sidenamelist() local
[all …]
H A Dmeta_name.c1033 if (np->bname != NULL) in metafreename()
1034 Free(np->bname); in metafreename()
1923 char *bname; in getbname() local
1927 if ((bname = blkname(rname)) != NULL) { in getbname()
1928 if (np->bname) in getbname()
1929 Free(np->bname); in getbname()
1930 np->bname = bname; in getbname()
1945 char *bname = np->bname; in getcname() local
1950 assert(bname != NULL); in getcname()
1955 if ((strncmp(bname, "/dev/dsk/", strlen("/dev/dsk/")) == 0) && in getcname()
[all …]
/titanic_41/usr/src/lib/libgrubmgmt/common/
H A Dlibgrub_bargs.c56 const char *bname; in get_kernel_fd() local
61 if ((bname = strrchr(path, '/')) == NULL) in get_kernel_fd()
62 bname = path; in get_kernel_fd()
64 bname++; in get_kernel_fd()
66 if (strcmp(bname, "unix") != 0) { in get_kernel_fd()
67 if (strcmp(bname, "xen.gz") == 0) in get_kernel_fd()
/titanic_41/usr/src/cmd/lvm/md_monitord/
H A Dprobedev.c35 hotspare_ok(char *bname) in hotspare_ok() argument
40 if ((fd = open(bname, O_RDONLY)) < 0) in hotspare_ok()
55 char *cname, *bname, *hs_state; in delete_hotspares_impl() local
66 bname = hsp->hsnamep->bname; in delete_hotspares_impl()
73 cname, bname, hs_state); in delete_hotspares_impl()
75 if (hotspare_ok(bname)) in delete_hotspares_impl()
81 bname, hspnp->hspname, bname); in delete_hotspares_impl()
/titanic_41/usr/src/cmd/saf/
H A Dadmutil.c82 make_tempname(bname) in make_tempname() argument
83 char *bname; in make_tempname()
88 p = strrchr(bname, '/');
90 (void) sprintf(buf, "%s/.%s", HOME, bname);
96 (void) strcat(buf, bname);
/titanic_41/usr/src/cmd/csh/
H A Dsh.h159 tchar *bname; member
514 tchar *bname; variable
516 bname = xrealloc(bname, (strlen_(a)+1) * sizeof (tchar)); \
517 strcpy_(bname, a); \
518 bname[strlen_(a)] = '\0'; \
/titanic_41/usr/src/cmd/dtrace/test/tst/common/scripting/
H A Dtst.ppid.ksh44 bname=`/bin/basename $0`
45 dfilename=/var/tmp/$bname.$$.d
H A Dtst.stringmacro.ksh44 bname=`/bin/basename $0`
45 dfilename=/var/tmp/$bname.$$.d
H A Dtst.euid.ksh44 bname=`/bin/basename $0`
45 dfilename=/var/tmp/$bname.$$
H A Dtst.gid.ksh44 bname=`/bin/basename $0`
45 dfilename=/var/tmp/$bname.$$
H A Dtst.projid.ksh44 bname=`/bin/basename $0`
45 dfilename=/var/tmp/$bname.$$
H A Dtst.sid.ksh44 bname=`/bin/basename $0`
45 dfilename=/var/tmp/$bname.$$
H A Dtst.taskid.ksh44 bname=`/bin/basename $0`
45 dfilename=/var/tmp/$bname.$$
H A Dtst.uid.ksh44 bname=`/bin/basename $0`
45 dfilename=/var/tmp/$bname.$$
H A Dtst.arguments.ksh45 bname=`/bin/basename $0`
47 dfilename=/var/tmp/$bname.$$
H A Dtst.egid.ksh48 bname=`/bin/basename $0`
49 dfilename=/var/tmp/$bname.$$.d
H A Dtst.D_MACRO_UNUSED.overflow.ksh44 bname=`/bin/basename $0`
45 dfilename=/var/tmp/$bname.$$.d
/titanic_41/usr/src/cmd/rcm_daemon/common/
H A Dsvm_rcm.c1301 if ((deventry = cache_device(cache, hs->hsnamep->bname, in cache_hsp()
1333 if ((antecedent = cache_device(cache, nlp->namep->bname, SVM_TRANS, in cache_trans()
1338 if (cache_device(cache, trans->masternamep->bname, SVM_SLICE, in cache_trans()
1343 if (cache_dependent(cache, trans->masternamep->bname, 0, in cache_trans()
1349 if (cache_device(cache, trans->lognamep->bname, SVM_SLICE, in cache_trans()
1354 if (cache_dependent(cache, trans->lognamep->bname, 0, in cache_trans()
1383 if ((antecedent = cache_device(cache, nlp->namep->bname, SVM_MIRROR, in cache_mirror()
1397 if (cache_dependent(cache, submirror->submirnamep->bname, in cache_mirror()
1425 if ((antecedent = cache_device(cache, nlp->namep->bname, SVM_RAID, in cache_raid()
1437 raid->cols.cols_val[i].colnamep->bname, 0, in cache_raid()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dinstance.c72 static int in_pathin(char *cp, int instance, char *bname, struct bind **args);
80 extern char *i_binding_to_drv_name(char *bname);
548 char *bname; in e_ddi_assign_instance() local
600 bname = (char *)ddi_driver_name(dip); in e_ddi_assign_instance()
601 dp = in_drvwalk(np, bname); in e_ddi_assign_instance()
608 if ((dp = in_drvwalk(np, bname)) == NULL) { in e_ddi_assign_instance()
609 dp = in_alloc_drv(bname); in e_ddi_assign_instance()
999 in_pathin(char *cp, int instance, char *bname, struct bind **args) in in_pathin() argument
1012 if (cp[0] != '/' || instance == -1 || bname == NULL) { in in_pathin()
1019 if ((name = i_binding_to_drv_name(bname)) != NULL) in in_pathin()
[all …]
/titanic_41/usr/src/lib/libdiskmgt/common/
H A Dinuse_svm.c268 if (new_entry(nlp->rl_repp->r_namep->bname, "mdb", in diskset_info()
287 if (new_entry(nlp->namep->bname, "trans", nlp->namep->cname, in diskset_info()
319 if (new_entry(raid->cols.cols_val[i].colnamep->bname, in diskset_info()
362 if (new_entry(component->compnamep->bname, "stripe", in diskset_info()
394 if (new_entry(soft_part->compnamep->bname, "sp", in diskset_info()
410 if (new_entry(nlp->namep->bname, "hs", nlp->namep->cname, sp)) { in diskset_info()
666 return (add_use_record(mdn->bname, type, mname)); in new_entry()
/titanic_41/usr/src/lib/brand/solaris10/s10_support/
H A Ds10_support.c64 static char *bname = NULL; variable
501 bname, bname); in usage()
511 bname = basename(argv[0]); in main()
/titanic_41/usr/src/cmd/ibd_upgrade/
H A Dibd_upgrade.sh45 bname=`basename $device_path`
47 set -- $bname
/titanic_41/usr/src/uts/common/io/
H A Dtrill.c937 trill_kstats_init(trill_sock_t *tsock, const char *bname) in trill_kstats_init() argument
958 bname, link_name); in trill_kstats_init()
993 trill_find_bridge(trill_sock_t *tsock, const char *bname, boolean_t can_create) in trill_find_bridge() argument
1004 if (strcmp(tip->ti_bridgename, bname) == 0) in trill_find_bridge()
1015 (void) strcpy(tip->ti_bridgename, bname); in trill_find_bridge()
1018 tip->ti_binst = bridge_trill_brref(bname, tip); in trill_find_bridge()
1292 char bname[MAXLINKNAMELEN]; in trill_do_ioctl() local
1299 if (ddi_copyin(arg, bname, sizeof (bname), mode) != 0) in trill_do_ioctl()
1301 bname[MAXLINKNAMELEN-1] = '\0'; in trill_do_ioctl()
1302 error = trill_find_bridge(tsock, bname, B_TRUE); in trill_do_ioctl()
[all …]

123