Searched refs:tocopy (Results 1 - 10 of 10) sorted by relevance

/freebsd-13-stable/lib/libc/stdio/
H A Dopen_memstream.c95 ssize_t tocopy; local
100 tocopy = ms->len - ms->offset;
101 if (len < tocopy)
102 tocopy = len;
103 memcpy(*ms->bufp + ms->offset, buf, tocopy);
104 ms->offset += tocopy;
107 fprintf(stderr, "MS: write(%p, %d) = %zd\n", ms, len, tocopy);
109 return (tocopy);
/freebsd-13-stable/contrib/unbound/sldns/
H A Dsbuffer.c153 size_t tocopy = sldns_buffer_limit(from); local
155 if(tocopy > sldns_buffer_capacity(result))
156 tocopy = sldns_buffer_capacity(result);
158 sldns_buffer_write(result, sldns_buffer_begin(from), tocopy);
H A Dstr2wire.c200 uint8_t* tocopy; local
203 tocopy = origin;
206 tocopy = prev;
210 tocopy = (uint8_t*)"\0";
215 memmove(rr, tocopy, *dname_len);
219 uint8_t* tocopy; local
222 tocopy = prev;
225 tocopy = origin;
228 tocopy = (uint8_t*)"\0";
233 memmove(rr, tocopy, *dname_le
485 uint8_t* tocopy; local
[all...]
/freebsd-13-stable/contrib/ldns/
H A Dbuffer.c170 size_t tocopy = ldns_buffer_limit(from); local
172 if(tocopy > ldns_buffer_capacity(result))
173 tocopy = ldns_buffer_capacity(result);
175 ldns_buffer_write(result, ldns_buffer_begin(from), tocopy);
/freebsd-13-stable/sys/netinet/
H A Daccf_http.c307 int tocopy; local
309 tocopy = (NCHRS - ccleft) - copied;
310 src = mtod(m, char *) + (m->m_len - tocopy);
312 while (tocopy--) {
H A Dsctp_bsd_addr.c489 int tocopy, this_copy; local
493 tocopy = length;
/freebsd-13-stable/contrib/libarchive/libarchive/
H A Darchive_read.c1326 size_t tocopy; local
1472 tocopy = (filter->buffer + filter->buffer_size)
1475 if (tocopy + filter->avail > min)
1476 tocopy = min - filter->avail;
1478 if (tocopy > filter->client_avail)
1479 tocopy = filter->client_avail;
1482 filter->client_next, tocopy);
1484 filter->client_next += tocopy;
1485 filter->client_avail -= tocopy;
1487 filter->avail += tocopy;
[all...]
/freebsd-13-stable/sys/kern/
H A Dkern_umtx.c3537 int count, error, i, pos, tocopy; local
3541 for (count = uap->val, pos = 0; count > 0; count -= tocopy,
3542 pos += tocopy) {
3543 tocopy = MIN(count, BATCH_SIZE);
3544 error = copyin(upp + pos, uaddrs, tocopy * sizeof(char *));
3547 for (i = 0; i < tocopy; ++i) {
3559 int count, error, i, pos, tocopy; local
3563 for (count = uap->val, pos = 0; count > 0; count -= tocopy,
3564 pos += tocopy) {
3565 tocopy
[all...]
/freebsd-13-stable/sys/dev/qat/
H A Dqat.c1449 int buflen, osegs, tocopy; local
1469 tocopy = crp->crp_aad == NULL ?
1475 for (; osegs < ibufs->num_buffers && tocopy > 0; osegs++) {
1480 buflen = imin(ibuf->data_len_in_bytes, tocopy);
1482 tocopy -= buflen;
/freebsd-13-stable/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vnops_os.c4181 size_t tocopy; local
4267 for (i = 0; len > 0; off += tocopy, len -= tocopy, i++) {
4268 tocopy = len > PAGE_SIZE ? PAGE_SIZE : len;
4270 dmu_write(zfsvfs->z_os, zp->z_id, off, tocopy, va, tx);

Completed in 189 milliseconds