/titanic_44/usr/src/lib/libtecla/common/ |
H A D | history.c | 236 static int glh_line_matches_glob(GlhLineStream *lstr, GlhLineStream *pstr); 237 static int glh_matches_range(char c, GlhLineStream *pstr); 2420 GlhLineStream pstr; /* The stream that is used to traverse 'prefix' */ in _glh_line_matches_prefix() local 2432 glh_init_stream(&pstr, prefix); in _glh_line_matches_prefix() 2438 return glh_line_matches_glob(&lstr, &pstr); in _glh_line_matches_prefix() 2447 while(pstr.c != '\0' && pstr.c == lstr.c) { in _glh_line_matches_prefix() 2449 glh_step_stream(&pstr); in _glh_line_matches_prefix() 2455 return pstr.c == '\0'; in _glh_line_matches_prefix() 2600 GlhLineStream pstr; /* The stream that is used to traverse 'prefix' */ in glh_contains_glob() local 2605 glh_init_stream(&pstr, prefix); in glh_contains_glob() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/motherboard/ |
H A D | motherboard.c | 129 char *pstr = NULL; in mb_get_pri_info() local 196 if (md_get_prop_str(mdp, listp[i], "type", &pstr) == 0) { in mb_get_pri_info() 198 if (strcmp("systemboard", pstr) == 0) { in mb_get_pri_info() 208 } else if (strcmp("product", pstr) == 0) { in mb_get_pri_info() 215 if (md_get_prop_str(mdp, listp[i], "nac", &pstr) == 0) { in mb_get_pri_info() 216 if (strcmp("SYS", pstr) == 0) { in mb_get_pri_info() 227 pstr = mb_topo_alloc(i); in mb_get_pri_info() 228 (void) snprintf(pstr, i, "%s%s", pn ? pn : "", dn ? dn : ""); in mb_get_pri_info() 229 *partp = topo_mod_strdup(mod, pstr); in mb_get_pri_info() 230 mb_topo_free(pstr, i); in mb_get_pri_info() [all …]
|
/titanic_44/usr/src/cmd/sgs/elfwrap/common/ |
H A D | main.c | 52 const char *prog, *ofile = NULL, *pstr = NULL; in main() local 92 pstr = optarg + MSG_ARG_TARGET_SIZE; in main() 129 if (pstr) { in main() 130 if (strcasecmp(pstr, MSG_ORIG(MSG_TARG_SPARC)) == 0) { in main() 136 } else if (strcasecmp(pstr, MSG_ORIG(MSG_TARG_X86)) == 0) { in main() 144 pstr); in main()
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/xaui/ |
H A D | xaui.c | 290 char *pstr = NULL; in xaui_get_pri_label() local 354 if ((md_get_prop_str(mdp, listp[i], "type", &pstr) == 0) && in xaui_get_pri_label() 355 (pstr != NULL) && in xaui_get_pri_label() 356 (strncmp(pstr, "io", strlen(pstr)) == 0) && in xaui_get_pri_label() 357 (md_get_prop_str(mdp, listp[i], "topo-hc-name", &pstr) in xaui_get_pri_label() 358 == 0) && (pstr != NULL) && in xaui_get_pri_label() 359 (strncmp(pstr, "xaui", strlen(pstr)) == 0) && in xaui_get_pri_label() 360 (md_get_prop_str(mdp, listp[i], "path", &pstr) == 0) && in xaui_get_pri_label() 361 (pstr != NULL)) { in xaui_get_pri_label() 363 if (strncmp(pstr, path, sizeof (path)) == 0) { in xaui_get_pri_label() [all …]
|
/titanic_44/usr/src/cmd/cal/ |
H A D | cal.c | 47 static void pstr(char *, const int); 147 pstr(string+i, 24); in main() 182 pstr(string+j, 72); in main() 206 pstr(char *str, const int n) in pstr() function
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/cpuboard/ |
H A D | cpuboard.c | 98 char *pstr = NULL; in cpuboard_get_pri_info() local 167 if (md_get_prop_str(mdp, listp[i], "type", &pstr) == 0 && in cpuboard_get_pri_info() 168 pstr != NULL && strcmp(pstr, "cpu-board") == 0) { in cpuboard_get_pri_info() 199 pstr = cpuboard_topo_alloc(len); in cpuboard_get_pri_info() 200 (void) snprintf(pstr, len, "%s%s", in cpuboard_get_pri_info() 202 cpubs[id].pn = topo_mod_strdup(mod, pstr); in cpuboard_get_pri_info() 203 cpuboard_topo_free(pstr, len); in cpuboard_get_pri_info()
|
/titanic_44/usr/src/cmd/stat/kstat/ |
H A D | kstat.c | 163 nselector->ks_module.pstr = in main() 168 nselector->ks_instance.pstr = in main() 173 nselector->ks_name.pstr = in main() 178 nselector->ks_statistic.pstr = in main() 182 g_ks_class.pstr = in main() 237 uselector->ks_module.pstr = in main() 241 uselector->ks_instance.pstr = in main() 245 uselector->ks_name.pstr = in main() 249 uselector->ks_statistic.pstr = in main() 496 selector->ks_module.pstr = "*"; in new_selector() [all …]
|
H A D | kstat.h | 192 char *pstr; member
|
/titanic_44/usr/src/lib/libc/port/i18n/ |
H A D | plural_parser.c | 328 gettoken(const char **pstr, unsigned int *num, int which) in gettoken() argument 330 unsigned char *sp = *(unsigned char **)pstr; in gettoken() 338 *pstr = (const char *)sp; in gettoken() 436 *pstr = (const char *)sp; in gettoken() 457 const char *pstr = plural_string; in plural_expr() local 476 while ((op = gettoken(&pstr, &num, GET_TOKEN)) != T_NULL) { in plural_expr() 696 nop = gettoken(&pstr, &num, PEEK_TOKEN); in plural_expr() 701 (void) gettoken(&pstr, &num, GET_TOKEN); in plural_expr()
|
/titanic_44/usr/src/lib/libsec/common/ |
H A D | acltext.c | 1190 char *pstr; in compute_values() local 1197 for (i = 0, pstr = permstr; i != count && pstr && in compute_values() 1198 *pstr; i++, pstr++) { in compute_values() 1199 if (*pstr == permtab[i].p_letter) { in compute_values() 1201 } else if (*pstr != '-') { in compute_values() 1206 for (pstr = permstr; pstr && *pstr; pstr++) { in compute_values() 1208 if (*pstr == permtab[i].p_letter) { in compute_values()
|
/titanic_44/usr/src/lib/brand/solaris10/s10_support/ |
H A D | s10_support.c | 247 char *pstr; in have_valid_ku() local 284 pstr = patchlist; in have_valid_ku() 285 while ((p = strtok_r(pstr, " ", &lastp)) != NULL) { in have_valid_ku() 295 pstr = NULL; in have_valid_ku()
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | priv_str_xlate.c | 179 const char *pstr; in __priv_set_to_str() local 325 pstr = __priv_getbynum(d, priv); in __priv_set_to_str() 326 (void) strcpy(res, pstr); in __priv_set_to_str() 327 res += strlen(pstr); in __priv_set_to_str()
|
/titanic_44/usr/src/cmd/picl/plugins/sun4v/snmp/ |
H A D | snmpplugin.c | 1193 char *pstr; in read_volprop() local 1267 vol_props[ndx].row, &pstr, &snmp_syserr); in read_volprop() 1270 if (pstr) in read_volprop() 1271 free(pstr); in read_volprop() 1274 if (ret < 0 || pstr == NULL) { in read_volprop() 1282 (void) strlcpy(buf, pstr, MAX_TRUTHVAL_LEN); in read_volprop() 1284 if (pstr) in read_volprop() 1285 free(pstr); in read_volprop() 1289 vol_props[ndx].row, &pstr, &snmp_syserr); in read_volprop() 1292 if (pstr) in read_volprop() [all …]
|
/titanic_44/usr/src/cmd/audio/utilities/ |
H A D | AudioHdrParse.cc | 598 char *pstr; in FormatParse() local 604 pstr = new char[strlen(str) + 1]; in FormatParse() 605 (void) strcpy(pstr, str); in FormatParse() 606 ptr = pstr; in FormatParse() 644 delete pstr; in FormatParse()
|
/titanic_44/usr/src/cmd/sgs/ld/common/ |
H A D | ld.c | 327 char *pstr = optarg + MSG_ARG_TARGET_SIZE; in process_args() local 329 if (strcasecmp(pstr, in process_args() 333 } else if (strcasecmp(pstr, in process_args() 339 MSG_INTL(MSG_ERR_BADTARG), pstr); in process_args()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipseckey.c | 1663 char *thiscmd, *pstr; in doaddup() local 2030 if ((pstr = strchr(*argv, '/')) != NULL) { in doaddup() 2033 prefix = strtol(pstr + 1, NULL, 10); in doaddup() 2036 "Invalid prefix %s."), pstr); in doaddup() 2040 alloclen = (int)(pstr - *argv); in doaddup() 2041 pstr = malloc(alloclen + 1); in doaddup() 2042 if (pstr == NULL) { in doaddup() 2045 (void) strlcpy(pstr, *argv, alloclen + 1); in doaddup() 2047 pstr = *argv; in doaddup() 2056 sa_len = parseaddr(pstr, &isrchp, in doaddup() [all …]
|
/titanic_44/usr/src/uts/sun4u/starfire/io/ |
H A D | idn_dlpi.c | 215 char *pstr; in dlprim2str() local 218 case DL_UNITDATA_REQ: pstr = "UNITDATA_REQ"; break; in dlprim2str() 219 case DL_ATTACH_REQ: pstr = "ATTACH_REQ"; break; in dlprim2str() 220 case DL_DETACH_REQ: pstr = "DETACH_REQ"; break; in dlprim2str() 221 case DL_BIND_REQ: pstr = "BIND_REQ"; break; in dlprim2str() 222 case DL_UNBIND_REQ: pstr = "UNBIND_REQ"; break; in dlprim2str() 223 case DL_INFO_REQ: pstr = "INFO_REQ"; break; in dlprim2str() 224 case DL_PROMISCON_REQ: pstr = "PROMISCON_REQ"; break; in dlprim2str() 225 case DL_PROMISCOFF_REQ: pstr = "PROMISCOFF_REQ"; break; in dlprim2str() 226 case DL_ENABMULTI_REQ: pstr = "ENABMULTI_REQ"; break; in dlprim2str() [all …]
|
/titanic_44/usr/src/cmd/pg/ |
H A D | pg.c | 367 static char pstr[PROMPTSIZE]; local 370 switch (pstr[i++] = *s++) { 372 return (pstr); 377 pstr[i++] = '%'; 378 if ((pstr[i++] = *s++) == '\0') 379 return (pstr);
|
/titanic_44/usr/src/lib/libsysevent/ |
H A D | libsysevent.c | 486 pub_idx(const char *pstr, int token) in pub_idx() argument 491 if ((pstr = index(pstr, ':')) == NULL) in pub_idx() 493 pstr++; in pub_idx() 497 if (pstr) { in pub_idx() 498 if (*pstr == '\0' || *pstr == ':') in pub_idx() 501 return (pstr); in pub_idx()
|
/titanic_44/usr/src/cmd/sgs/libld/common/ |
H A D | files.c | 419 str_cap(Ofl_desc *ofl, char *pstr, ofl_flag_t flags, Xword tag, Caplist *list) in str_cap() argument 431 tag, pstr)); in str_cap() 438 if (strcmp(capstr->cs_str, pstr) == 0) in str_cap() 442 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, DBG_STATE_NEW, tag, pstr)); in str_cap() 450 capstr->cs_str = pstr; in str_cap() 470 id_cap(Ofl_desc *ofl, char *pstr, oc_flag_t flags) in id_cap() argument 481 DBG_STATE_IGNORED, CA_SUNW_ID, pstr)); in id_cap() 487 CA_SUNW_ID, pstr)); in id_cap() 489 ocapset->oc_id.cs_str = pstr; in id_cap() 493 CA_SUNW_ID, pstr)); in id_cap()
|
/titanic_44/usr/src/cmd/itadm/ |
H A D | itadm.c | 1434 char *pstr; in list_tpg() local 1491 ret = sockaddr_to_str(&(portal->portal_addr), &pstr); in list_tpg() 1503 (void) printf("%s", pstr); in list_tpg() 1504 free(pstr); in list_tpg()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ipadm/ |
H A D | ipadm.c | 942 parse_modifiers(const char *pstr, uint_t *flags, const char *use) in parse_modifiers() argument 946 if ((p = strchr(pstr, '=')) == NULL) in parse_modifiers() 949 if (p == pstr) in parse_modifiers() 2207 ipadm_check_propstr(const char *pstr, boolean_t reset, const char *use) in ipadm_check_propstr() argument 2211 nv = strchr(pstr, '='); in ipadm_check_propstr()
|
/titanic_44/usr/src/cmd/cmd-inet/lib/ipmgmtd/ |
H A D | ipmgmt_persist.c | 743 char *pstr; in ipmgmt_db_initif() local 747 &pstr) == 0) { in ipmgmt_db_initif() 748 proto = ipadm_str2proto(pstr); in ipmgmt_db_initif()
|
/titanic_44/usr/src/uts/common/os/ |
H A D | modctl.c | 2113 char *pstr = kmem_alloc(PRIVNAME_MAX, KM_SLEEP); in modctl_allocpriv() local 2116 if ((error = copyinstr(name, pstr, PRIVNAME_MAX, 0))) { in modctl_allocpriv() 2117 kmem_free(pstr, PRIVNAME_MAX); in modctl_allocpriv() 2120 error = priv_getbyname(pstr, PRIV_ALLOC); in modctl_allocpriv() 2125 kmem_free(pstr, PRIVNAME_MAX); in modctl_allocpriv()
|
/titanic_44/usr/src/lib/libinetsvc/common/ |
H A D | inetsvc.c | 1675 get_protos(const char *pstr) in get_protos() argument 1684 if ((str = strdup(pstr)) == NULL) in get_protos()
|