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

/freebsd-11-stable/contrib/netbsd-tests/fs/common/
H A Dfstest_puffs.c161 size_t toread; local
181 toread = sizeof(struct putter_hdr);
182 assert(toread < BUFSIZE);
184 n = xread(comfd, buf+off, toread);
192 toread = phdr->pth_framelen - off;
194 toread = off - sizeof(struct putter_hdr);
195 } while (toread);
/freebsd-11-stable/sys/dev/pbio/
H A Dpbio.c376 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-11-stable/contrib/groff/src/utils/tfmtodit/
H A Dtfmtodit.cpp291 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-11-stable/sys/security/audit/
H A Daudit_pipe.c904 u_int toread; local
946 toread = MIN(ape->ape_record_len - ap->ap_qoffset,
950 toread, uio);
963 ap->ap_qoffset += toread;
/freebsd-11-stable/share/examples/drivers/
H A Dmake_device_driver.sh875 int toread;
882 toread = (min(uio->uio_resid, sizeof(scp->buffer)));
883 return(uiomove(scp->buffer, toread, uio));
/freebsd-11-stable/contrib/ofed/libibnetdisc/
H A Dibnetdisc_cache.c358 unsigned int toread = 0; local
365 toread =
375 if (ibnd_read(fd, buf, toread) < 0)
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzap_leaf.c375 int toread = MIN(array_numints - bseen, ZAP_LEAF_ARRAY_BYTES); local
377 if (bcmp(la->la_array, (char *)zn->zn_key_orig + bseen, toread))
380 bseen += toread;
/freebsd-11-stable/contrib/libpcap/rpcapd/
H A Ddaemon.c155 static int rpcapd_recv(SOCKET sock, char *buffer, size_t toread, uint32 *plen, char *errmsgbuf);
2554 rpcapd_recv(SOCKET sock, char *buffer, size_t toread, uint32 *plen, char *errmsgbuf) argument
2559 if (toread > *plen)
2565 nread = sock_recv(sock, buffer, toread,
/freebsd-11-stable/contrib/libpcap/
H A Dpcap-rpcap.c162 static int rpcap_recv(SOCKET sock, void *buffer, size_t toread, uint32 *plen, char *errbuf);
3075 static int rpcap_recv(SOCKET sock, void *buffer, size_t toread, uint32 *plen, char *errbuf) argument
3079 if (toread > *plen)
3085 nread = sock_recv(sock, buffer, toread,
/freebsd-11-stable/sys/fs/nandfs/
H A Dnandfs_vnops.c140 ssize_t toread, off; local
161 toread = omin(resid, blocksize - off);
163 DPRINTF(READ, ("nandfs_read bn: 0x%jx toread: 0x%zx (0x%x)\n",
164 (uintmax_t)lbn, toread, blocksize));
172 error = uiomove(bp->b_data + off, toread, uio);
179 resid -= toread;
246 DPRINTF(WRITE, ("%s: lbn: 0x%jd toread: 0x%zx (0x%x)\n",
253 DPRINTF(WRITE, ("%s: lbn: 0x%jd toread: 0x%zx (0x%x) "

Completed in 211 milliseconds