Searched refs:copylen (Results 1 – 9 of 9) sorted by relevance
/openbsd/lib/libcrypto/asn1/ |
H A D | bio_asn1.c | 105 int copylen; member 238 ctx->copylen = inl; in asn1_bio_write() 259 if (inl > ctx->copylen) in asn1_bio_write() 260 wrmax = ctx->copylen; in asn1_bio_write() 267 ctx->copylen -= ret; in asn1_bio_write() 271 if (ctx->copylen == 0) in asn1_bio_write()
|
/openbsd/sys/kern/ |
H A D | kern_descrip.c | 913 size_t copylen; in fdexpand() local 948 copylen = sizeof(struct file *) * fdp->fd_nfiles; in fdexpand() 949 memcpy(newofile, fdp->fd_ofiles, copylen); in fdexpand() 950 memset((char *)newofile + copylen, 0, in fdexpand() 951 nfiles * sizeof(struct file *) - copylen); in fdexpand() 952 copylen = sizeof(char) * fdp->fd_nfiles; in fdexpand() 954 memset(newofileflags + copylen, 0, nfiles * sizeof(char) - copylen); in fdexpand() 958 memcpy(newhimap, fdp->fd_himap, copylen); in fdexpand() 959 memset((char *)newhimap + copylen, 0, in fdexpand() 963 memcpy(newlomap, fdp->fd_lomap, copylen); in fdexpand() [all …]
|
/openbsd/gnu/gcc/gcc/ |
H A D | c-lex.c | 641 size_t copylen; in interpret_float() local 670 copylen = token->val.str.len; in interpret_float() 672 copylen -= 2; in interpret_float() 677 copylen--; in interpret_float() 680 copylen--; in interpret_float() 683 copy = (char *) alloca (copylen + 1); in interpret_float() 684 memcpy (copy, token->val.str.text, copylen); in interpret_float() 685 copy[copylen] = '\0'; in interpret_float()
|
/openbsd/gnu/usr.bin/gcc/gcc/ |
H A D | c-lex.c | 896 size_t copylen; local 920 copylen = token->val.str.len; 923 copylen--; 926 copylen--; 928 copy = alloca (copylen + 1); 929 memcpy (copy, token->val.str.text, copylen); 930 copy[copylen] = '\0';
|
/openbsd/usr.bin/sendbug/ |
H A D | sendbug.c | 439 size_t copylen; in send_file() local 455 copylen = sp - buf; in send_file() 457 copylen = len; in send_file() 458 if (atomicio(vwrite, dst, buf, copylen) != copylen) in send_file()
|
/openbsd/sbin/unwind/libunbound/services/ |
H A D | listen_dnsport.c | 2421 size_t copylen = length; in http2_submit_response_read_callback() local 2436 if(copylen > sldns_buffer_remaining(h2_stream->rbuffer)) in http2_submit_response_read_callback() 2437 copylen = sldns_buffer_remaining(h2_stream->rbuffer); in http2_submit_response_read_callback() 2438 if(copylen > SSIZE_MAX) in http2_submit_response_read_callback() 2439 copylen = SSIZE_MAX; /* will probably never happen */ in http2_submit_response_read_callback() 2441 memcpy(buf, sldns_buffer_current(h2_stream->rbuffer), copylen); in http2_submit_response_read_callback() 2442 sldns_buffer_skip(h2_stream->rbuffer, copylen); in http2_submit_response_read_callback() 2454 return copylen; in http2_submit_response_read_callback()
|
/openbsd/usr.sbin/unbound/services/ |
H A D | listen_dnsport.c | 2421 size_t copylen = length; in http2_submit_response_read_callback() local 2436 if(copylen > sldns_buffer_remaining(h2_stream->rbuffer)) in http2_submit_response_read_callback() 2437 copylen = sldns_buffer_remaining(h2_stream->rbuffer); in http2_submit_response_read_callback() 2438 if(copylen > SSIZE_MAX) in http2_submit_response_read_callback() 2439 copylen = SSIZE_MAX; /* will probably never happen */ in http2_submit_response_read_callback() 2441 memcpy(buf, sldns_buffer_current(h2_stream->rbuffer), copylen); in http2_submit_response_read_callback() 2442 sldns_buffer_skip(h2_stream->rbuffer, copylen); in http2_submit_response_read_callback() 2454 return copylen; in http2_submit_response_read_callback()
|
/openbsd/usr.sbin/unbound/sldns/ |
H A D | str2wire.c | 493 size_t copylen; in rrinternal_parse_rdf() local 495 copylen = origin_len; in rrinternal_parse_rdf() 498 copylen = dname_len; in rrinternal_parse_rdf() 501 copylen = 1; in rrinternal_parse_rdf() 504 if((*rr_cur_len) + copylen > rr_len) in rrinternal_parse_rdf() 508 memmove(rr+*rr_cur_len, tocopy, copylen); in rrinternal_parse_rdf() 509 (*rr_cur_len) += copylen; in rrinternal_parse_rdf()
|
/openbsd/sbin/unwind/libunbound/sldns/ |
H A D | str2wire.c | 493 size_t copylen; in rrinternal_parse_rdf() local 495 copylen = origin_len; in rrinternal_parse_rdf() 498 copylen = dname_len; in rrinternal_parse_rdf() 501 copylen = 1; in rrinternal_parse_rdf() 504 if((*rr_cur_len) + copylen > rr_len) in rrinternal_parse_rdf() 508 memmove(rr+*rr_cur_len, tocopy, copylen); in rrinternal_parse_rdf() 509 (*rr_cur_len) += copylen; in rrinternal_parse_rdf()
|