| /openbsd/src/gnu/usr.bin/binutils/binutils/ |
| D | ar.c | 835 int tocopy = size - ncopied; in print_contents() local 836 if (tocopy > BUFSIZE) in print_contents() 837 tocopy = BUFSIZE; in print_contents() 839 nread = bfd_bread (cbuf, (bfd_size_type) tocopy, abfd); in print_contents() 840 if (nread != tocopy) in print_contents() 845 ncopied += tocopy; in print_contents() 865 int nread, tocopy; in extract_file() local 902 tocopy = size - ncopied; in extract_file() 903 if (tocopy > BUFSIZE) in extract_file() 904 tocopy = BUFSIZE; in extract_file() [all …]
|
| /openbsd/src/sys/ntfs/ |
| D | ntfs_subr.c | 1357 size_t left, tocopy; in ntfs_readntvattr_plain() local 1393 tocopy = MIN(left, in ntfs_readntvattr_plain() 1395 cl = ntfs_btocl(tocopy + off); in ntfs_readntvattr_plain() 1397 tocopy <= ntfs_cntob(1)); in ntfs_readntvattr_plain() 1403 cn, cl, off, tocopy, left); in ntfs_readntvattr_plain() 1414 tocopy, uio); in ntfs_readntvattr_plain() 1419 tocopy); in ntfs_readntvattr_plain() 1422 data = data + tocopy; in ntfs_readntvattr_plain() 1423 *initp += tocopy; in ntfs_readntvattr_plain() 1425 left -= tocopy; in ntfs_readntvattr_plain() [all …]
|
| /openbsd/src/gnu/usr.bin/binutils-2.17/binutils/ |
| D | ar.c | 819 int tocopy = size - ncopied; in print_contents() local 820 if (tocopy > BUFSIZE) in print_contents() 821 tocopy = BUFSIZE; in print_contents() 823 nread = bfd_bread (cbuf, (bfd_size_type) tocopy, abfd); in print_contents() 824 if (nread != tocopy) in print_contents() 829 ncopied += tocopy; in print_contents() 849 int nread, tocopy; in extract_file() local 886 tocopy = size - ncopied; in extract_file() 887 if (tocopy > BUFSIZE) in extract_file() 888 tocopy = BUFSIZE; in extract_file() [all …]
|
| D | objcopy.c | 1167 int tocopy; in copy_unknown_object() local 1200 tocopy = size - ncopied; in copy_unknown_object() 1201 if (tocopy > BUFSIZE) in copy_unknown_object() 1202 tocopy = BUFSIZE; in copy_unknown_object() 1204 if (bfd_bread (cbuf, (bfd_size_type) tocopy, ibfd) in copy_unknown_object() 1205 != (bfd_size_type) tocopy) in copy_unknown_object() 1212 if (bfd_bwrite (cbuf, (bfd_size_type) tocopy, obfd) in copy_unknown_object() 1213 != (bfd_size_type) tocopy) in copy_unknown_object() 1220 ncopied += tocopy; in copy_unknown_object()
|
| /openbsd/src/sbin/unwind/libunbound/sldns/ |
| D | sbuffer.c | 153 size_t tocopy = sldns_buffer_limit(from); in sldns_buffer_copy() local 155 if(tocopy > sldns_buffer_capacity(result)) in sldns_buffer_copy() 156 tocopy = sldns_buffer_capacity(result); in sldns_buffer_copy() 158 sldns_buffer_write(result, sldns_buffer_begin(from), tocopy); in sldns_buffer_copy()
|
| D | str2wire.c | 201 uint8_t* tocopy; in rrinternal_get_owner() local 204 tocopy = origin; in rrinternal_get_owner() 207 tocopy = prev; in rrinternal_get_owner() 211 tocopy = (uint8_t*)"\0"; in rrinternal_get_owner() 216 memmove(rr, tocopy, *dname_len); in rrinternal_get_owner() 220 uint8_t* tocopy; in rrinternal_get_owner() local 223 tocopy = prev; in rrinternal_get_owner() 226 tocopy = origin; in rrinternal_get_owner() 229 tocopy = (uint8_t*)"\0"; in rrinternal_get_owner() 234 memmove(rr, tocopy, *dname_len); in rrinternal_get_owner() [all …]
|
| /openbsd/src/usr.sbin/unbound/sldns/ |
| D | sbuffer.c | 153 size_t tocopy = sldns_buffer_limit(from); in sldns_buffer_copy() local 155 if(tocopy > sldns_buffer_capacity(result)) in sldns_buffer_copy() 156 tocopy = sldns_buffer_capacity(result); in sldns_buffer_copy() 158 sldns_buffer_write(result, sldns_buffer_begin(from), tocopy); in sldns_buffer_copy()
|
| D | str2wire.c | 201 uint8_t* tocopy; in rrinternal_get_owner() local 204 tocopy = origin; in rrinternal_get_owner() 207 tocopy = prev; in rrinternal_get_owner() 211 tocopy = (uint8_t*)"\0"; in rrinternal_get_owner() 216 memmove(rr, tocopy, *dname_len); in rrinternal_get_owner() 220 uint8_t* tocopy; in rrinternal_get_owner() local 223 tocopy = prev; in rrinternal_get_owner() 226 tocopy = origin; in rrinternal_get_owner() 229 tocopy = (uint8_t*)"\0"; in rrinternal_get_owner() 234 memmove(rr, tocopy, *dname_len); in rrinternal_get_owner() [all …]
|
| /openbsd/src/usr.bin/rsync/ |
| D | downloader.c | 227 size_t rem, tocopy; in buf_copy() local 243 tocopy = rem < sz ? rem : sz; in buf_copy() 244 memcpy(p->obuf + p->obufsz, buf, tocopy); in buf_copy() 245 sz -= tocopy; in buf_copy() 246 buf += tocopy; in buf_copy() 247 p->obufsz += tocopy; in buf_copy()
|
| /openbsd/src/sys/dev/ic/ |
| D | wdc.c | 223 int nb, tocopy; in wdc_get_log() local 237 tocopy = log_size; in wdc_get_log() 238 if ((u_int)tocopy > *size) in wdc_get_log() 239 tocopy = *size; in wdc_get_log() 257 retbuf = malloc(tocopy, M_TEMP, M_NOWAIT); in wdc_get_log() 273 if ((nb + rec_size) >= tocopy) in wdc_get_log()
|