/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/ |
H A D | memset-3.c | 59 int len; in main() local 63 for (len = 0; len < MAX_COPY; len++) in main() 73 check (0, len, 'A'); in main() 77 check (0, len, 'B'); in main() 81 for (len = 0; len < MAX_COPY; len++) in main() 99 for (len = 0; len < MAX_COPY; len++) in main() 117 for (len = 0; len < MAX_COPY; len++) in main() 135 for (len = 0; len < MAX_COPY; len++) in main() 153 for (len = 0; len < MAX_COPY; len++) in main() 171 for (len = 0; len < MAX_COPY; len++) in main() [all …]
|
/openbsd/libexec/tradcpp/ |
H A D | utils.c | 58 size_t len; member 79 bothdr->len = len; in placeheaders() 83 tophdr->len = len; in placeheaders() 104 assert(bothdr->len == len); in checkheaders() 107 assert(tophdr->len == len); in checkheaders() 113 #define adjustsize(len) (len) argument 114 #define placeheaders(block, len) ((void)(len), (block)) argument 115 #define checkheaders(ptr, len) ((void)(len), (ptr)) argument 170 size_t len; in dostrdup() local 182 size_t len; in dostrdup2() local [all …]
|
/openbsd/usr.sbin/ikectl/ |
H A D | ikeca.c | 140 if (len < 0 || (size_t)len >= sizeof(path)) in ca_key_create() 168 if (len < 0 || (size_t)len >= sizeof(dst)) in ca_key_import() 184 if (len < 0 || (size_t)len >= sizeof(path)) in ca_key_delete() 198 if (len < 0 || (size_t)len >= sizeof(file)) in ca_delkey() 203 if (len < 0 || (size_t)len >= sizeof(file)) in ca_delkey() 208 if (len < 0 || (size_t)len >= sizeof(file)) in ca_delkey() 213 if (len < 0 || (size_t)len >= sizeof(file)) in ca_delkey() 251 if (len < 0 || (size_t)len >= sizeof(key)) in ca_request() 296 if (len < 0 || (size_t)len >= sizeof(out)) in ca_sign() 299 if (len < 0 || (size_t)len >= sizeof(in)) in ca_sign() [all …]
|
/openbsd/regress/usr.sbin/relayd/ |
H A D | funcs.pl | 55 my $len = 0; 67 $len += $n; 69 return $len; 112 my $len = shift // $self->{len} // 251; 136 if ($len) { 154 my $len = shift // $self->{len} // 251; 198 my $path = ref($len) eq 'ARRAY' ? join("/", @$len) : $len; 294 my $len; 415 my $len; 427 $len = [ $len, @chunks ] if @chunks; [all …]
|
/openbsd/regress/lib/libradius/ |
H A D | test01.c | 11 size_t len; in test01() local 39 len = sizeof(buf); in test01() 44 len = sizeof(buf); in test01() 59 len = 2; in test01() 61 CHECK(len == 2); in test01() 64 len = 2; in test01() 66 CHECK(len == 2); in test01() 74 len = 0; in test01() 76 CHECK(len == 4); in test01() 79 len = 0; in test01() [all …]
|
/openbsd/usr.sbin/tcpdump/ |
H A D | print-stp.c | 109 len -= 3; in stp_print() 130 len -= 3; in stp_print() 164 len -= 1; in stp_print_cbpdu() 198 len -= 1; in stp_print_cbpdu() 205 len -= 2; in stp_print_cbpdu() 209 len--; in stp_print_cbpdu() 217 len -= 4; in stp_print_cbpdu() 224 len -= 2; in stp_print_cbpdu() 228 len--; in stp_print_cbpdu() 247 len -= 2; in stp_print_cbpdu() [all …]
|
H A D | print-ip.c | 164 if (len != 8) in igmp_print() 169 if (len != 8) in igmp_print() 180 if (len < 8) in igmp_print() 211 if (len & 1) in igmp_print() 231 u_int len; in ip_printroute() local 240 for (len = 3; len < length; len += 4) { in ip_printroute() 241 if (ptr == len) in ip_printroute() 255 u_int len; in ip_optprint() local 258 for (; length > 0; cp += len, length -= len) { in ip_optprint() 367 len = length; in ip_print() [all …]
|
H A D | print-ipsec.c | 70 int i, klen, len; in esp_init() local 75 len = p - espspec; in esp_init() 79 name[len] = '\0'; in esp_init() 153 len -= espauthlen; in esp_decrypt() 159 len -= blocksz; in esp_decrypt() 166 nh = data[len - 1]; in esp_decrypt() 167 pad = data[len - 2]; in esp_decrypt() 170 if (pad + 2 > len) in esp_decrypt() 176 len -= (pad + 2); in esp_decrypt() 239 u_int pl_len = len; in ah_print() [all …]
|
H A D | print-dvmrp.c | 94 len -= 8; in dvmrp_print() 163 while (len > 0) { in print_report() 164 if (len < 3) { in print_report() 179 len -= 3; in print_report() 200 len -= width + 1; in print_report() 220 len -= 4; in print_probe() 229 len -= 4; in print_probe() 251 len -= 7; in print_neighbors() 257 len -= 4; in print_neighbors() 283 len -= 8; in print_neighbors2() [all …]
|
/openbsd/usr.bin/dig/lib/isc/ |
H A D | hmacsha.c | 34 unsigned int len) in isc_hmacsha1_init() argument 52 unsigned int len) in isc_hmacsha1_update() argument 66 memmove(digest, newdigest, len); in isc_hmacsha1_sign() 72 unsigned int len) in isc_hmacsha224_init() argument 90 unsigned int len) in isc_hmacsha224_update() argument 110 unsigned int len) in isc_hmacsha256_init() argument 128 unsigned int len) in isc_hmacsha256_update() argument 148 unsigned int len) in isc_hmacsha384_init() argument 166 unsigned int len) in isc_hmacsha384_update() argument 186 unsigned int len) in isc_hmacsha512_init() argument [all …]
|
/openbsd/usr.sbin/smtpd/ |
H A D | envelope.c | 68 size_t len; in envelope_buffer_to_dict() local 77 len = strcspn(buf, "\n"); in envelope_buffer_to_dict() 78 buf[len] = '\0'; in envelope_buffer_to_dict() 79 nextline = buf + len + 1; in envelope_buffer_to_dict() 265 if (strlcpy(dest, buf, len) >= len) in ascii_load_string() 555 (void)strlcat(buf, " ", len); in ascii_dump_flags() 560 (void)strlcat(buf, " ", len); in ascii_dump_flags() 565 return cpylen < len ? 1 : 0; in ascii_dump_flags() 601 return cpylen < len ? 1 : 0; in ascii_dump_dsn_ret() 606 char *buf, size_t len) in ascii_dump_field() argument [all …]
|
/openbsd/usr.bin/ssh/ |
H A D | sshbuf-getput-basic.c | 186 size_t len; in sshbuf_get_string() local 205 *lenp = len; in sshbuf_get_string() 212 size_t len; in sshbuf_get_string_direct() local 225 *lenp = len; in sshbuf_get_string_direct() 262 *lenp = len; in sshbuf_peek_string_direct() 269 size_t len; in sshbuf_get_cstring() local 358 int r, len; in sshbuf_putfv() local 546 size_t len; in sshbuf_froms() local 578 for (; len > 0 && *s == 0; len--, s++) in sshbuf_put_bignum2_bytes() 605 len = olen; in sshbuf_get_bignum2_bytes_direct() [all …]
|
/openbsd/usr.sbin/unbound/sldns/ |
H A D | str2wire.h | 62 int sldns_str2wire_dname_buf(const char* str, uint8_t* buf, size_t* len); 83 uint8_t* sldns_str2wire_dname(const char* str, size_t* len); 104 int sldns_str2wire_rr_buf(const char* str, uint8_t* rr, size_t* len, 298 int sldns_str2wire_rdf_buf(const char* str, uint8_t* rd, size_t* len, 335 int sldns_str2wire_a_buf(const char* str, uint8_t* rd, size_t* len); 353 int sldns_str2wire_str_buf(const char* str, uint8_t* rd, size_t* len); 362 int sldns_str2wire_apl_buf(const char* str, uint8_t* rd, size_t* len); 371 int sldns_str2wire_b64_buf(const char* str, uint8_t* rd, size_t* len); 390 int sldns_str2wire_hex_buf(const char* str, uint8_t* rd, size_t* len); 435 int sldns_str2wire_alg_buf(const char* str, uint8_t* rd, size_t* len); [all …]
|
/openbsd/sbin/unwind/libunbound/sldns/ |
H A D | str2wire.h | 62 int sldns_str2wire_dname_buf(const char* str, uint8_t* buf, size_t* len); 83 uint8_t* sldns_str2wire_dname(const char* str, size_t* len); 104 int sldns_str2wire_rr_buf(const char* str, uint8_t* rr, size_t* len, 298 int sldns_str2wire_rdf_buf(const char* str, uint8_t* rd, size_t* len, 335 int sldns_str2wire_a_buf(const char* str, uint8_t* rd, size_t* len); 353 int sldns_str2wire_str_buf(const char* str, uint8_t* rd, size_t* len); 362 int sldns_str2wire_apl_buf(const char* str, uint8_t* rd, size_t* len); 371 int sldns_str2wire_b64_buf(const char* str, uint8_t* rd, size_t* len); 390 int sldns_str2wire_hex_buf(const char* str, uint8_t* rd, size_t* len); 435 int sldns_str2wire_alg_buf(const char* str, uint8_t* rd, size_t* len); [all …]
|
/openbsd/regress/usr.sbin/httpd/tests/ |
H A D | funcs.pl | 56 my $len = shift // $self->{len} // 512; 75 if ($len) { 93 my $len = shift // $self->{len} // 512; 137 my $path = ref($len) eq 'ARRAY' ? join("/", @$len) : $len; 210 $len = $1; 242 my $len; 251 $len = hex; 279 my $len = 0; 346 my $len = 0; 359 $len += $n; [all …]
|
/openbsd/gnu/usr.bin/binutils-2.17/gas/ |
H A D | sb.c | 89 ptr->len = 0; in sb_build() 115 memcpy (ptr->ptr + ptr->len, s->ptr, s->len); in sb_add_sb() 116 ptr->len += s->len; in sb_add_sb() 145 ptr->len += do_scrub_chars (scrub_from_sb, ptr->ptr + ptr->len, s->len); in sb_scrub_and_add_sb() 157 if (ptr->len + len >= 1 << ptr->pot) in sb_check() 162 while (ptr->len + len >= 1 << pot) in sb_check() 195 memcpy (ptr->ptr + ptr->len, s, len); in sb_add_string() 196 ptr->len += len; in sb_add_string() 205 memcpy (ptr->ptr + ptr->len, s, len); in sb_add_buffer() 206 ptr->len += len; in sb_add_buffer() [all …]
|
/openbsd/usr.sbin/bgpd/ |
H A D | rde_attr.c | 189 if (oa->len > ob->len) in attr_diff() 267 a->len = len; in attr_alloc() 293 needle.len = len; in attr_lookup() 357 aspath->len = len; in aspath_get() 571 for (len = aspath->len; len > 0 && cnt > 0; in aspath_countlength() 613 for (len = aspath->len; len > 0 && cnt > 0; in aspath_countcopy() 649 for (len = aspath->len; len > 0; len -= seg_size, seg += seg_size) { in aspath_loopfree() 728 len = aspath->len; in aspath_match() 807 *len = asp->len; in aspath_prepend() 894 *len = asp->len; in aspath_override() [all …]
|
/openbsd/lib/libfido2/src/ |
H A D | aes256.c | 19 if (key->len != 32) { in aes256_cbc() 23 if (in->len > UINT_MAX || in->len % 16 || in->len == 0) { in aes256_cbc() 27 out->len = in->len; in aes256_cbc() 75 secret->len); in aes256_cbc_fips() 91 cin.len = in->len - sizeof(iv); in aes256_cbc_fips() 94 key.len = secret->len - 32; in aes256_cbc_fips() 103 out->len = sizeof(iv) + cout.len; in aes256_cbc_fips() 125 if (nonce->len != 12 || key->len != 32 || aad->len > UINT_MAX) { in aes256_gcm() 127 nonce->len, key->len, aad->len); in aes256_gcm() 130 if (in->len > UINT_MAX || in->len > SIZE_MAX - 16 || in->len < 16) { in aes256_gcm() [all …]
|
/openbsd/lib/libssl/ |
H A D | bs_cbs.c | 29 cbs->len = len; in CBS_init() 47 cbs->len -= n; in cbs_get() 141 if (len != cbs->len) in CBS_mem_equal() 154 if (len < 1 || len > 4) in cbs_get_u() 228 cbs->len--; in CBS_get_last_u8() 247 uint32_t len; in cbs_get_length_prefixed() local 280 if (len < 1 || len > 4) in cbs_peek_u() 364 size_t len; in cbs_get_any_asn1_element_internal() local 430 len = len32; in cbs_get_any_asn1_element_internal() 431 if (len + 2 + num_bytes < len) in cbs_get_any_asn1_element_internal() [all …]
|
H A D | tls_buffer.c | 30 size_t len; member 64 buf->len = 0; in tls_buffer_clear() 134 if (len == buf->len) in tls_buffer_extend() 135 return buf->len; in tls_buffer_extend() 137 if (len < buf->len) in tls_buffer_extend() 151 buf->len += ret; in tls_buffer_extend() 154 return buf->len; in tls_buffer_extend() 199 buf->len = 0; in tls_buffer_write() 216 buf->len += n; in tls_buffer_write() 249 *out_len = buf->len; in tls_buffer_finish() [all …]
|
/openbsd/lib/libcrypto/bytestring/ |
H A D | bs_cbs.c | 29 cbs->len = len; in CBS_init() 47 cbs->len -= n; in cbs_get() 141 if (len != cbs->len) in CBS_mem_equal() 154 if (len < 1 || len > 4) in cbs_get_u() 228 cbs->len--; in CBS_get_last_u8() 247 uint32_t len; in cbs_get_length_prefixed() local 280 if (len < 1 || len > 4) in cbs_peek_u() 364 size_t len; in cbs_get_any_asn1_element_internal() local 430 len = len32; in cbs_get_any_asn1_element_internal() 431 if (len + 2 + num_bytes < len) in cbs_get_any_asn1_element_internal() [all …]
|
/openbsd/usr.bin/sort/ |
H A D | bwstring.c | 55 size_t len; in initialise_months() local 99 m[len] = L'\0'; in initialise_months() 172 if (bws && newlen != bws->len && newlen <= bws->len) { in bws_setlen() 197 ret->len = sz; in bwsalloc() 327 dst->len = nums; in bwscpy() 356 dst->len = nums; in bwsncpy() 383 dst->len = 0; in bwsnocpy() 414 size_t len = bws->len; in bwsfwrite() local 483 --(*len); in bwsfgetln() 499 --(*len); in bwsfgetln() [all …]
|
/openbsd/usr.bin/vi/common/ |
H A D | msg.c | 123 mp += len; in msgq() 135 mp += len; in msgq() 140 mp += len; in msgq() 147 len = 0; in msgq() 163 mp += len; in msgq() 304 p += len; in mod_rpt() 360 p += len; in msgq_status() 390 p += len; in msgq_status() 406 p += len; in msgq_status() 416 p += len; in msgq_status() [all …]
|
/openbsd/gnu/usr.bin/binutils/gas/ |
H A D | sb.c | 94 ptr->len = 0; in sb_build() 120 memcpy (ptr->ptr + ptr->len, s->ptr, s->len); in sb_add_sb() 121 ptr->len += s->len; in sb_add_sb() 130 if (ptr->len + len >= 1 << ptr->pot) in sb_check() 134 while (ptr->len + len >= 1 << pot) in sb_check() 148 ptr->len = 0; in sb_reset() 167 memcpy (ptr->ptr + ptr->len, s, len); in sb_add_string() 168 ptr->len += len; in sb_add_string() 177 memcpy (ptr->ptr + ptr->len, s, len); in sb_add_buffer() 178 ptr->len += len; in sb_add_buffer() [all …]
|
/openbsd/gnu/usr.bin/perl/ |
H A D | pp_pack.c | 504 len = len - star; in S_measure_struct() 516 len = (len + 7)/8; in S_measure_struct() 521 len = (len + 1)/2; in S_measure_struct() 1017 len = (s - strbeg) % len; in S_unpack_rec() 1167 for (len = 0; len < ai32; len++) { in S_unpack_rec() 1178 for (len = 0; len < ai32; len++) { in S_unpack_rec() 1206 for (len = 0; len < ai32; len++) { in S_unpack_rec() 1218 for (len = 0; len < ai32; len++) { in S_unpack_rec() 2235 len = -len; in S_pack_rec() 2242 len = -len; in S_pack_rec() [all …]
|