Home
last modified time | relevance | path

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

/PHP-7.1/ext/standard/
H A Drandom.c97 size_t read_bytes = 0; in php_random_bytes()
102 while (read_bytes < size) { in php_random_bytes()
112 size_t amount_to_read = size - read_bytes; in php_random_bytes()
113 n = syscall(SYS_getrandom, bytes + read_bytes, amount_to_read, 0); in php_random_bytes()
120 ZEND_ASSERT(read_bytes == 0); in php_random_bytes()
131 read_bytes += (size_t) n; in php_random_bytes()
134 if (read_bytes < size) { in php_random_bytes()
165 for (read_bytes = 0; read_bytes < size; read_bytes += (size_t) n) { in php_random_bytes()
166 n = read(fd, bytes + read_bytes, size - read_bytes); in php_random_bytes()
172 if (read_bytes < size) { in php_random_bytes()
H A Dphp_fopen_wrapper.c85 size_t read_bytes = sapi_read_post_block(buf, count); 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-7.1/main/
H A DSAPI.c242 size_t read_bytes; in sapi_read_post_block() local
250 if (read_bytes > 0) { in sapi_read_post_block()
252 SG(read_post_bytes) += read_bytes; in sapi_read_post_block()
254 if (read_bytes < buflen) { in sapi_read_post_block()
259 return read_bytes; in sapi_read_post_block()
274 size_t read_bytes; in SAPI_POST_READER_FUNC() local
281 if (read_bytes > 0) { in SAPI_POST_READER_FUNC()
282 if (php_stream_write(SG(request_info).request_body, buffer, read_bytes) != read_bytes) { in SAPI_POST_READER_FUNC()
295 if (read_bytes < SAPI_POST_BLOCK_SIZE) { in SAPI_POST_READER_FUNC()
509 size_t read_bytes; in sapi_deactivate() local
[all …]
H A Drfc1867.c668 int total_bytes=0, read_bytes=0; in multipart_buffer_read_body() local
670 while((read_bytes = multipart_buffer_read(self, buf, sizeof(buf), NULL))) { in multipart_buffer_read_body()
671 out = erealloc(out, total_bytes + read_bytes + 1); in multipart_buffer_read_body()
672 memcpy(out + total_bytes, buf, read_bytes); in multipart_buffer_read_body()
673 total_bytes += read_bytes; in multipart_buffer_read_body()
/PHP-7.1/sapi/cgi/
H A Dcgi_main.c485 size_t read_bytes = 0; in sapi_cgi_read_post() local
494 while (read_bytes < count_bytes) { in sapi_cgi_read_post()
496 size_t diff = count_bytes - read_bytes; in sapi_cgi_read_post()
501 tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
506 read_bytes += tmp_read_bytes; in sapi_cgi_read_post()
508 return read_bytes; in sapi_cgi_read_post()
513 size_t read_bytes = 0; in sapi_fcgi_read_post() local
521 while (read_bytes < count_bytes) { in sapi_fcgi_read_post()
522 size_t diff = count_bytes - read_bytes; in sapi_fcgi_read_post()
529 read_bytes += tmp_read_bytes; in sapi_fcgi_read_post()
[all …]
/PHP-7.1/sapi/fpm/fpm/
H A Dfpm_main.c476 uint read_bytes = 0; in sapi_cgi_read_post() local
483 while (read_bytes < count_bytes) { in sapi_cgi_read_post()
501 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
503 tmp_read_bytes = read(request_body_fd, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
508 read_bytes += tmp_read_bytes; in sapi_cgi_read_post()
510 return read_bytes; in sapi_cgi_read_post()
/PHP-7.1/ext/mcrypt/
H A Dmcrypt.c1392 size_t read_bytes = 0; in PHP_FUNCTION()
1403 while ((zend_long)read_bytes < size) { in PHP_FUNCTION()
1404 n = read(*fd, iv + read_bytes, size - read_bytes); in PHP_FUNCTION()
1408 read_bytes += n; in PHP_FUNCTION()
1410 n = read_bytes; in PHP_FUNCTION()

Completed in 36 milliseconds