/freebsd-9.3-release/crypto/openssl/demos/tunala/ |
H A D | buffer.c | 115 int toread = buffer_unused(buf); local 116 if (toread == 0) 119 toread = read(fd, buf->data + buf->used, toread); 120 if (toread > 0) { 121 buf->used += toread; 122 buf->total_in += toread; 124 return toread;
|
/freebsd-9.3-release/sys/fs/ntfs/ |
H A D | ntfs_vnops.c | 129 int resid, off, toread; local 149 toread = MIN(off + resid, ntfs_cntob(1)); 157 error = uiomove(bp->b_data + off, toread - off, uio); 164 resid -= toread - off; 285 u_int32_t toread; local 291 toread = MIN(bp->b_bcount, 293 dprintf(("ntfs_strategy: toread: %d, fsize: %d\n", 294 toread,(u_int32_t)fp->f_size)); 298 toread, bp->b_data, NULL); 306 bzero(bp->b_data + toread, b [all...] |
H A D | ntfs_subr.c | 1677 off_t off = roff, left = rsize, toread; local 1687 toread = MIN(left, ntfs_cntob(vap->va_vcnend + 1) - off); 1689 (u_int32_t) off, (u_int32_t) toread, 1694 toread, data, &init, uio); 1698 (u_int32_t) off, (u_int32_t) toread); 1706 left -= toread; 1707 off += toread; 1708 data = data + toread;
|
/freebsd-9.3-release/sys/dev/pbio/ |
H A D | pbio.c | 376 int err, i, port, ret, toread, unit; local 386 toread = min(uio->uio_resid, PBIO_BUFSIZ); 387 if ((ret = uiomove(scp->pd[port].buff, toread, uio)) != 0) 389 for (i = 0; i < toread; i++) {
|
/freebsd-9.3-release/sys/fs/hpfs/ |
H A D | hpfs_vnops.c | 283 u_int xfersz, toread; local 303 toread = min(off + resid, min(DFLTPHYS, (runl+1)*DEV_BSIZE)); 304 xfersz = (toread + DEV_BSIZE - 1) & ~(DEV_BSIZE - 1); 305 dprintf(("hpfs_read: bn: 0x%x (0x%x) toread: 0x%x (0x%x)\n", 306 bn, runl, toread, xfersz)); 308 if (toread == 0) 317 error = uiomove(bp->b_data + off, toread - off, uio); 323 resid -= toread;
|
/freebsd-9.3-release/contrib/groff/src/utils/tfmtodit/ |
H A D | tfmtodit.cpp | 291 int toread = lf*4 - 2; local 292 unsigned char *buf = new unsigned char[toread]; 293 if (fread(buf, 1, toread, fp) != (size_t)toread) {
|
/freebsd-9.3-release/sys/security/audit/ |
H A D | audit_pipe.c | 953 u_int toread; local 994 toread = MIN(ape->ape_record_len - ap->ap_qoffset, 998 toread, uio); 1011 ap->ap_qoffset += toread;
|
/freebsd-9.3-release/share/examples/drivers/ |
H A D | make_device_driver.sh | 876 int toread; 883 toread = (min(uio->uio_resid, sizeof(scp->buffer))); 884 return(uiomove(scp->buffer, toread, uio));
|
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | zap_leaf.c | 376 int toread = MIN(array_numints - bseen, ZAP_LEAF_ARRAY_BYTES); local 378 if (bcmp(la->la_array, (char *)zn->zn_key_orig + bseen, toread)) 381 bseen += toread;
|
/freebsd-9.3-release/contrib/cvs/src/ |
H A D | client.c | 1874 size_t toread; 1916 toread = usize - nread; 1917 if (toread > sizeof buf) 1918 toread = sizeof buf; 1920 nread += try_read_from_server (buf, toread); 3130 size_t toread; 3147 toread = size - totalread; 3148 if (toread > sizeof buf) 3149 toread = sizeof buf; 3151 nread = try_read_from_server (buf, toread); 1865 size_t toread; local 3112 size_t toread; local [all...] |
H A D | server.c | 1388 int toread = size; 1396 while (toread > 0) 1401 status = buf_read_data (buf_from_net, toread, &data, &nread); 1427 toread -= nread; 1381 int toread = size; local
|