/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | history.c | 234 static int glh_line_matches_glob(GlhLineStream *lstr, GlhLineStream *pstr); 235 static int glh_matches_range(char c, GlhLineStream *pstr); 2418 GlhLineStream pstr; /* The stream that is used to traverse 'prefix' */ in _glh_line_matches_prefix() local 2430 glh_init_stream(&pstr, prefix); in _glh_line_matches_prefix() 2436 return glh_line_matches_glob(&lstr, &pstr); in _glh_line_matches_prefix() 2445 while(pstr.c != '\0' && pstr.c == lstr.c) { in _glh_line_matches_prefix() 2447 glh_step_stream(&pstr); in _glh_line_matches_prefix() 2453 return pstr.c == '\0'; in _glh_line_matches_prefix() 2598 GlhLineStream pstr; /* The stream that is used to traverse 'prefix' */ in glh_contains_glob() local 2603 glh_init_stream(&pstr, prefix); in glh_contains_glob() [all …]
|
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/ |
H A D | main.c | 51 const char *prog, *ofile = NULL, *pstr = NULL; in main() local 91 pstr = optarg + MSG_ARG_TARGET_SIZE; in main() 128 if (pstr) { in main() 129 if (strcasecmp(pstr, MSG_ORIG(MSG_TARG_SPARC)) == 0) { in main() 135 } else if (strcasecmp(pstr, MSG_ORIG(MSG_TARG_X86)) == 0) { in main() 143 pstr); in main()
|
/illumos-gate/usr/src/uts/common/io/overlay/ |
H A D | overlay_prop.c | 108 mac_propval_str_range_t *pstr = &rangep->u.mpr_str; in overlay_prop_set_range_str() local 118 strlcpy((char *)&pstr->mpur_data[pstr->mpur_nextbyte], str, in overlay_prop_set_range_str() 120 pstr->mpur_nextbyte += len; in overlay_prop_set_range_str()
|
/illumos-gate/usr/src/cmd/cal/ |
H A D | cal.c | 45 static void pstr(char *, const int); 145 pstr(string+i, 24); in main() 180 pstr(string+j, 72); in main() 204 pstr(char *str, const int n) in pstr() function
|
/illumos-gate/usr/src/cmd/stat/kstat/ |
H A D | kstat.c | 170 nselector->ks_module.pstr = in main() 175 nselector->ks_instance.pstr = in main() 180 nselector->ks_name.pstr = in main() 185 nselector->ks_statistic.pstr = in main() 189 g_ks_class.pstr = in main() 244 uselector->ks_module.pstr = in main() 248 uselector->ks_instance.pstr = in main() 252 uselector->ks_name.pstr = in main() 256 uselector->ks_statistic.pstr = in main() 506 selector->ks_module.pstr = "*"; in new_selector() [all …]
|
H A D | kstat.h | 182 char *pstr; member
|
/illumos-gate/usr/src/lib/libc/port/i18n/ |
H A D | plural_parser.c | 322 gettoken(const char **pstr, unsigned int *num, int which) in gettoken() argument 324 unsigned char *sp = *(unsigned char **)pstr; in gettoken() 332 *pstr = (const char *)sp; in gettoken() 430 *pstr = (const char *)sp; in gettoken() 451 const char *pstr = plural_string; in plural_expr() local 469 while ((op = gettoken(&pstr, &num, GET_TOKEN)) != T_NULL) { in plural_expr() 689 nop = gettoken(&pstr, &num, PEEK_TOKEN); in plural_expr() 694 (void) gettoken(&pstr, &num, GET_TOKEN); in plural_expr()
|
/illumos-gate/usr/src/lib/libsec/common/ |
H A D | acltext.c | 1238 char *pstr; in compute_values() local 1245 for (i = 0, pstr = permstr; i != count && pstr && in compute_values() 1246 *pstr; i++, pstr++) { in compute_values() 1247 if (*pstr == permtab[i].p_letter) { in compute_values() 1249 } else if (*pstr != '-') { in compute_values() 1254 for (pstr = permstr; pstr && *pstr; pstr++) { in compute_values() 1256 if (*pstr == permtab[i].p_letter) { in compute_values()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | priv_str_xlate.c | 177 const char *pstr; in __priv_set_to_str() local 323 pstr = __priv_getbynum(d, priv); in __priv_set_to_str() 324 (void) strcpy(res, pstr); in __priv_set_to_str() 325 res += strlen(pstr); in __priv_set_to_str()
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/lib/varpd/libvarpd/common/ |
H A D | libvarpd_prop.c | 131 mac_propval_str_range_t *pstr = &rangep->u.mpr_str; in libvarpd_prop_set_range_str() local 141 (void) strlcpy((char *)&pstr->mpur_data[pstr->mpur_nextbyte], str, in libvarpd_prop_set_range_str() 143 pstr->mpur_nextbyte += len; in libvarpd_prop_set_range_str()
|
/illumos-gate/usr/src/cmd/sgs/ld/common/ |
H A D | ld.c | 285 char *pstr; in process_args() local 362 pstr = optarg + MSG_ARG_TARGET_SIZE; in process_args() 363 if (strcasecmp(pstr, targ_sparc) == 0) { in process_args() 366 } else if (strcasecmp(pstr, targ_x86) == 0) { in process_args() 371 eprintf(0, ERR_FATAL, err, pstr); in process_args()
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioHdrParse.cc | 599 char *pstr; in FormatParse() local 605 pstr = new char[strlen(str) + 1]; in FormatParse() 606 (void) strcpy(pstr, str); in FormatParse() 607 ptr = pstr; in FormatParse() 645 delete[] pstr; in FormatParse()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipseckey.c | 1772 char *thiscmd, *pstr; in doaddup() local 2152 if ((pstr = strchr(*argv, '/')) != NULL) { in doaddup() 2155 prefix = strtol(pstr + 1, NULL, 10); in doaddup() 2158 "Invalid prefix %s."), pstr); in doaddup() 2162 alloclen = (int)(pstr - *argv); in doaddup() 2163 pstr = malloc(alloclen + 1); in doaddup() 2164 if (pstr == NULL) { in doaddup() 2167 (void) strlcpy(pstr, *argv, alloclen + 1); in doaddup() 2169 pstr = *argv; in doaddup() 2178 sa_len = parseaddr(pstr, &isrchp, in doaddup() [all …]
|
/illumos-gate/usr/src/common/hexdump/ |
H A D | hexdump.c | 273 const char *pstr = ilstr_cstr(&hdp->hdp_pbuf); in hexdump_squishable() local 283 pstr += hdp->hdp_addrwidth; in hexdump_squishable() 286 return (strcmp(str, pstr) == 0); in hexdump_squishable()
|
/illumos-gate/usr/src/cmd/pg/ |
H A D | pg.c | 368 static char pstr[PROMPTSIZE]; in setprompt() local 371 switch (pstr[i++] = *s++) { in setprompt() 373 return (pstr); in setprompt() 378 pstr[i++] = '%'; in setprompt() 379 if ((pstr[i++] = *s++) == '\0') in setprompt() 380 return (pstr); in setprompt()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | files.c | 445 str_cap(Ofl_desc *ofl, char *pstr, ofl_flag_t flags, Xword tag, Caplist *list) in str_cap() argument 457 tag, pstr)); in str_cap() 464 if (strcmp(capstr->cs_str, pstr) == 0) in str_cap() 468 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, DBG_STATE_NEW, tag, pstr)); in str_cap() 476 capstr->cs_str = pstr; in str_cap() 496 id_cap(Ofl_desc *ofl, char *pstr, oc_flag_t flags) in id_cap() argument 507 DBG_STATE_IGNORED, CA_SUNW_ID, pstr)); in id_cap() 513 CA_SUNW_ID, pstr)); in id_cap() 515 ocapset->oc_id.cs_str = pstr; in id_cap() 519 CA_SUNW_ID, pstr)); in id_cap()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipadm/ |
H A D | ipadm.c | 1157 parse_modifiers(const char *pstr, uint_t *flags, const char *use) in parse_modifiers() argument 1161 if ((p = strchr(pstr, '=')) == NULL) in parse_modifiers() 1164 if (p == pstr) in parse_modifiers() 2455 ipadm_check_propstr(const char *pstr, boolean_t reset, const char *use) in ipadm_check_propstr() argument 2459 nv = strchr(pstr, '='); in ipadm_check_propstr()
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/ |
H A D | ipmgmt_persist.c | 1002 char *pstr; in ipmgmt_db_initif() local 1006 &pstr) == 0) { in ipmgmt_db_initif() 1007 proto = ipadm_str2proto(pstr); in ipmgmt_db_initif()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | modctl.c | 2131 char *pstr = kmem_alloc(PRIVNAME_MAX, KM_SLEEP); in modctl_allocpriv() local 2134 if ((error = copyinstr(name, pstr, PRIVNAME_MAX, 0))) { in modctl_allocpriv() 2135 kmem_free(pstr, PRIVNAME_MAX); in modctl_allocpriv() 2138 error = priv_getbyname(pstr, PRIV_ALLOC); in modctl_allocpriv() 2143 kmem_free(pstr, PRIVNAME_MAX); in modctl_allocpriv()
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | generalop.c | 1249 kmf_free_str(char *pstr) in kmf_free_str() argument 1251 if (pstr != NULL) in kmf_free_str() 1252 free(pstr); in kmf_free_str()
|
/illumos-gate/usr/src/lib/libinetsvc/common/ |
H A D | inetsvc.c | 1677 get_protos(const char *pstr) in get_protos() argument 1686 if ((str = strdup(pstr)) == NULL) in get_protos()
|