| /src/lib/libc/stdio/ |
| open_memstream.c | 97 size_t tocopy; local 105 tocopy = ms->len - ms->offset; 106 if (len < tocopy) 107 tocopy = len; 108 memcpy(*ms->bufp + ms->offset, buf, tocopy); 109 ms->offset += tocopy; 112 fprintf(stderr, "MS: write(%p, %zu) = %zu\n", ms, len, tocopy); 114 return (ssize_t)tocopy;
|
| /src/sys/kern/ |
| subr_iostat.c | 408 size_t tocopy, left; local 420 tocopy = offsetof(struct io_sysctl, busy); 422 tocopy = name[0]; 425 *oldlenp = iostat_count * tocopy; 436 if (left < tocopy) 472 error = copyout(&sdrive, where, uimin(tocopy, sizeof(sdrive))); 475 where += tocopy; 476 *oldlenp += tocopy; 477 left -= tocopy;
|
| /src/sys/arch/hpc/stand/hpcboot/ |
| load.cpp | 221 vsize_t tocopy = (remsz < _tpsz) ? remsz : _tpsz; local 222 memcpy((void *)v, data, tocopy); 225 _pvec_prev->sz = tocopy; 231 data = (char *)data + tocopy; 232 dst += tocopy; 233 remsz -= tocopy;
|
| /src/sys/fs/ntfs/ |
| ntfs_subr.c | 1262 size_t tocopy; local 1306 tocopy = MIN(left, ntfs_cntob(1) - off); 1307 cl = ntfs_btocl(tocopy + off); 1308 KASSERT(cl == 1 && tocopy <= ntfs_cntob(1)); 1312 (long long) off, (long long) tocopy, 1314 if ((off == 0) && (tocopy == ntfs_cntob(cl))) { 1326 uiomove((char *)bp->b_data + off, tocopy, uio); 1328 memcpy((char *)bp->b_data + off, data, tocopy); 1330 data = (char *)data + tocopy; 1331 *initp += tocopy; 1366 size_t tocopy; local 1428 tocopy); local 1552 off_t off, left, tocopy; local [all...] |
| /src/sys/opencrypto/ |
| deflate.c | 87 u_int32_t count, result, tocopy; local 167 tocopy = MIN(count, buf[j].size); 169 KASSERT(tocopy || j == (i - 1)); 170 memcpy(output, buf[j].out, tocopy); 171 output += tocopy; 173 count -= tocopy;
|
| /src/sys/netinet/ |
| accf_http.c | 379 int tocopy; local 381 tocopy = (NCHRS - ccleft) - copied; 382 src = mtod(m, char *) + (m->m_len - tocopy); 384 while (tocopy--) {
|