/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | media.c | 50 static int get_rmm_name(disk_t *dp, char *mname, int size); 86 char mname[MAXPATHLEN]; in media_get_assocs() local 88 if (!media_read_name(dp->p.disk, mname, sizeof (mname))) { in media_get_assocs() 108 media[0] = cache_get_desc(DM_MEDIA, dp->p.disk, mname, NULL, errp); in media_get_assocs() 222 char mname[MAXPATHLEN]; in media_make_descriptors() local 226 if (media_read_name(dp, mname, sizeof (mname))) { in media_make_descriptors() 227 cache_load_desc(DM_MEDIA, dp, mname, NULL, &error); in media_make_descriptors() 273 media_read_name(disk_t *dp, char *mname, int size) in media_read_name() argument 275 mname[0] = 0; in media_read_name() 280 (void) strlcpy(mname, dp->device_id, size); in media_read_name() [all …]
|
H A D | slice.c | 165 char mname[MAXPATHLEN]; in slice_get_descriptor_by_name() local 171 mname[0] = 0; in slice_get_descriptor_by_name() 172 (void) media_read_name(dp, mname, sizeof (mname)); in slice_get_descriptor_by_name() 174 return (cache_get_desc(DM_SLICE, dp, name, mname, in slice_get_descriptor_by_name() 296 char mname[MAXPATHLEN]; in desc_ok() local 298 if (!media_read_name(dp->p.disk, mname, sizeof (mname))) { in desc_ok() 302 if (mname[0] == 0) { in desc_ok() 305 return (libdiskmgt_str_eq(dp->secondary_name, mname)); in desc_ok() 640 char mname[MAXPATHLEN]; in make_fixed_descriptors() local 650 mname[0] = 0; in make_fixed_descriptors() [all …]
|
H A D | partition.c | 364 char mname[MAXPATHLEN]; in partition_make_descriptors() local 377 mname[0] = 0; in partition_make_descriptors() 378 (void) media_read_name(dp, mname, sizeof (mname)); in partition_make_descriptors() 406 part_name, mname, &error); in partition_make_descriptors() 701 char mname[MAXPATHLEN]; in desc_ok() local 703 if (!media_read_name(dp->p.disk, mname, sizeof (mname))) { in desc_ok() 707 if (mname[0] == 0) { in desc_ok() 710 return (libdiskmgt_str_eq(dp->secondary_name, mname)); in desc_ok()
|
/illumos-gate/usr/src/test/nvme-tests/tests/libnvme/ |
H A D | ctrl-disc.c | 44 const char *mname; in ctrl_check_disc() local 49 mname = di_minor_name(minor); in ctrl_check_disc() 53 "0x%x\n", mname, di_minor_spectype(minor)); in ctrl_check_disc() 57 mname); in ctrl_check_disc() 62 "%s", mname, di_minor_nodetype(minor), DDI_NT_NVME_NEXUS); in ctrl_check_disc() 65 mname); in ctrl_check_disc() 70 "controller devi", mname); in ctrl_check_disc() 74 "controller\n", mname); in ctrl_check_disc()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | common.c | 45 char *mname, *p; in getnet() local 61 if (NULL != (mname = strrchr(name, '/'))) { in getnet() 62 i = (int)(mname - name); in getnet() 67 mname++; in getnet() 72 if (mname == NULL && strcasecmp(name, "default") == 0) in getnet() 87 if (mname == NULL) { in getnet() 92 mask = (uint32_t)strtoul(mname, &p, 0); in getnet() 93 if (*p != '\0' || mask > 32 || mname == p) in getnet()
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | method.c | 607 write_status(restarter_inst_t *inst, const char *mname, int stat) in write_status() argument 615 r = libscf_write_method_status(inst->ri_m_inst, mname, stat); in write_status() 632 "for %s method of %s: %s.\n", mname, in write_status() 670 const char *mname; in method_run() local 693 mname = method_names[type]; in method_run() 706 inst->ri_i.i_fmri, mname); in method_run() 729 inst->ri_i.i_fmri, mname); in method_run() 732 "defined. Treating as :true.", mname); in method_run() 735 "group '%s' is not present.", mname); in method_run() 741 inst->ri_i.i_fmri, mname); in method_run() [all …]
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | dtrace_link.c | 58 char *mname = di_minor_name(minor); in dtrace() local 61 (void) snprintf(path, sizeof (path), "dtrace/%s", mname); in dtrace() 70 char *mname = di_minor_name(minor); in dtrace_provider() local 73 (void) snprintf(path, sizeof (path), "dtrace/provider/%s", mname); in dtrace_provider()
|
H A D | vscan_link.c | 49 char *mname = di_minor_name(minor); in vscan() local 52 (void) snprintf(path, sizeof (path), "vscan/%s", mname); in vscan()
|
/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | devlink_disco.c | 153 lookupLink(char *path, char *link, const char *dir, const char *mname) in lookupLink() argument 210 (void) strlcat(tmpPath, mname, MAXPATHLEN); in lookupLink() 239 const char mname[] = ":scsi"; in lookupControllerLink() local 240 return (lookupLink(path, link, dir, mname)); in lookupControllerLink() 252 const char mname[] = ":smp"; in lookupSMPLink() local 253 return (lookupLink(path, link, dir, mname)); in lookupSMPLink()
|
/illumos-gate/usr/src/cmd/krb5/kwarn/ |
H A D | kwarnd.c | 79 char mname[FMNAMESZ + 1]; in main() local 131 if (!ioctl(0, I_LOOK, mname) && ((strcmp(mname, "sockmod") == 0) || in main() 132 (strcmp(mname, "timod") == 0))) { in main() 147 if (strcmp(mname, "sockmod") == 0) { in main()
|
/illumos-gate/usr/src/cmd/smbsrv/smbadm/ |
H A D | smbadm.c | 1455 char **mname; in smbadm_group_addmember() local 1462 mname = (char **)malloc(argc * sizeof (char *)); in smbadm_group_addmember() 1463 if (mname == NULL) { in smbadm_group_addmember() 1467 bzero(mname, argc * sizeof (char *)); in smbadm_group_addmember() 1472 mname[mcnt++] = optarg; in smbadm_group_addmember() 1476 free(mname); in smbadm_group_addmember() 1483 free(mname); in smbadm_group_addmember() 1490 free(mname); in smbadm_group_addmember() 1495 if (mname[i] == NULL) in smbadm_group_addmember() 1498 gname, mname[i], SMBADM_GRP_ADDMEMBER); in smbadm_group_addmember() [all …]
|
/illumos-gate/usr/src/cmd/gss/gssd/ |
H A D | gssd.c | 97 char mname[FMNAMESZ + 1]; in main() local 144 if (!ioctl(0, I_LOOK, mname) && ((strcmp(mname, "sockmod") == 0) || in main() 145 (strcmp(mname, "timod") == 0))) { in main() 161 if (strcmp(mname, "sockmod") == 0) { in main()
|
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_findzonecut.c | 179 char mname[NS_MAXDNAME]; in res_findzonecut2() local 194 mname, sizeof mname, &nsrrs)) < 0 || in res_findzonecut2() 196 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) in res_findzonecut2() 202 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) in res_findzonecut2() 207 n = satisfy(statp, mname, &nsrrs, addrs, naddrs); in res_findzonecut2() 219 satisfy(res_state statp, const char *mname, rrset_ns *nsrrsp, in satisfy() argument 226 nsrr = find_ns(nsrrsp, mname); in satisfy() 236 if (ns_samename(nsrr->name, mname) != 1) { in satisfy() 242 DPRINTF(("satisfy(%s): %d", mname, n)); in satisfy() 266 char *zname, size_t zsize, char *mname, size_t msize, in get_soa() argument [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | an_to_ln.c | 77 char *mname; in aname_full_to_mapping_name() local 79 mname = (char *) NULL; in aname_full_to_mapping_name() 86 if ((mname = (char *) malloc(mlen+1))) { in aname_full_to_mapping_name() 87 strncpy(mname, fprincname, mlen); in aname_full_to_mapping_name() 88 mname[mlen] = '\0'; in aname_full_to_mapping_name() 91 return(mname); in aname_full_to_mapping_name() 759 char *mname; in krb5_aname_to_localname() local 778 if ((mname = aname_full_to_mapping_name(pname))) { in krb5_aname_to_localname() 787 hierarchy[3] = mname; in krb5_aname_to_localname() 897 free(mname); in krb5_aname_to_localname()
|
/illumos-gate/usr/src/uts/common/fs/bootfs/ |
H A D | bootfs_construct.c | 218 const char *mname) in bootfs_construct_entry() argument 225 const char *p = mname; in bootfs_construct_entry() 296 char paddr[64], psize[64], pname[64], *mname; in bootfs_construct() local 331 DDI_PROP_DONTPASS, pname, &mname) != DDI_PROP_SUCCESS) in bootfs_construct() 334 ret = bootfs_construct_entry(bfs, addr, size, mname); in bootfs_construct() 339 ddi_prop_free(mname); in bootfs_construct()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | devpolicy.c | 201 char *mname = NULL; in match_policy() local 222 if (mname == NULL && in match_policy() 223 ddi_lyr_get_minor_name(dev, spec, &mname) != DDI_SUCCESS) in match_policy() 230 int slen = strlen(mname); in match_policy() 232 char *sp = mname; in match_policy() 261 } else if (strcmp(de->dpe_expr, mname) == 0) { in match_policy() 273 if (mname != NULL) in match_policy() 274 kmem_free(mname, strlen(mname) + 1); in match_policy()
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | umount.c | 151 char *mname, *is_special; in main() local 235 mname = argv[optind]; in main() 236 is_special = realpath(mname, resolve); in main() 253 mget.mnt_mountp = mname; /* assume mount point */ in main() 285 if ((mp = getmntlast(mntll, NULL, mname)) == NULL) in main() 289 mp = getmntlast(mntll, mname, NULL); in main() 305 rpterr(mname); in main() 311 myname, mname); in main() 319 mget.mnt_special = mget.mnt_mountp = mname; in main()
|
/illumos-gate/usr/src/cmd/ptools/pmap/ |
H A D | pmap.c | 725 char mname[PATH_MAX]; in look_map() local 741 mname, sizeof (mname)); in look_map() 746 lname = anon_name(mname, Psp, stacks, nstacks, pmp->pr_vaddr, in look_map() 859 char mname[PATH_MAX]; in look_smap() local 876 mname, sizeof (mname)); in look_smap() 881 lname = anon_name(mname, Psp, stacks, nstacks, pmp->pr_vaddr, in look_smap() 965 char mname[PATH_MAX]; in look_xmap() local 977 mname, sizeof (mname)); in look_xmap() 984 lname = anon_name(mname, Psp, stacks, nstacks, pmp->pr_vaddr, in look_xmap() 1011 char mname[PATH_MAX]; in look_xmap_nopgsz() local [all …]
|
/illumos-gate/usr/src/lib/krb5/kdb/ |
H A D | kdb_default.c | 141 krb5_def_store_mkey(context, keyfile, mname, key, master_pwd) in krb5_def_store_mkey() argument 144 krb5_principal mname; 152 krb5_data *realm = krb5_princ_realm(context, mname); 207 krb5_principal mname, in krb5_db_def_fetch_mkey() argument 215 krb5_data *realm = krb5_princ_realm(context, mname); in krb5_db_def_fetch_mkey()
|
/illumos-gate/usr/src/cmd/xhci/ |
H A D | xhci_portsc.c | 255 char *mname, *path; in xp_devinfo_cb() local 257 mname = di_minor_name(minor); in xp_devinfo_cb() 258 if (mname == NULL) in xp_devinfo_cb() 260 if (strcmp(mname, "hubd") != 0) in xp_devinfo_cb()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_program.c | 457 char *mname, *fname; in dt_header_probe() local 465 mname = alloca(strlen(prp->pr_name) + 1); in dt_header_probe() 466 dt_header_fmt_macro(mname, prp->pr_name); in dt_header_probe() 472 infop->dthi_pmname, mname) < 0) in dt_header_probe() 514 infop->dthi_pmname, mname, in dt_header_probe() 516 infop->dthi_pmname, mname, in dt_header_probe() 522 infop->dthi_pmname, mname) < 0) in dt_header_probe()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/ |
H A D | pppoe.c | 311 const char *mname; in handle_pppoe_input() local 347 mname = "PADM"; in handle_pppoe_input() 351 mname = "PADN"; in handle_pppoe_input() 371 dbglog("ignored PPPoE %s; no %s script", mname, in handle_pppoe_input() 374 dbglog("PPPoE %s: started PID %d", mname, rpid); in handle_pppoe_input()
|
/illumos-gate/usr/src/cmd/devfsadm/i386/ |
H A D | xen_link.c | 102 char *mname = di_minor_name(minor); in xdt() local 105 (void) snprintf(path, sizeof (path), "dtrace/provider/%s", mname); in xdt()
|
/illumos-gate/usr/src/cmd/ahciem/ |
H A D | ahciem.c | 172 char *mname = di_minor_name(m); in ahciem_devinfo() local 174 if (mname != NULL && strcmp("devctl", mname) == 0) in ahciem_devinfo()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/include/krb5/ |
H A D | kdb.h | 299 krb5_principal mname, 303 krb5_principal mname, 454 krb5_principal mname, 461 krb5_principal mname,
|