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

/freebsd-13-stable/sys/contrib/libsodium/src/libsodium/randombytes/nativeclient/
H A Drandombytes_nativeclient.c20 size_t toread = size; local
26 while (toread > (size_t) 0U) {
31 toread -= readnb;
/freebsd-13-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-13-stable/contrib/lib9p/transport/
H A Dsocket.c223 size_t toread; local
249 toread = msize - sizeof(uint32_t);
252 ret = xread(fd, (char *)buffer + sizeof(uint32_t), toread);
258 if (ret != (ssize_t)toread) {
260 ret, toread);
/freebsd-13-stable/sys/dev/pbio/
H A Dpbio.c377 int err, i, port, ret, toread, unit; local
387 toread = min(uio->uio_resid, PBIO_BUFSIZ);
388 if ((ret = uiomove(scp->pd[port].buff, toread, uio)) != 0)
390 for (i = 0; i < toread; i++) {
/freebsd-13-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-13-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-13-stable/sys/contrib/openzfs/module/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-13-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-13-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-13-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,

Completed in 223 milliseconds