Home
last modified time | relevance | path

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

/dflybsd-src/lib/libc/stdio/
H A Dopen_memstream.c89 ssize_t tocopy; in memstream_write() local
94 tocopy = ms->len - ms->offset; in memstream_write()
95 if (len < tocopy) in memstream_write()
96 tocopy = len; in memstream_write()
97 memcpy(*ms->bufp + ms->offset, buf, tocopy); in memstream_write()
98 ms->offset += tocopy; in memstream_write()
101 fprintf(stderr, "MS: write(%p, %d) = %zd\n", ms, len, tocopy); in memstream_write()
103 return (tocopy); in memstream_write()
/dflybsd-src/sys/vfs/ntfs/
H A Dntfs_subr.c1378 size_t tocopy; in ntfs_writentvattr_plain() local
1423 tocopy = min(left, ntfs_cntob(1) - off); in ntfs_writentvattr_plain()
1424 cl = ntfs_btocl(tocopy + off); in ntfs_writentvattr_plain()
1425 KASSERT(cl == 1 && tocopy <= ntfs_cntob(1), in ntfs_writentvattr_plain()
1430 (u_int32_t) off, (u_int32_t) tocopy, in ntfs_writentvattr_plain()
1432 if (off == 0 && tocopy == ntfs_cntob(cl) && in ntfs_writentvattr_plain()
1447 uiomovebp(bp, bp->b_data + off, tocopy, uio); in ntfs_writentvattr_plain()
1449 memcpy(bp->b_data + off, data, tocopy); in ntfs_writentvattr_plain()
1451 data = data + tocopy; in ntfs_writentvattr_plain()
1452 *initp += tocopy; in ntfs_writentvattr_plain()
[all …]
/dflybsd-src/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()
/dflybsd-src/contrib/binutils-2.27/binutils/
H A Dar.c997 bfd_size_type tocopy = size - ncopied; in print_contents() local
999 if (tocopy > BUFSIZE) in print_contents()
1000 tocopy = BUFSIZE; in print_contents()
1002 nread = bfd_bread (cbuf, tocopy, abfd); in print_contents()
1003 if (nread != tocopy) in print_contents()
1013 ncopied += tocopy; in print_contents()
1033 bfd_size_type nread, tocopy; in extract_file() local
1076 tocopy = size - ncopied; in extract_file()
1077 if (tocopy > BUFSIZE) in extract_file()
1078 tocopy = BUFSIZE; in extract_file()
[all …]
H A Dobjcopy.c1736 int tocopy; in copy_unknown_object() local
1769 tocopy = size - ncopied; in copy_unknown_object()
1770 if (tocopy > BUFSIZE) in copy_unknown_object()
1771 tocopy = BUFSIZE; in copy_unknown_object()
1773 if (bfd_bread (cbuf, (bfd_size_type) tocopy, ibfd) in copy_unknown_object()
1774 != (bfd_size_type) tocopy) in copy_unknown_object()
1781 if (bfd_bwrite (cbuf, (bfd_size_type) tocopy, obfd) in copy_unknown_object()
1782 != (bfd_size_type) tocopy) in copy_unknown_object()
1789 ncopied += tocopy; in copy_unknown_object()
/dflybsd-src/contrib/binutils-2.34/binutils/
H A Dar.c1044 bfd_size_type tocopy = size - ncopied; in print_contents() local
1046 if (tocopy > BUFSIZE) in print_contents()
1047 tocopy = BUFSIZE; in print_contents()
1049 nread = bfd_bread (cbuf, tocopy, abfd); in print_contents()
1050 if (nread != tocopy) in print_contents()
1060 ncopied += tocopy; in print_contents()
1147 bfd_size_type nread, tocopy; in extract_file() local
1149 tocopy = size - ncopied; in extract_file()
1150 if (tocopy > BUFSIZE) in extract_file()
1151 tocopy = BUFSIZE; in extract_file()
[all …]
H A Dobjcopy.c1878 int tocopy; in copy_unknown_object() local
1911 tocopy = size - ncopied; in copy_unknown_object()
1912 if (tocopy > BUFSIZE) in copy_unknown_object()
1913 tocopy = BUFSIZE; in copy_unknown_object()
1915 if (bfd_bread (cbuf, (bfd_size_type) tocopy, ibfd) in copy_unknown_object()
1916 != (bfd_size_type) tocopy) in copy_unknown_object()
1923 if (bfd_bwrite (cbuf, (bfd_size_type) tocopy, obfd) in copy_unknown_object()
1924 != (bfd_size_type) tocopy) in copy_unknown_object()
1931 ncopied += tocopy; in copy_unknown_object()
/dflybsd-src/sys/net/accf_http/
H A Daccf_http.c329 int tocopy; in soishttpconnected() local
331 tocopy = (NCHRS - ccleft) - copied; in soishttpconnected()
332 src = mtod(m, char *) + (m->m_len - tocopy); in soishttpconnected()
334 while (tocopy--) { in soishttpconnected()
/dflybsd-src/contrib/libarchive/libarchive/
H A Darchive_read.c1330 size_t tocopy; in __archive_read_filter_ahead() local
1476 tocopy = (filter->buffer + filter->buffer_size) in __archive_read_filter_ahead()
1479 if (tocopy + filter->avail > min) in __archive_read_filter_ahead()
1480 tocopy = min - filter->avail; in __archive_read_filter_ahead()
1482 if (tocopy > filter->client_avail) in __archive_read_filter_ahead()
1483 tocopy = filter->client_avail; in __archive_read_filter_ahead()
1486 filter->client_next, tocopy); in __archive_read_filter_ahead()
1488 filter->client_next += tocopy; in __archive_read_filter_ahead()
1489 filter->client_avail -= tocopy; in __archive_read_filter_ahead()
1491 filter->avail += tocopy; in __archive_read_filter_ahead()
/dflybsd-src/sys/kern/
H A Duipc_syscalls.c1157 unsigned int tocopy; in sys_recvmsg() local
1160 tocopy = m->m_len; in sys_recvmsg()
1163 tocopy = len; in sys_recvmsg()
1166 error = copyout(mtod(m, caddr_t), ctlbuf, tocopy); in sys_recvmsg()
1170 ctlbuf += tocopy; in sys_recvmsg()
1171 len -= tocopy; in sys_recvmsg()