Lines Matching refs:len
31 apr_size_t *len)
41 rv = write(sock->socketdes, buf, (*len));
50 *len = 0;
55 rv = write(sock->socketdes, buf, (*len));
60 *len = 0;
63 if ((sock->timeout > 0) && (rv < *len)) {
66 (*len) = rv;
70 apr_status_t apr_socket_recv(apr_socket_t *sock, char *buf, apr_size_t *len)
81 rv = read(sock->socketdes, buf, (*len));
89 *len = 0;
94 rv = read(sock->socketdes, buf, (*len));
99 (*len) = 0;
102 if ((sock->timeout > 0) && (rv < *len)) {
105 (*len) = rv;
114 apr_size_t *len)
119 rv = sendto(sock->socketdes, buf, (*len), flags,
128 *len = 0;
132 rv = sendto(sock->socketdes, buf, (*len), flags,
139 *len = 0;
142 *len = rv;
148 apr_size_t *len)
155 rv = recvfrom(sock->socketdes, buf, (*len), flags,
163 *len = 0;
167 rv = recvfrom(sock->socketdes, buf, (*len), flags,
173 (*len) = 0;
186 (*len) = rv;
195 apr_int32_t nvec, apr_size_t *len)
221 *len = 0;
231 *len = 0;
237 (*len) = rv;
240 *len = vec[0].iov_len;
241 return apr_socket_send(sock, vec[0].iov_base, len);
259 apr_size_t *len, apr_int32_t flags)
273 if ((apr_int64_t)*offset + *len > INT_MAX) {
286 if (sizeof(off_t) == 8 && *len > INT_MAX) {
287 *len = INT_MAX;
308 *len = 0;
322 *len = hdrbytes;
336 *len); /* number of bytes to send */
344 *len = 0;
352 *len); /* number of bytes to send */
358 *len = nbytes;
366 if (rv < *len) {
367 *len = nbytes;
397 *len = nbytes;
406 (*len) = nbytes;
415 apr_size_t *len, apr_int32_t flags)
418 apr_off_t bytes_to_send = *len;
442 *len = 0;
452 *len = bytes_sent;
466 *len = 0;
491 (*len) = bytes_sent;
502 (*len) = bytes_sent;
515 *len = bytes_sent;
521 (*len) = bytes_sent;
533 apr_size_t * len, apr_int32_t flags)
541 apr_size_t bytes_to_send = *len;
578 *len = 0;
606 (*len) = nbytes;
616 (*len) = nbytes;
639 *len = 0;
645 (*len) = nbytes;
669 apr_size_t *len, apr_int32_t flags)
673 apr_size_t nbytes = *len, headerlen, trailerlen;
687 if ((apr_int64_t)*offset + *len > INT_MAX) {
775 *len = 0;
796 *len = 0;
800 /* Set len to the number of bytes written */
801 *len = rc;
817 apr_size_t * len, apr_int32_t flags)
902 parms.file_bytes = *len;
922 *len = 0;
934 (*len) = parms.bytes_sent;
979 apr_size_t *len, apr_int32_t flags)
1011 /* If the len is 0, we skip the file. */
1012 if (*len)
1017 sfv[curvec].sfv_len = *len;
1042 *len = 0;
1073 *len = 0;
1084 *len = 0;
1089 *len = nbytes;
1098 if ((sock->timeout > 0) && (*len < requested_len)) {