| /netbsd-src/external/gpl2/xcvs/dist/lib/ |
| H A D | regex_internal.c | 24 re_string_t *pstr, 42 re_string_allocate (re_string_t *pstr, const char *str, Idx len, Idx init_len, in re_string_allocate() argument 52 re_string_construct_common (str, len, pstr, trans, icase, dfa); in re_string_allocate() 54 ret = re_string_realloc_buffers (pstr, init_buf_len); in re_string_allocate() 58 pstr->word_char = dfa->word_char; in re_string_allocate() 59 pstr->word_ops_used = dfa->word_ops_used; in re_string_allocate() 60 pstr->mbs = pstr->mbs_allocated ? pstr->mbs : (unsigned char *) str; in re_string_allocate() 61 pstr->valid_len = (pstr->mbs_allocated || dfa->mb_cur_max > 1) ? 0 : len; in re_string_allocate() 62 pstr->valid_raw_len = pstr->valid_len; in re_string_allocate() 70 re_string_construct (re_string_t *pstr, const char *str, Idx len, in re_string_construct() argument [all …]
|
| H A D | regex_internal.h | 423 static reg_errcode_t re_string_realloc_buffers (re_string_t *pstr, 427 static void build_wcs_buffer (re_string_t *pstr) internal_function; 428 static reg_errcode_t build_wcs_upper_buffer (re_string_t *pstr) 431 static void build_upper_buffer (re_string_t *pstr) internal_function; 432 static void re_string_translate_buffer (re_string_t *pstr) internal_function; 437 #define re_string_peek_byte(pstr, offset) \ argument 438 ((pstr)->mbs[(pstr)->cur_idx + offset]) 439 #define re_string_fetch_byte(pstr) \ argument 440 ((pstr)->mbs[(pstr)->cur_idx++]) 441 #define re_string_first_byte(pstr, idx) \ argument [all …]
|
| /netbsd-src/external/lgpl3/mpfr/dist/src/ |
| H A D | strtofr.c | 229 parse_string (mpfr_ptr x, struct parsed_string *pstr, in parse_string() argument 242 pstr->mantissa = NULL; in parse_string() 251 pstr->negative = (*str == '-'); in parse_string() 302 (pstr->negative) ? MPFR_SET_NEG (x) : MPFR_SET_POS (x); in parse_string() 326 pstr->base = base; in parse_string() 329 pstr->alloc = (size_t) strlen (str) + 1; in parse_string() 330 pstr->mantissa = (unsigned char*) mpfr_allocate_func (pstr->alloc); in parse_string() 334 mant = pstr->mantissa; in parse_string() 336 pstr->exp_base = 0; in parse_string() 337 pstr->exp_bin = 0; in parse_string() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/http/ |
| H A D | http_lib.c | 18 static void init_pstring(char **pstr) in init_pstring() argument 20 if (pstr != NULL) { in init_pstring() 21 *pstr = NULL; in init_pstring() 38 static void free_pstring(char **pstr) in free_pstring() argument 40 if (pstr != NULL) { in free_pstring() 41 OPENSSL_free(*pstr); in free_pstring() 42 *pstr = NULL; in free_pstring()
|
| /netbsd-src/sys/dev/i2c/ |
| H A D | i2c.c | 237 prop_string_t pstr; in iic_indirect_driver_is_permitted() local 257 while ((pstr = prop_object_iterator_next(iter)) != NULL) { in iic_indirect_driver_is_permitted() 258 if (prop_string_equals_string(pstr, cf->cf_name)) { in iic_indirect_driver_is_permitted() 275 prop_string_t pstr; in iic_search() local 288 pstr = prop_dictionary_get(device_properties(sc->sc_dev), in iic_search() 290 if (pstr == NULL) { in iic_search() 292 } else if (prop_string_equals_string(pstr, in iic_search() 295 } else if (prop_string_equals_string(pstr, in iic_search() 298 } else if (prop_string_equals_string(pstr, in iic_search() 304 prop_string_value(pstr), in iic_search() [all...] |
| /netbsd-src/external/bsd/unbound/dist/testcode/ |
| H A D | testpkts.c | 1251 char* qstr, *pstr, *s, *qcmpstr, *pcmpstr; in match_question() local 1265 pstr = sldns_wire2str_pkt(pb, plen); in match_question() 1266 if(!qstr || !pstr) error("cannot pkt2string"); in match_question() 1271 s = strstr(pstr, ";; QUESTION SECTION"); in match_question() 1275 free(pstr); in match_question() 1282 free(pstr); in match_question() 1308 free(pstr); in match_question() 1318 char* qstr, *pstr, *s, *qcmpstr, *pcmpstr; in match_answer() local 1332 pstr = sldns_wire2str_pkt(pb, plen); in match_answer() 1333 if(!qstr || !pstr) error("cannot pkt2string"); in match_answer() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/dsa/ |
| H A D | dsa_backend.c | 130 const ASN1_STRING *pstr; in ossl_dsa_key_from_pkcs8() local 148 pstr = pval; in ossl_dsa_key_from_pkcs8() 149 pm = pstr->data; in ossl_dsa_key_from_pkcs8() 150 pmlen = pstr->length; in ossl_dsa_key_from_pkcs8()
|
| H A D | dsa_ameth.c | 35 const ASN1_STRING *pstr; in dsa_pub_decode() local 46 pstr = pval; in dsa_pub_decode() 47 pm = pstr->data; in dsa_pub_decode() 48 pmlen = pstr->length; in dsa_pub_decode()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/ec/ |
| H A D | ec_ameth.c | 52 ASN1_STRING *pstr = NULL; in eckey_param2type() local 53 pstr = ASN1_STRING_new(); in eckey_param2type() 54 if (pstr == NULL) in eckey_param2type() 56 pstr->length = i2d_ECParameters(ec_key, &pstr->data); in eckey_param2type() 57 if (pstr->length <= 0) { in eckey_param2type() 58 ASN1_STRING_free(pstr); in eckey_param2type() 62 *ppval = pstr; in eckey_param2type()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/dsa/ |
| H A D | dsa_ameth.c | 26 const ASN1_STRING *pstr; in dsa_pub_decode() local 37 pstr = pval; in dsa_pub_decode() 38 pm = pstr->data; in dsa_pub_decode() 39 pmlen = pstr->length; in dsa_pub_decode() 143 const ASN1_STRING *pstr; in dsa_priv_decode() local 161 pstr = pval; in dsa_priv_decode() 162 pm = pstr->data; in dsa_priv_decode() 163 pmlen = pstr->length; in dsa_priv_decode()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/ec/ |
| H A D | ec_ameth.c | 49 ASN1_STRING *pstr = NULL; in eckey_param2type() local 50 pstr = ASN1_STRING_new(); in eckey_param2type() 51 if (pstr == NULL) in eckey_param2type() 63 pstr->length = i2d_ECParameters((EC_KEY *)ec_key, &pstr->data); in eckey_param2type() 64 if (pstr->length <= 0) { in eckey_param2type() 65 ASN1_STRING_free(pstr); in eckey_param2type() 69 *ppval = pstr; in eckey_param2type() 115 const ASN1_STRING *pstr = pval; in eckey_type2param() local 116 const unsigned char *pm = pstr->data; in eckey_type2param() 117 int pmlen = pstr->length; in eckey_type2param()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/dh/ |
| H A D | dh_backend.c | 194 const ASN1_STRING *pstr; in ossl_dh_key_from_pkcs8() local 210 pstr = pval; in ossl_dh_key_from_pkcs8() 211 pm = pstr->data; in ossl_dh_key_from_pkcs8() 212 pmlen = pstr->length; in ossl_dh_key_from_pkcs8()
|
| /netbsd-src/external/gpl3/binutils/dist/opcodes/ |
| H A D | nds32-asm.c | 1888 struct nds32_asm_insn *pinsn, char **pstr, int64_t *value) in parse_re() argument 1890 char *end = *pstr; in parse_re() 1914 *pstr = end; in parse_re() 1923 char **pstr, int64_t *value) in parse_re2() argument 1925 char *end = *pstr; in parse_re2() 1956 *pstr = end; in parse_re2() 1964 char **pstr, int64_t *value) in parse_fe5() argument 1968 r = pdesc->parse_operand (pdesc, pinsn, pstr, value); in parse_fe5() 1982 char **pstr, int64_t *value) in parse_pi5() argument 1986 r = pdesc->parse_operand (pdesc, pinsn, pstr, value); in parse_pi5() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/opcodes/ |
| H A D | nds32-asm.c | 1888 struct nds32_asm_insn *pinsn, char **pstr, int64_t *value) in parse_re() argument 1890 char *end = *pstr; in parse_re() 1914 *pstr = end; in parse_re() 1923 char **pstr, int64_t *value) in parse_re2() argument 1925 char *end = *pstr; in parse_re2() 1956 *pstr = end; in parse_re2() 1964 char **pstr, int64_t *value) in parse_fe5() argument 1968 r = pdesc->parse_operand (pdesc, pinsn, pstr, value); in parse_fe5() 1982 char **pstr, int64_t *value) in parse_pi5() argument 1986 r = pdesc->parse_operand (pdesc, pinsn, pstr, value); in parse_pi5() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/ |
| H A D | encode_key2any.c | 444 void **pstr, int *pstrtype) in prepare_dh_params() argument 465 *pstr = params; in prepare_dh_params() 548 void **pstr, int *pstrtype) in encode_dsa_params() argument 566 *pstr = params; in encode_dsa_params() 571 void **pstr, int *pstrtype) in prepare_dsa_params() argument 578 return encode_dsa_params(dsa, nid, pstr, pstrtype); in prepare_dsa_params() 580 *pstr = NULL; in prepare_dsa_params() 643 void **pstr, int *pstrtype) in prepare_ec_explicit_params() argument 660 *pstr = params; in prepare_ec_explicit_params() 669 void **pstr, int *pstrtype) in prepare_ec_params() argument [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libquadmath/printf/ |
| H A D | quadmath-printf.c | 30 read_int (const char **pstr) in read_int() argument 32 unsigned int retval = (unsigned char) **pstr - '0'; in read_int() 34 while (isdigit ((unsigned char) *++(*pstr))) in read_int() 37 retval += (unsigned char) **pstr - '0'; in read_int()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libquadmath/printf/ |
| H A D | quadmath-printf.c | 30 read_int (const char **pstr) in read_int() argument 32 unsigned int retval = (unsigned char) **pstr - '0'; in read_int() 34 while (isdigit ((unsigned char) *++(*pstr))) in read_int() 37 retval += (unsigned char) **pstr - '0'; in read_int()
|
| /netbsd-src/external/bsd/blocklist/bin/ |
| H A D | conf.c | 241 const char *pstr; in conf_gethostport() local 251 pstr = d; in conf_gethostport() 254 pstr = p; in conf_gethostport() 256 if (conf_getmask(f, l, local, &pstr, &c->c_lmask) == -1) in conf_gethostport() 272 if (!*pstr) in conf_gethostport() 273 pstr = "*"; in conf_gethostport() 274 } else if (pstr != p || strchr(p, '.') || conf_is_interface(p)) { in conf_gethostport() 275 if (pstr == p) in conf_gethostport() 276 pstr = "*"; in conf_gethostport() 309 if (conf_getport(f, l, local, &c->c_port, pstr) == -1) in conf_gethostport()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/dh/ |
| H A D | dh_ameth.c | 51 const ASN1_STRING *pstr; in dh_pub_decode() local 66 pstr = pval; in dh_pub_decode() 67 pm = pstr->data; in dh_pub_decode() 68 pmlen = pstr->length; in dh_pub_decode() 156 const ASN1_STRING *pstr; in dh_priv_decode() local 172 pstr = pval; in dh_priv_decode() 173 pm = pstr->data; in dh_priv_decode() 174 pmlen = pstr->length; in dh_priv_decode()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/rands/ |
| H A D | drbg_hmac.c | 125 const unsigned char *pstr, size_t pstr_len) in drbg_hmac_instantiate() argument 139 return drbg_hmac_update(drbg, ent, ent_len, nonce, nonce_len, pstr, in drbg_hmac_instantiate() 145 const unsigned char *pstr, in drbg_hmac_instantiate_wrapper() argument 154 pstr, pstr_len); in drbg_hmac_instantiate_wrapper()
|
| H A D | drbg_hash.c | 251 const unsigned char *pstr, size_t pstr_len) in drbg_hash_instantiate() argument 261 ent, ent_len, nonce, nonce_len, pstr, pstr_len) in drbg_hash_instantiate() 268 const unsigned char *pstr, in drbg_hash_instantiate_wrapper() argument 277 pstr, pstr_len); in drbg_hash_instantiate_wrapper()
|
| /netbsd-src/sbin/ifconfig/ |
| H A D | media.c | 59 static struct pstr mediamode = PSTR_INITIALIZER1(&mediamode, "mediamode", 66 static struct pstr unmediaopt = PSTR_INITIALIZER1(&unmediaopt, "-mediaopt", 69 static struct pstr mediaopt = PSTR_INITIALIZER1(&mediaopt, "mediaopt", 72 static struct pstr media = PSTR_INITIALIZER1(&media, "media", setmedia, "media",
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/x509v3/ |
| H A D | v3_cpols.c | 92 char *pstr; 121 pstr = cnf->name; 122 if (strcmp(pstr, "ia5org") == 0) { 125 } else if (*pstr == '@') { 127 polsect = X509V3_get_section(ctx, pstr + 1);
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/x509/ |
| H A D | v3_cpols.c | 93 char *pstr; 120 pstr = cnf->name; 121 if (strcmp(pstr, "ia5org") == 0) { 124 } else if (*pstr == '@') { 127 polsect = X509V3_get_section(ctx, pstr + 1);
|
| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/ |
| H A D | utf.d | 1346 auto pstr = str.ptr + index; // this is what makes decodeImpl() @system code variable 1348 auto pstr = str[index .. str.length]; variable 1350 alias pstr = str; variable 1358 ubyte fst = pstr[0]; 1362 ubyte fst = pstr.front; 1363 pstr.popFront(); 1387 return exception(pstr[0 .. length], "Invalid UTF-8 sequence"); in invalidUTF() 1404 return exception(pstr[0 .. length], "Attempted to decode past the end of a string"); in outOfBounds() 1442 if (pstr.empty) 1455 tmp = pstr[i]; [all …]
|