Home
last modified time | relevance | path

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

/openbsd/usr.sbin/pkg_add/OpenBSD/
H A DUstar.pm106 $toread = $buffsize;
142 while ($toread > 0) {
145 $maxread = $toread if $maxread > $toread;
154 $toread -= $actual;
799 $maxread = $toread if $maxread > $toread;
813 $toread -= $actual;
833 my $sz = $toread;
859 my $toread = $size;
862 $maxread = $toread if $maxread > $toread;
889 my $toread = $size;
[all …]
/openbsd/sys/arch/amd64/stand/efiboot/
H A Defipxe.c186 size_t toread; in tftp_read() local
189 toread = tftpfile->inbufsize - tftpfile->inbufoff; in tftp_read()
191 toread = size; in tftp_read()
193 if (toread != 0) { in tftp_read()
194 memcpy(addr, tftpfile->inbuf + tftpfile->inbufoff, toread); in tftp_read()
195 tftpfile->inbufoff += toread; in tftp_read()
199 *resid = size - toread; in tftp_read()
/openbsd/usr.sbin/relayd/
H A Drelay_http.c626 cre->toread = 0; in relay_read_http()
762 if (cre->toread > 0) { in relay_read_httpcontent()
765 size = cre->toread; in relay_read_httpcontent()
769 cre->toread = 0; in relay_read_httpcontent()
773 cre->toread -= size; in relay_read_httpcontent()
778 if (cre->toread == 0) { in relay_read_httpcontent()
823 if (cre->toread > 0) { in relay_read_httpchunks()
826 size = cre->toread; in relay_read_httpchunks()
830 cre->toread = 0; in relay_read_httpchunks()
834 cre->toread -= size; in relay_read_httpchunks()
[all …]
H A Drelay.c751 con->se_out.toread = TOREAD_HTTP_HEADER; in relay_connected()
808 con->se_in.toread = TOREAD_HTTP_HEADER; in relay_input()
939 if (!(cre->toread == TOREAD_UNLIMITED || cre->toread > 0)) { in relay_splice()
941 __func__, con->se_id, cre->dir, cre->toread); in relay_splice()
956 sp.sp_max = cre->toread > 0 ? cre->toread : 0; in relay_splice()
967 __func__, con->se_id, cre->dir, cre->toread); in relay_splice()
1009 if (cre->splicelen > 0 && cre->toread > 0) in relay_spliceadjust()
1010 cre->toread -= cre->splicelen; in relay_spliceadjust()
1081 } else if (cre->toread == TOREAD_UNLIMITED || cre->toread == 0) in relay_error()
1147 con->se_in.toread = TOREAD_UNLIMITED; in relay_accept()
[all …]
H A Drelayd.h223 off_t toread; member
/openbsd/sys/ntfs/
H A Dntfs_vnops.c103 u_int64_t toread; in ntfs_read() local
113 toread = 0; in ntfs_read()
115 toread = MIN(uio->uio_resid, fp->f_size - uio->uio_offset); in ntfs_read()
117 DPRINTF(", toread: %llu\n", toread); in ntfs_read()
119 if (toread == 0) in ntfs_read()
123 fp->f_attrname, uio->uio_offset, toread, NULL, uio); in ntfs_read()
268 u_int32_t toread; in ntfs_strategy() local
274 toread = MIN(bp->b_bcount, in ntfs_strategy()
277 toread, fp->f_size); in ntfs_strategy()
281 toread, bp->b_data, NULL); in ntfs_strategy()
[all …]
H A Dntfs_subr.c1478 size_t left = rsize, toread; in ntfs_readattr_plain() local
1488 toread = MIN(left, ntfs_cntob(vap->va_vcnend + 1) - off); in ntfs_readattr_plain()
1490 "(%llu - %llu)\n", off, toread, in ntfs_readattr_plain()
1494 toread, data, &init, uio); in ntfs_readattr_plain()
1497 "failed: o: %lld, s: %zu\n", off, toread); in ntfs_readattr_plain()
1504 left -= toread; in ntfs_readattr_plain()
1505 off += toread; in ntfs_readattr_plain()
1506 data = data + toread; in ntfs_readattr_plain()
/openbsd/sys/arch/arm64/stand/efiboot/
H A Defipxe.c213 size_t toread; in mtftp_read() local
216 toread = tftpfile->inbufsize - tftpfile->inbufoff; in mtftp_read()
218 toread = size; in mtftp_read()
220 if (toread != 0) { in mtftp_read()
221 memcpy(addr, tftpfile->inbuf + tftpfile->inbufoff, toread); in mtftp_read()
222 tftpfile->inbufoff += toread; in mtftp_read()
226 *resid = size - toread; in mtftp_read()
/openbsd/sys/arch/armv7/stand/efiboot/
H A Defipxe.c213 size_t toread; in mtftp_read() local
216 toread = tftpfile->inbufsize - tftpfile->inbufoff; in mtftp_read()
218 toread = size; in mtftp_read()
220 if (toread != 0) { in mtftp_read()
221 memcpy(addr, tftpfile->inbuf + tftpfile->inbufoff, toread); in mtftp_read()
222 tftpfile->inbufoff += toread; in mtftp_read()
226 *resid = size - toread; in mtftp_read()
/openbsd/sys/arch/riscv64/stand/efiboot/
H A Defipxe.c213 size_t toread; in mtftp_read() local
216 toread = tftpfile->inbufsize - tftpfile->inbufoff; in mtftp_read()
218 toread = size; in mtftp_read()
220 if (toread != 0) { in mtftp_read()
221 memcpy(addr, tftpfile->inbuf + tftpfile->inbufoff, toread); in mtftp_read()
222 tftpfile->inbufoff += toread; in mtftp_read()
226 *resid = size - toread; in mtftp_read()
/openbsd/usr.sbin/httpd/
H A Dserver_fcgi.c115 clt->clt_fcgi.toread = sizeof(struct fcgi_record_header); in server_fcgi()
524 len = bufferevent_read(bev, buf, clt->clt_fcgi.toread); in server_fcgi_read()
529 clt->clt_fcgi.toread -= len; in server_fcgi_read()
531 __func__, len, clt->clt_fcgi.toread, in server_fcgi_read()
534 if (clt->clt_fcgi.toread != 0) in server_fcgi_read()
547 clt->clt_fcgi.toread = ntohs(h->content_len); in server_fcgi_read()
551 if (clt->clt_fcgi.toread != 0) in server_fcgi_read()
620 clt->clt_fcgi.toread = in server_fcgi_read()
624 clt->clt_fcgi.toread = in server_fcgi_read()
632 clt->clt_fcgi.toread = in server_fcgi_read()
H A Dhttpd.h293 int toread; member
/openbsd/usr.bin/cvs/
H A Dremote.c133 size_t nread, nleft, toread; in cvs_remote_receive_file() local
143 toread = MINIMUM(nleft, sizeof data); in cvs_remote_receive_file()
145 nread = fread(data, sizeof(char), toread, in); in cvs_remote_receive_file()
/openbsd/gnu/usr.bin/cvs/src/
H A Dclient.c1748 size_t toread; local
1789 toread = usize - nread;
1790 if (toread > sizeof buf)
1791 toread = sizeof buf;
1793 nread += try_read_from_server (buf, toread);
3153 size_t toread; local
3170 toread = size - totalread;
3171 if (toread > sizeof buf)
3172 toread = sizeof buf;
3174 nread = try_read_from_server (buf, toread);
H A Dserver.c1369 int toread = size; local
1377 while (toread > 0)
1382 status = buf_read_data (buf_from_net, toread, &data, &nread);
1410 toread -= nread;
/openbsd/sys/dev/pv/
H A Dhyperv.c1320 hv_ring_avail(struct hv_ring_data *rd, uint32_t *towrite, uint32_t *toread) in hv_ring_avail() argument
1333 if (toread) in hv_ring_avail()
1334 *toread = r; in hv_ring_avail()