Searched defs:read_bytes (Results 1 - 9 of 9) sorted by relevance

/PHP_TRUNK/ext/standard/
H A Dpassword.c136 size_t read_bytes = 0; local
139 while (read_bytes < raw_length) {
140 n = read(fd, buffer + read_bytes, raw_length - read_bytes);
144 read_bytes += (size_t) n;
148 if (read_bytes >= raw_length) {
H A Dphp_fopen_wrapper.c85 int read_bytes = sapi_read_post_block(buf, count); local
87 if (read_bytes > 0) {
89 php_stream_write(input->body, buf, read_bytes);
/PHP_TRUNK/main/
H A DSAPI.c252 int read_bytes; local
258 read_bytes = (int)sapi_module.read_post(buffer, buflen);
260 if (read_bytes > 0) {
262 SG(read_post_bytes) += read_bytes;
264 if (read_bytes < buflen) {
269 return read_bytes;
284 int read_bytes; local
289 read_bytes = sapi_read_post_block(buffer, SAPI_POST_BLOCK_SIZE);
291 if (read_bytes > 0) {
292 php_stream_write(SG(request_info).request_body, buffer, read_bytes);
516 int read_bytes; local
[all...]
H A Drfc1867.c663 int total_bytes=0, read_bytes=0; local
665 while((read_bytes = multipart_buffer_read(self, buf, sizeof(buf), NULL))) {
666 out = erealloc(out, total_bytes + read_bytes + 1);
667 memcpy(out + total_bytes, buf, read_bytes);
668 total_bytes += read_bytes;
/PHP_TRUNK/sapi/apache/
H A Dmod_php7.c127 int total_read_bytes=0, read_bytes; local
144 read_bytes = get_client_block(r, buffer+total_read_bytes, count_bytes-total_read_bytes);
146 if (read_bytes<=0) {
149 total_read_bytes += read_bytes;
/PHP_TRUNK/sapi/apache_hooks/
H A Dmod_php7.c272 uint total_read_bytes=0, read_bytes; local
289 read_bytes = get_client_block(r, buffer+total_read_bytes, count_bytes-total_read_bytes);
291 if (read_bytes<=0) {
294 total_read_bytes += read_bytes;
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c514 size_t read_bytes = 0; local
523 while (read_bytes < count_bytes) {
525 size_t diff = count_bytes - read_bytes;
528 tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, to_read);
530 tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, count_bytes - read_bytes);
535 read_bytes += tmp_read_bytes;
537 return read_bytes;
542 size_t read_bytes = 0; local
550 while (read_bytes < count_byte
[all...]
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c502 uint read_bytes = 0; local
509 while (read_bytes < count_bytes) {
528 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes);
530 tmp_read_bytes = read(request_body_fd, buffer + read_bytes, count_bytes - read_bytes);
535 read_bytes += tmp_read_bytes;
537 return read_bytes;
/PHP_TRUNK/sapi/thttpd/
H A Dthttpd.c250 size_t read_bytes = 0; local
253 read_bytes = MIN(TG(unconsumed_length), count_bytes);
254 memcpy(buffer, TG(hc)->read_buf + TG(hc)->checked_idx, read_bytes);
255 TG(unconsumed_length) -= read_bytes;
256 CONSUME_BYTES(read_bytes);
259 return read_bytes;

Completed in 18 milliseconds