/openbsd/usr.sbin/pkg_add/OpenBSD/ |
H A D | Ustar.pm | 106 $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 D | efipxe.c | 186 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 D | relay_http.c | 618 cre->toread = 0; in relay_read_http() 754 if (cre->toread > 0) { in relay_read_httpcontent() 757 size = cre->toread; in relay_read_httpcontent() 761 cre->toread = 0; in relay_read_httpcontent() 765 cre->toread -= size; in relay_read_httpcontent() 770 if (cre->toread == 0) { in relay_read_httpcontent() 815 if (cre->toread > 0) { in relay_read_httpchunks() 818 size = cre->toread; in relay_read_httpchunks() 822 cre->toread = 0; in relay_read_httpchunks() 826 cre->toread -= size; in relay_read_httpchunks() [all …]
|
H A D | relay.c | 751 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 D | relayd.h | 222 off_t toread; member
|
/openbsd/sys/ntfs/ |
H A D | ntfs_vnops.c | 103 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() 270 u_int32_t toread; in ntfs_strategy() local 276 toread = MIN(bp->b_bcount, in ntfs_strategy() 279 toread, fp->f_size); in ntfs_strategy() 283 toread, bp->b_data, NULL); in ntfs_strategy() [all …]
|
H A D | ntfs_subr.c | 1479 size_t left = rsize, toread; in ntfs_readattr_plain() local 1489 toread = MIN(left, ntfs_cntob(vap->va_vcnend + 1) - off); in ntfs_readattr_plain() 1491 "(%llu - %llu)\n", off, toread, in ntfs_readattr_plain() 1495 toread, data, &init, uio); in ntfs_readattr_plain() 1498 "failed: o: %lld, s: %zu\n", off, toread); in ntfs_readattr_plain() 1505 left -= toread; in ntfs_readattr_plain() 1506 off += toread; in ntfs_readattr_plain() 1507 data = data + toread; in ntfs_readattr_plain()
|
/openbsd/sys/arch/arm64/stand/efiboot/ |
H A D | efipxe.c | 213 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 D | efipxe.c | 213 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 D | efipxe.c | 213 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 D | server_fcgi.c | 115 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 D | httpd.h | 288 int toread; member
|
/openbsd/usr.bin/cvs/ |
H A D | remote.c | 133 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 D | client.c | 1748 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 D | server.c | 1369 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 D | hyperv.c | 1320 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()
|