| /onnv-gate/usr/src/lib/libparted/common/lib/ |
| H A D | regex_internal.c | 22 re_string_t *pstr, 40 re_string_allocate (re_string_t *pstr, const char *str, Idx len, Idx init_len, in re_string_allocate() argument 50 re_string_construct_common (str, len, pstr, trans, icase, dfa); in re_string_allocate() 52 ret = re_string_realloc_buffers (pstr, init_buf_len); in re_string_allocate() 56 pstr->word_char = dfa->word_char; in re_string_allocate() 57 pstr->word_ops_used = dfa->word_ops_used; in re_string_allocate() 58 pstr->mbs = pstr->mbs_allocated ? pstr->mbs : (unsigned char *) str; in re_string_allocate() 59 pstr->valid_len = (pstr->mbs_allocated || dfa->mb_cur_max > 1) ? 0 : len; in re_string_allocate() 60 pstr->valid_raw_len = pstr->valid_len; in re_string_allocate() 68 re_string_construct (re_string_t *pstr, const char *str, Idx len, in re_string_construct() argument [all …]
|
| H A D | regex_internal.h | 431 static reg_errcode_t re_string_realloc_buffers (re_string_t *pstr, 435 static void build_wcs_buffer (re_string_t *pstr) internal_function; 436 static reg_errcode_t build_wcs_upper_buffer (re_string_t *pstr) 439 static void build_upper_buffer (re_string_t *pstr) internal_function; 440 static void re_string_translate_buffer (re_string_t *pstr) internal_function; 444 #define re_string_peek_byte(pstr, offset) \ argument 445 ((pstr)->mbs[(pstr)->cur_idx + offset]) 446 #define re_string_fetch_byte(pstr) \ argument 447 ((pstr)->mbs[(pstr)->cur_idx++]) 448 #define re_string_first_byte(pstr, idx) \ argument [all …]
|
| H A D | regexec.c | 4122 re_string_t *pstr = &mctx->input; in extend_buffers() local 4125 if (BE (SIZE_MAX / 2 / sizeof (re_dfastate_t *) <= pstr->bufs_len, 0)) in extend_buffers() 4129 ret = re_string_realloc_buffers (pstr, pstr->bufs_len * 2); in extend_buffers() 4140 pstr->bufs_len + 1); in extend_buffers() 4147 if (pstr->icase) in extend_buffers() 4150 if (pstr->mb_cur_max > 1) in extend_buffers() 4152 ret = build_wcs_upper_buffer (pstr); in extend_buffers() 4158 build_upper_buffer (pstr); in extend_buffers() 4163 if (pstr->mb_cur_max > 1) in extend_buffers() 4164 build_wcs_buffer (pstr); in extend_buffers() [all …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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()
|
| /onnv-gate/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 …]
|
| /onnv-gate/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
|
| /onnv-gate/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()
|
| /onnv-gate/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()
|
| /onnv-gate/usr/src/lib/libsec/common/ |
| H A D | acltext.c | 1198 char *pstr; in compute_values() local 1205 for (i = 0, pstr = permstr; i != count && pstr && in compute_values() 1206 *pstr; i++, pstr++) { in compute_values() 1207 if (*pstr == permtab[i].p_letter) { in compute_values() 1209 } else if (*pstr != '-') { in compute_values() 1214 for (pstr = permstr; pstr && *pstr; pstr++) { in compute_values() 1216 if (*pstr == permtab[i].p_letter) { in compute_values()
|
| /onnv-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()
|
| /onnv-gate/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()
|
| /onnv-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 …]
|
| /onnv-gate/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()
|
| /onnv-gate/usr/src/common/openssl/crypto/x509v3/ |
| H A D | v3_cpols.c | 135 char *pstr; variable 159 pstr = cnf->name; 160 if(!strcmp(pstr,"ia5org")) { 163 } else if(*pstr == '@') { 165 polsect = X509V3_get_section(ctx, pstr + 1);
|
| /onnv-gate/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()
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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);
|
| /onnv-gate/usr/src/lib/libsysevent/ |
| H A D | libsysevent.c | 487 pub_idx(const char *pstr, int token) in pub_idx() argument 492 if ((pstr = index(pstr, ':')) == NULL) in pub_idx() 494 pstr++; in pub_idx() 498 if (pstr) { in pub_idx() 499 if (*pstr == '\0' || *pstr == ':') in pub_idx() 502 return (pstr); in pub_idx()
|
| /onnv-gate/usr/src/cmd/sgs/libld/common/ |
| H A D | files.c | 418 str_cap(Ofl_desc *ofl, char *pstr, ofl_flag_t flags, Xword tag, Caplist *list) in str_cap() argument 430 tag, pstr)); in str_cap() 437 if (strcmp(capstr->cs_str, pstr) == 0) in str_cap() 441 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, DBG_STATE_NEW, tag, pstr)); in str_cap() 449 capstr->cs_str = pstr; in str_cap() 469 id_cap(Ofl_desc *ofl, char *pstr, oc_flag_t flags) in id_cap() argument 480 DBG_STATE_IGNORED, CA_SUNW_ID, pstr)); in id_cap() 486 CA_SUNW_ID, pstr)); in id_cap() 488 ocapset->oc_id.cs_str = pstr; in id_cap() 492 CA_SUNW_ID, pstr)); in id_cap()
|
| /onnv-gate/usr/src/cmd/itadm/ |
| H A D | itadm.c | 1412 char *pstr; in list_tpg() local 1469 ret = sockaddr_to_str(&(portal->portal_addr), &pstr); in list_tpg() 1481 (void) printf("%s", pstr); in list_tpg() 1482 free(pstr); in list_tpg()
|
| /onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/ipadm/ |
| H A D | ipadm.c | 943 parse_modifiers(const char *pstr, uint_t *flags, const char *use) in parse_modifiers() argument 947 if ((p = strchr(pstr, '=')) == NULL) in parse_modifiers() 950 if (p == pstr) in parse_modifiers() 2204 ipadm_check_propstr(const char *pstr, boolean_t reset, const char *use) in ipadm_check_propstr() argument 2208 nv = strchr(pstr, '='); in ipadm_check_propstr()
|
| /onnv-gate/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()
|