Home
last modified time | relevance | path

Searched refs:tocopy (Results 1 – 11 of 11) sorted by relevance

/freebsd-12.1/lib/libc/stdio/
H A Dopen_memstream.c95 ssize_t tocopy; in memstream_write() local
100 tocopy = ms->len - ms->offset; in memstream_write()
101 if (len < tocopy) in memstream_write()
102 tocopy = len; in memstream_write()
103 memcpy(*ms->bufp + ms->offset, buf, tocopy); in memstream_write()
104 ms->offset += tocopy; in memstream_write()
107 fprintf(stderr, "MS: write(%p, %d) = %zd\n", ms, len, tocopy); in memstream_write()
109 return (tocopy); in memstream_write()
/freebsd-12.1/contrib/binutils/binutils/
H A Dar.c800 size_t tocopy = size - ncopied; in print_contents() local
801 if (tocopy > BUFSIZE) in print_contents()
802 tocopy = BUFSIZE; in print_contents()
805 if (nread != tocopy) in print_contents()
815 ncopied += tocopy; in print_contents()
835 size_t nread, tocopy; in extract_file() local
868 tocopy = size - ncopied; in extract_file()
869 if (tocopy > BUFSIZE) in extract_file()
870 tocopy = BUFSIZE; in extract_file()
873 if (nread != tocopy) in extract_file()
[all …]
H A Dobjcopy.c1250 int tocopy; in copy_unknown_object() local
1283 tocopy = size - ncopied; in copy_unknown_object()
1284 if (tocopy > BUFSIZE) in copy_unknown_object()
1285 tocopy = BUFSIZE; in copy_unknown_object()
1287 if (bfd_bread (cbuf, (bfd_size_type) tocopy, ibfd) in copy_unknown_object()
1288 != (bfd_size_type) tocopy) in copy_unknown_object()
1295 if (bfd_bwrite (cbuf, (bfd_size_type) tocopy, obfd) in copy_unknown_object()
1296 != (bfd_size_type) tocopy) in copy_unknown_object()
1303 ncopied += tocopy; in copy_unknown_object()
/freebsd-12.1/contrib/unbound/sldns/
H A Dsbuffer.c153 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()
H A Dstr2wire.c200 uint8_t* tocopy; in rrinternal_get_owner() local
203 tocopy = origin; in rrinternal_get_owner()
206 tocopy = prev; in rrinternal_get_owner()
210 tocopy = (uint8_t*)"\0"; in rrinternal_get_owner()
219 uint8_t* tocopy; in rrinternal_get_owner() local
222 tocopy = prev; in rrinternal_get_owner()
225 tocopy = origin; in rrinternal_get_owner()
228 tocopy = (uint8_t*)"\0"; in rrinternal_get_owner()
485 uint8_t* tocopy; in rrinternal_parse_rdf() local
489 tocopy = origin; in rrinternal_parse_rdf()
[all …]
/freebsd-12.1/contrib/ldns/
H A Dbuffer.c170 size_t tocopy = ldns_buffer_limit(from); in ldns_buffer_copy() local
172 if(tocopy > ldns_buffer_capacity(result)) in ldns_buffer_copy()
173 tocopy = ldns_buffer_capacity(result); in ldns_buffer_copy()
175 ldns_buffer_write(result, ldns_buffer_begin(from), tocopy); in ldns_buffer_copy()
/freebsd-12.1/sys/netinet/
H A Daccf_http.c320 int tocopy; in soishttpconnected() local
322 tocopy = (NCHRS - ccleft) - copied; in soishttpconnected()
323 src = mtod(m, char *) + (m->m_len - tocopy); in soishttpconnected()
325 while (tocopy--) { in soishttpconnected()
H A Dsctp_bsd_addr.c508 int tocopy, this_copy; in sctp_copy_out_packet_log() local
512 tocopy = length; in sctp_copy_out_packet_log()
/freebsd-12.1/contrib/libarchive/libarchive/
H A Darchive_read.c1325 size_t tocopy; in __archive_read_filter_ahead() local
1471 tocopy = (filter->buffer + filter->buffer_size) in __archive_read_filter_ahead()
1474 if (tocopy + filter->avail > min) in __archive_read_filter_ahead()
1475 tocopy = min - filter->avail; in __archive_read_filter_ahead()
1477 if (tocopy > filter->client_avail) in __archive_read_filter_ahead()
1478 tocopy = filter->client_avail; in __archive_read_filter_ahead()
1481 filter->client_next, tocopy); in __archive_read_filter_ahead()
1483 filter->client_next += tocopy; in __archive_read_filter_ahead()
1484 filter->client_avail -= tocopy; in __archive_read_filter_ahead()
1486 filter->avail += tocopy; in __archive_read_filter_ahead()
/freebsd-12.1/sys/kern/
H A Dkern_umtx.c3547 int count, error, i, pos, tocopy; in __umtx_op_nwake_private() local
3551 for (count = uap->val, pos = 0; count > 0; count -= tocopy, in __umtx_op_nwake_private()
3552 pos += tocopy) { in __umtx_op_nwake_private()
3553 tocopy = MIN(count, BATCH_SIZE); in __umtx_op_nwake_private()
3554 error = copyin(upp + pos, uaddrs, tocopy * sizeof(char *)); in __umtx_op_nwake_private()
3557 for (i = 0; i < tocopy; ++i) in __umtx_op_nwake_private()
4414 int count, error, i, pos, tocopy; in __umtx_op_nwake_private32() local
4418 for (count = uap->val, pos = 0; count > 0; count -= tocopy, in __umtx_op_nwake_private32()
4419 pos += tocopy) { in __umtx_op_nwake_private32()
4420 tocopy = MIN(count, BATCH_SIZE); in __umtx_op_nwake_private32()
[all …]
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzfs_vnops.c4637 size_t tocopy; in zfs_putpages() local
4719 for (i = 0; len > 0; off += tocopy, len -= tocopy, i++) { in zfs_putpages()
4720 tocopy = len > PAGE_SIZE ? PAGE_SIZE : len; in zfs_putpages()
4722 dmu_write(zfsvfs->z_os, zp->z_id, off, tocopy, va, tx); in zfs_putpages()