Home
last modified time | relevance | path

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

/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/nativeclient/
H A Drandombytes_nativeclient.c20 size_t toread = size; in randombytes_nativeclient_buf() local
26 while (toread > (size_t) 0U) { in randombytes_nativeclient_buf()
31 toread -= readnb; in randombytes_nativeclient_buf()
/freebsd/contrib/netbsd-tests/fs/common/
H A Dfstest_puffs.c161 size_t toread; in writeshovel() local
181 toread = sizeof(struct putter_hdr); in writeshovel()
182 assert(toread < BUFSIZE); in writeshovel()
184 n = xread(comfd, buf+off, toread); in writeshovel()
192 toread = phdr->pth_framelen - off; in writeshovel()
194 toread = off - sizeof(struct putter_hdr); in writeshovel()
195 } while (toread); in writeshovel()
/freebsd/contrib/lib9p/transport/
H A Dsocket.c221 size_t toread; in l9p_socket_readmsg() local
247 toread = msize - sizeof(uint32_t); in l9p_socket_readmsg()
250 ret = xread(fd, (char *)buffer + sizeof(uint32_t), toread); in l9p_socket_readmsg()
256 if (ret != (ssize_t)toread) { in l9p_socket_readmsg()
258 ret, toread); in l9p_socket_readmsg()
/freebsd/sys/dev/pbio/
H A Dpbio.c357 int err, i, port, toread; in pbioread() local
366 toread = min(uio->uio_resid, PBIO_BUFSIZ); in pbioread()
367 if ((err = uiomove(scp->pd[port].buff, toread, uio)) != 0) in pbioread()
369 for (i = 0; i < toread; i++) { in pbioread()
/freebsd/sys/security/audit/
H A Daudit_pipe.c901 u_int toread; in audit_pipe_read() local
943 toread = MIN(ape->ape_record_len - ap->ap_qoffset, in audit_pipe_read()
947 toread, uio); in audit_pipe_read()
960 ap->ap_qoffset += toread; in audit_pipe_read()
/freebsd/contrib/ofed/libibnetdisc/
H A Dibnetdisc_cache.c358 unsigned int toread = 0; in _load_node() local
365 toread = in _load_node()
375 if (ibnd_read(fd, buf, toread) < 0) in _load_node()
/freebsd/share/examples/drivers/
H A Dmake_device_driver.sh868 int toread;
875 toread = (min(uio->uio_resid, sizeof(scp->buffer)));
876 return(uiomove(scp->buffer, toread, uio));
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzap_leaf.c365 int toread = MIN(array_numints - bseen, ZAP_LEAF_ARRAY_BYTES); in zap_leaf_array_match() local
368 toread)) in zap_leaf_array_match()
371 bseen += toread; in zap_leaf_array_match()
/freebsd/contrib/libpcap/rpcapd/
H A Ddaemon.c161 static int rpcapd_recv(PCAP_SOCKET sock, SSL *, char *buffer, size_t toread, uint32 *plen, char *er…
2945 rpcapd_recv(PCAP_SOCKET sock, SSL *ssl, char *buffer, size_t toread, uint32 *plen, char *errmsgbuf) in rpcapd_recv() argument
2950 if (toread > *plen) in rpcapd_recv()
2956 nread = sock_recv(sock, ssl, buffer, toread, in rpcapd_recv()
/freebsd/contrib/libpcap/
H A Dpcap-rpcap.c177 static int rpcap_recv(PCAP_SOCKET sock, SSL *, void *buffer, size_t toread, uint32 *plen, char *err…
3459 static int rpcap_recv(PCAP_SOCKET sock, SSL *ssl, void *buffer, size_t toread, uint32 *plen, char *… in rpcap_recv() argument
3463 if (toread > *plen) in rpcap_recv()
3469 nread = sock_recv(sock, ssl, buffer, toread, in rpcap_recv()