Home
last modified time | relevance | path

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

/freebsd-10-stable/lib/libc/stdio/
Dopen_memstream.c93 ssize_t tocopy; in memstream_write() local
98 tocopy = ms->len - ms->offset; in memstream_write()
99 if (len < tocopy) in memstream_write()
100 tocopy = len; in memstream_write()
101 memcpy(*ms->bufp + ms->offset, buf, tocopy); in memstream_write()
102 ms->offset += tocopy; in memstream_write()
105 fprintf(stderr, "MS: write(%p, %d) = %zd\n", ms, len, tocopy); in memstream_write()
107 return (tocopy); in memstream_write()
/freebsd-10-stable/contrib/binutils/binutils/
Dar.c800 size_t tocopy = size - ncopied; in print_contents() local
801 if (tocopy > BUFSIZE) in print_contents()
802 tocopy = BUFSIZE; in print_contents()
804 nread = bfd_bread (cbuf, (bfd_size_type) tocopy, abfd); 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()
[all …]
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-10-stable/contrib/unbound/sldns/
Dsbuffer.c171 size_t tocopy = sldns_buffer_limit(from); in sldns_buffer_copy() local
173 if(tocopy > sldns_buffer_capacity(result)) in sldns_buffer_copy()
174 tocopy = sldns_buffer_capacity(result); in sldns_buffer_copy()
176 sldns_buffer_write(result, sldns_buffer_begin(from), tocopy); in sldns_buffer_copy()
Dstr2wire.c191 uint8_t* tocopy; in rrinternal_get_owner() local
194 tocopy = origin; in rrinternal_get_owner()
197 tocopy = prev; in rrinternal_get_owner()
201 tocopy = (uint8_t*)"\0"; in rrinternal_get_owner()
206 memmove(rr, tocopy, *dname_len); in rrinternal_get_owner()
210 uint8_t* tocopy; in rrinternal_get_owner() local
213 tocopy = prev; in rrinternal_get_owner()
216 tocopy = origin; in rrinternal_get_owner()
219 tocopy = (uint8_t*)"\0"; in rrinternal_get_owner()
224 memmove(rr, tocopy, *dname_len); in rrinternal_get_owner()
[all …]
/freebsd-10-stable/contrib/ldns/
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-10-stable/sys/netinet/
Daccf_http.c317 int tocopy; in soishttpconnected() local
319 tocopy = (NCHRS - ccleft) - copied; in soishttpconnected()
320 src = mtod(m, char *) + (m->m_len - tocopy); in soishttpconnected()
322 while (tocopy--) { in soishttpconnected()
Dsctp_bsd_addr.c520 int tocopy, this_copy; in sctp_copy_out_packet_log() local
524 tocopy = length; in sctp_copy_out_packet_log()
/freebsd-10-stable/contrib/libarchive/libarchive/
Darchive_read.c1326 size_t tocopy; in __archive_read_filter_ahead() local
1472 tocopy = (filter->buffer + filter->buffer_size) in __archive_read_filter_ahead()
1475 if (tocopy + filter->avail > min) in __archive_read_filter_ahead()
1476 tocopy = min - filter->avail; in __archive_read_filter_ahead()
1478 if (tocopy > filter->client_avail) in __archive_read_filter_ahead()
1479 tocopy = filter->client_avail; in __archive_read_filter_ahead()
1482 filter->client_next, tocopy); in __archive_read_filter_ahead()
1484 filter->client_next += tocopy; in __archive_read_filter_ahead()
1485 filter->client_avail -= tocopy; in __archive_read_filter_ahead()
1487 filter->avail += tocopy; in __archive_read_filter_ahead()
/freebsd-10-stable/sys/kern/
Dkern_umtx.c3517 int tocopy; in __umtx_op_nwake_private() local
3522 tocopy = count; in __umtx_op_nwake_private()
3523 if (tocopy > BATCH_SIZE) in __umtx_op_nwake_private()
3524 tocopy = BATCH_SIZE; in __umtx_op_nwake_private()
3525 error = copyin(upp+pos, uaddrs, tocopy * sizeof(char *)); in __umtx_op_nwake_private()
3528 for (i = 0; i < tocopy; ++i) in __umtx_op_nwake_private()
3530 count -= tocopy; in __umtx_op_nwake_private()
3531 pos += tocopy; in __umtx_op_nwake_private()
3995 int tocopy; in __umtx_op_nwake_private32() local
4000 tocopy = count; in __umtx_op_nwake_private32()
[all …]
Duipc_syscalls.c1205 unsigned int tocopy; local
1208 tocopy = m->m_len;
1211 tocopy = len;
1215 ctlbuf, tocopy)) != 0)
1218 ctlbuf += tocopy;
1219 len -= tocopy;
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
Dzfs_vnops.c4663 size_t tocopy; in zfs_putpages() local
4745 for (i = 0; len > 0; off += tocopy, len -= tocopy, i++) { in zfs_putpages()
4746 tocopy = len > PAGE_SIZE ? PAGE_SIZE : len; in zfs_putpages()
4748 dmu_write(zfsvfs->z_os, zp->z_id, off, tocopy, va, tx); in zfs_putpages()