/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/buffer/ |
H A D | buffer.c | 97 int BUF_MEM_grow(BUF_MEM *str, size_t len) argument 102 if (str->length >= len) 104 str->length=len; 105 return(len); 107 if (str->max >= len) 109 memset(&str->data[str->length],0,len-str->length); 110 str->length=len; 111 return(len); 113 /* This limit is sufficient to ensure (len+3)/3*4 < 2**31 */ 114 if (len > LIMIT_BEFORE_EXPANSIO 139 BUF_MEM_grow_clean(BUF_MEM *str, size_t len) argument [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/pkg_install/dist/lib/ |
H A D | license.c | 86 hash_license(const char *license, size_t len) argument 90 for (hash = 0; *license && len; ++license, --len) 96 add_license_internal(const char *license, size_t len) argument 101 slot = hash_license(license, len); 103 new_license = malloc(len + 1); 104 memcpy(new_license, license, len); 105 new_license[len] = '\0'; 112 if (!memcmp(license_hash[slot][i], license, len) && 113 license_hash[slot][i][len] 151 acceptable_license_internal(const char *license, size_t len) argument 172 size_t len; local 189 size_t len; local [all...] |
/netbsd-6-1-5-RELEASE/lib/libbluetooth/ |
H A D | sdp_data.c | 155 size_t len; local 214 len = *ptr; 217 if (ptr + len > end) 220 ptr += len; 228 len = be16dec(ptr); 231 if (ptr + len > end) 234 ptr += len; 242 len = be32dec(ptr); 245 if (ptr + len > end) 248 ptr += len; 348 _sdp_putstr(int indent, const char *type, const uint8_t *str, size_t len) argument 375 size_t len; local [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/asn1/ |
H A D | der_get.c | 40 * which to read, from the left, `len' which means the maximum number 47 der_get_unsigned (const unsigned char *p, size_t len, argument 51 size_t oldlen = len; 53 if (len == sizeof(unsigned) + 1 && p[0] == 0) 55 else if (len > sizeof(unsigned)) 58 while (len--) 66 der_get_integer (const unsigned char *p, size_t len, argument 70 size_t oldlen = len; 72 if (len > sizeof(int)) 75 if (len > 86 der_get_length(const unsigned char *p, size_t len, size_t *val, size_t *size) argument 120 der_get_boolean(const unsigned char *p, size_t len, int *data, size_t *size) argument 133 der_get_general_string(const unsigned char *p, size_t len, heim_general_string *str, size_t *size) argument 165 der_get_utf8string(const unsigned char *p, size_t len, heim_utf8_string *str, size_t *size) argument 172 der_get_printable_string(const unsigned char *p, size_t len, heim_printable_string *str, size_t *size) argument 186 der_get_ia5_string(const unsigned char *p, size_t len, heim_ia5_string *str, size_t *size) argument 193 der_get_bmp_string(const unsigned char *p, size_t len, heim_bmp_string *data, size_t *size) argument 224 der_get_universal_string(const unsigned char *p, size_t len, heim_universal_string *data, size_t *size) argument 254 der_get_visible_string(const unsigned char *p, size_t len, heim_visible_string *str, size_t *size) argument 261 der_get_octet_string(const unsigned char *p, size_t len, heim_octet_string *data, size_t *size) argument 274 der_get_octet_string_ber(const unsigned char *p, size_t len, heim_octet_string *data, size_t *size) argument 343 der_get_heim_integer(const unsigned char *p, size_t len, heim_integer *data, size_t *size) argument 429 der_get_time(const unsigned char *p, size_t len, time_t *data, size_t *size) argument 450 der_get_generalized_time(const unsigned char *p, size_t len, time_t *data, size_t *size) argument 457 der_get_utctime(const unsigned char *p, size_t len, time_t *data, size_t *size) argument 464 der_get_oid(const unsigned char *p, size_t len, heim_oid *data, size_t *size) argument 512 der_get_tag(const unsigned char *p, size_t len, Der_class *class, Der_type *type, unsigned int *tag, size_t *size) argument 544 der_match_tag(const unsigned char *p, size_t len, Der_class class, Der_type type, unsigned int tag, size_t *size) argument 558 der_match_tag2(const unsigned char *p, size_t len, Der_class class, Der_type *type, unsigned int tag, size_t *size) argument 580 der_match_tag_and_length(const unsigned char *p, size_t len, Der_class class, Der_type *type, unsigned int tag, size_t *length_ret, size_t *size) argument 614 _heim_fix_dce(size_t reallen, size_t *len) argument 625 der_get_bit_string(const unsigned char *p, size_t len, heim_bit_string *data, size_t *size) argument [all...] |
/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/util/ |
H A D | netstring.c | 24 /* void netstring_put(stream, data, len) 27 /* ssize_t len; 29 /* void netstring_put_multi(stream, data, len, data, len, ..., 0) 32 /* ssize_t len; 41 /* VSTRING *netstring_memcpy(buf, data, len) 44 /* ssize_t len; 46 /* VSTRING *netstring_memcat(buf, data, len) 49 /* ssize_t len; 54 /* VSTRING *netstring_get_data(stream, buf, len) 193 ssize_t len = 0; local 219 netstring_get_data(VSTREAM *stream, VSTRING *buf, ssize_t len) argument 259 ssize_t len; local 270 netstring_put(VSTREAM *stream, const char *data, ssize_t len) argument 340 netstring_memcpy(VSTRING *buf, const char *src, ssize_t len) argument 350 netstring_memcat(VSTRING *buf, const char *src, ssize_t len) argument [all...] |
H A D | vstring.c | 11 /* VSTRING *vstring_alloc(len) 12 /* ssize_t len; 34 /* int VSTRING_SPACE(vp, len) 36 /* ssize_t len; 41 /* VSTRING *vstring_truncate(vp, len) 43 /* ssize_t len; 58 /* VSTRING *vstring_strncpy(vp, src, len) 61 /* ssize_t len; 67 /* VSTRING *vstring_strncat(vp, src, len) 70 /* ssize_t len; 330 vstring_buf_space(VBUF *bp, ssize_t len) argument 343 vstring_alloc(ssize_t len) argument 397 vstring_truncate(VSTRING *vp, ssize_t len) argument 427 vstring_strncpy(VSTRING *vp, const char *src, ssize_t len) argument 453 vstring_strncat(VSTRING *vp, const char *src, ssize_t len) argument 465 vstring_memcpy(VSTRING *vp, const char *src, ssize_t len) argument 470 memcpy(vstring_str(vp), src, len); local 477 vstring_memcat(VSTRING *vp, const char *src, ssize_t len) argument 480 memcpy(vstring_end(vp), src, len); local 500 vstring_insert(VSTRING *vp, ssize_t start, const char *buf, ssize_t len) argument 519 memcpy(vstring_str(vp) + start, buf, len); local 527 vstring_prepend(VSTRING *vp, const char *buf, ssize_t len) argument 543 memcpy(vstring_str(vp), buf, len); local 566 ssize_t len; local [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/isc/include/isc/ |
H A D | hmacsha.h | 82 unsigned int len); 89 unsigned int len); 92 isc_hmacsha1_sign(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len); 95 isc_hmacsha1_verify(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len); 100 unsigned int len); 107 unsigned int len); 110 isc_hmacsha224_sign(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len); 113 isc_hmacsha224_verify(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len); 118 unsigned int len); 125 unsigned int len); [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/lib/isc/include/isc/ |
H A D | hmacsha.h | 69 unsigned int len); 76 unsigned int len); 79 isc_hmacsha1_sign(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len); 82 isc_hmacsha1_verify(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len); 87 unsigned int len); 94 unsigned int len); 97 isc_hmacsha224_sign(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len); 100 isc_hmacsha224_verify(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len); 105 unsigned int len); 112 unsigned int len); [all...] |
/netbsd-6-1-5-RELEASE/external/cddl/osnet/dev/dtrace/ |
H A D | dtrace_clone.c | 38 size_t len; local 43 len = strlen(name); 45 if (len != 6 && len != 13) 51 if (len == 13 && bcmp(name,"dtrace/dtrace",13) != 0)
|
H A D | dtrace_sysctl.c | 42 size_t len = 0; 49 len += strlen(prov->dtpv_name) + 1; 53 if ((p_name = kmem_alloc(len, KM_SLEEP)) == NULL) 65 (void) strlcat(p_name, " ", len); 67 (void) strlcat(p_name, prov->dtpv_name, len); 77 error = sysctl_handle_string(oidp, p_name, len, req); 79 kmem_free(p_name, len);
|
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.c-torture/compile/ |
H A D | pr37056.c | 9 int off, len, i; local 13 for (len = 1; len < (10 * sizeof (long long)); len++) 19 : __builtin_memset (u.buf + off, '\0', len)));
|
/netbsd-6-1-5-RELEASE/lib/libc/ssp/ |
H A D | fgets_chk.c | 46 __fgets_chk(char * __restrict buf, int len, size_t slen, FILE *fp) argument 49 return fgets(buf, len, fp); 51 if (len >= 0 && (size_t)len > slen) 54 return fgets(buf, len, fp);
|
/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/global/ |
H A D | dsn_util.h | 40 #define DSN_UPDATE(dsn_buf, dsn, len) do { \ 41 if (len >= sizeof((dsn_buf).data)) \ 43 INT_SIZEOF((dsn_buf).data) - 1, dsn, len); \ 44 strncpy((dsn_buf).data, (dsn), (len)); \ 45 (dsn_buf).data[len] = 0; \
|
/netbsd-6-1-5-RELEASE/external/bsd/dhcpcd/dist/ |
H A D | duid.c | 51 size_t len = 0; local 58 len = hwaddr_aton(NULL, line); 59 if (len && len <= DUID_LEN) { 63 len = 0; 66 if (len) 67 return len; 91 len = p - duid; 92 x = fprintf(f, "%s\n", hwaddr_ntoa(duid, len)); 96 len [all...] |
/netbsd-6-1-5-RELEASE/usr.sbin/netgroup_mkdb/ |
H A D | str.c | 61 size_t len = strlen(str) + 1; local 64 buf->s_str = emalloc(len); 66 buf->s_str = erealloc(buf->s_str, buf->s_len + len + 72 memcpy(&buf->s_str[buf->s_len], str, len); 73 buf->s_len += len - 1; 83 size_t len = strlen(str) + 1; local 85 sptr = ptr = emalloc(buf->s_len + len + (del ? 2 : 1)); 90 memcpy(ptr, str, len); 93 memcpy(&ptr[len - 1], buf->s_str, buf->s_len + 1); 98 buf->s_len += del ? len [all...] |
/netbsd-6-1-5-RELEASE/bin/ps/ |
H A D | fmt.c | 22 int len, nlen; local 26 len = strlen(s) * 4 + 1; 27 if (len > maxlen) { 32 while (len > nlen) 40 len = strvis(v, s, VIS_TAB | VIS_NL | VIS_CSTYLE); 42 if (len > *leftp) { 46 *leftp -= len;
|
/netbsd-6-1-5-RELEASE/common/dist/zlib/contrib/infback9/ |
H A D | inftree9.c | 42 unsigned len; /* a code's length in bits */ local 111 for (len = 0; len <= MAXBITS; len++) 112 count[len] = 0; 128 for (len = 1; len <= MAXBITS; len++) { 130 left -= count[len]; 138 for (len [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/openpam/dist/lib/ |
H A D | openpam_get_option.c | 64 size_t len; local 71 len = strlen(option); 73 if (strncmp(cur->optv[i], option, len) == 0) { 74 if (cur->optv[i][len] == '\0') 75 RETURNS(&cur->optv[i][len]); 76 else if (cur->optv[i][len] == '=') 77 RETURNS(&cur->optv[i][len + 1]);
|
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libssp/ |
H A D | gets-chk.c | 74 size_t len = strlen (buf); local 75 if (len > 0 && buf[len - 1] == '\n') 76 --len; 77 if (len == slen) 79 memcpy (s, buf, len); 80 s[len] = '\0';
|
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/zlib/contrib/infback9/ |
H A D | inftree9.c | 40 unsigned len; /* a code's length in bits */ local 109 for (len = 0; len <= MAXBITS; len++) 110 count[len] = 0; 126 for (len = 1; len <= MAXBITS; len++) { 128 left -= count[len]; 136 for (len [all...] |
/netbsd-6-1-5-RELEASE/dist/dhcp/common/ |
H A D | inet.c | 52 if (addr.len > sizeof(addr.iabuf)) 54 if (addr.len != mask.len) 58 rv.len = 0; 61 if (addr.len != mask.len) 64 rv.len = addr.len; 65 for (i = 0; i < rv.len; i++) 84 if (subnet.len > sizeo [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/roken/ |
H A D | concat.c | 41 roken_concat (char *s, size_t len, ...) argument 46 va_start(args, len); 47 ret = roken_vconcat (s, len, args); 53 roken_vconcat (char *s, size_t len, va_list args) argument 60 if (n >= len) 64 len -= n; 75 size_t len = 0; local 80 len = 1; 84 if(max_len && len + n > max_len){ 88 q = realloc(p, len [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/lib/libdes/ |
H A D | oenc_writ.c | 78 int des_enc_write(int fd, const void *_buf, int len, argument 107 if (len > MAXWRITE) 110 for (i=0; i<len; i+=k) 113 ((len-i) > MAXWRITE)?MAXWRITE:(len-i),sched,iv); 124 l2n(len,p); 127 if (len < 8) 130 memcpy(shortbuf,buf,len); 138 rnum=((len+7)/8*8); /* round up to nearest eight */ 142 des_pcbc_encrypt(cp,&(outbuf[HDRSIZE]),(len< [all...] |
/netbsd-6-1-5-RELEASE/games/pig/ |
H A D | pig.c | 64 int len; local 77 for (len = 0; (ch = getchar()) != EOF;) { 79 if ((size_t)len >= sizeof(buf)) 81 buf[len++] = ch; 84 if (len != 0) { 85 pigout(buf, len); 86 len = 0; 94 pigout(buf, len) 96 int len; 103 for (i = 1; i < len [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/krb5/ |
H A D | n-fold.c | 38 rr13(unsigned char *buf, size_t len) argument 41 int bytes = (len + 7) / 8; 43 if(len == 0) 46 const int bits = 13 % len; 47 const int lbit = len % 8; 56 for(i = lbit; i < 8; i += len) 65 bb += len; 72 s2 = (len + 8 - s1) % 8; 85 add1(unsigned char *a, unsigned char *b, size_t len) argument 89 for(i = len 102 _krb5_n_fold(const void *str, size_t len, void *key, size_t size) argument [all...] |