Home
last modified time | relevance | path

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

/PHP-5.6/ext/standard/
H A Dpassword.c137 size_t read_bytes = 0; in php_password_make_salt() local
140 while (read_bytes < raw_length) { in php_password_make_salt()
141 n = read(fd, buffer + read_bytes, raw_length - read_bytes); in php_password_make_salt()
145 read_bytes += (size_t) n; in php_password_make_salt()
149 if (read_bytes >= raw_length) { in php_password_make_salt()
H A Dphp_fopen_wrapper.c85 int read_bytes = sapi_read_post_block(buf, count TSRMLS_CC); in php_stream_input_read() local
87 if (read_bytes > 0) { in php_stream_input_read()
89 php_stream_write(input->body, buf, read_bytes); in php_stream_input_read()
/PHP-5.6/main/
H A DSAPI.c253 int read_bytes; in sapi_read_post_block() local
261 if (read_bytes > 0) { in sapi_read_post_block()
263 SG(read_post_bytes) += read_bytes; in sapi_read_post_block()
265 if (read_bytes < buflen) { in sapi_read_post_block()
270 return read_bytes; in sapi_read_post_block()
285 int read_bytes; in SAPI_POST_READER_FUNC() local
292 if (read_bytes > 0) { in SAPI_POST_READER_FUNC()
293 if (php_stream_write(SG(request_info).request_body, buffer, read_bytes) != read_bytes) { in SAPI_POST_READER_FUNC()
306 if (read_bytes < SAPI_POST_BLOCK_SIZE) { in SAPI_POST_READER_FUNC()
522 int read_bytes; in sapi_deactivate() local
[all …]
H A Drfc1867.c661 int total_bytes=0, read_bytes=0; in multipart_buffer_read_body() local
663 while((read_bytes = multipart_buffer_read(self, buf, sizeof(buf), NULL TSRMLS_CC))) { in multipart_buffer_read_body()
664 out = erealloc(out, total_bytes + read_bytes + 1); in multipart_buffer_read_body()
665 memcpy(out + total_bytes, buf, read_bytes); in multipart_buffer_read_body()
666 total_bytes += read_bytes; in multipart_buffer_read_body()
/PHP-5.6/sapi/thttpd/
H A Dthttpd.c250 size_t read_bytes = 0; in sapi_thttpd_read_post() local
253 read_bytes = MIN(TG(unconsumed_length), count_bytes); in sapi_thttpd_read_post()
254 memcpy(buffer, TG(hc)->read_buf + TG(hc)->checked_idx, read_bytes); in sapi_thttpd_read_post()
255 TG(unconsumed_length) -= read_bytes; in sapi_thttpd_read_post()
256 CONSUME_BYTES(read_bytes); in sapi_thttpd_read_post()
259 return read_bytes; in sapi_thttpd_read_post()
/PHP-5.6/sapi/cgi/
H A Dcgi_main.c513 uint read_bytes = 0; in sapi_cgi_read_post() local
517 while (read_bytes < count_bytes) { in sapi_cgi_read_post()
518 tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
522 read_bytes += tmp_read_bytes; in sapi_cgi_read_post()
524 return read_bytes; in sapi_cgi_read_post()
529 uint read_bytes = 0; in sapi_fcgi_read_post() local
537 while (read_bytes < count_bytes) { in sapi_fcgi_read_post()
538 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes); in sapi_fcgi_read_post()
542 read_bytes += tmp_read_bytes; in sapi_fcgi_read_post()
544 return read_bytes; in sapi_fcgi_read_post()
/PHP-5.6/sapi/fpm/fpm/
H A Dfpm_main.c501 uint read_bytes = 0; in sapi_cgi_read_post() local
508 while (read_bytes < count_bytes) { in sapi_cgi_read_post()
527 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
529 tmp_read_bytes = read(request_body_fd, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
534 read_bytes += tmp_read_bytes; in sapi_cgi_read_post()
536 return read_bytes; in sapi_cgi_read_post()
/PHP-5.6/ext/mcrypt/
H A Dmcrypt.c1461 size_t read_bytes = 0; in PHP_FUNCTION()
1472 while (read_bytes < size) { in PHP_FUNCTION()
1473 n = read(*fd, iv + read_bytes, size - read_bytes); in PHP_FUNCTION()
1477 read_bytes += n; in PHP_FUNCTION()
1479 n = read_bytes; in PHP_FUNCTION()
/PHP-5.6/sapi/apache/
H A Dmod_php5.c127 int total_read_bytes=0, read_bytes; in sapi_apache_read_post() local
144 read_bytes = get_client_block(r, buffer+total_read_bytes, count_bytes-total_read_bytes); in sapi_apache_read_post()
146 if (read_bytes<=0) { in sapi_apache_read_post()
149 total_read_bytes += read_bytes; in sapi_apache_read_post()
/PHP-5.6/sapi/apache_hooks/
H A Dmod_php5.c272 uint total_read_bytes=0, read_bytes; in sapi_apache_read_post() local
289 read_bytes = get_client_block(r, buffer+total_read_bytes, count_bytes-total_read_bytes); in sapi_apache_read_post()
291 if (read_bytes<=0) { in sapi_apache_read_post()
294 total_read_bytes += read_bytes; in sapi_apache_read_post()

Completed in 78 milliseconds