Searched refs:read_bytes (Results 1 – 6 of 6) sorted by relevance
/PHP-8.0/ext/standard/ |
H A D | random.c | 117 size_t read_bytes = 0; in php_random_bytes() 122 while (read_bytes < size) { in php_random_bytes() 132 size_t amount_to_read = size - read_bytes; in php_random_bytes() 136 n = getrandom(bytes + read_bytes, amount_to_read, 0); in php_random_bytes() 144 ZEND_ASSERT(read_bytes == 0); in php_random_bytes() 157 __msan_unpoison(bytes + read_bytes, n); in php_random_bytes() 159 read_bytes += (size_t) n; in php_random_bytes() 162 if (read_bytes < size) { in php_random_bytes() 193 for (read_bytes = 0; read_bytes < size; read_bytes += (size_t) n) { in php_random_bytes() 194 n = read(fd, bytes + read_bytes, size - read_bytes); in php_random_bytes() [all …]
|
H A D | php_fopen_wrapper.c | 83 size_t read_bytes = sapi_read_post_block(buf, count); in php_stream_input_read() local 85 if (read_bytes > 0) { in php_stream_input_read() 87 php_stream_write(input->body, buf, read_bytes); in php_stream_input_read()
|
/PHP-8.0/main/ |
H A D | SAPI.c | 230 size_t read_bytes; in sapi_read_post_block() local 238 if (read_bytes > 0) { in sapi_read_post_block() 240 SG(read_post_bytes) += read_bytes; in sapi_read_post_block() 242 if (read_bytes < buflen) { in sapi_read_post_block() 247 return read_bytes; in sapi_read_post_block() 262 size_t read_bytes; in SAPI_POST_READER_FUNC() local 269 if (read_bytes > 0) { in SAPI_POST_READER_FUNC() 270 if (php_stream_write(SG(request_info).request_body, buffer, read_bytes) != read_bytes) { in SAPI_POST_READER_FUNC() 283 if (read_bytes < SAPI_POST_BLOCK_SIZE) { in SAPI_POST_READER_FUNC() 497 size_t read_bytes; in sapi_deactivate_module() local [all …]
|
H A D | rfc1867.c | 651 size_t total_bytes=0, read_bytes=0; in multipart_buffer_read_body() local 653 while((read_bytes = multipart_buffer_read(self, buf, sizeof(buf), NULL))) { in multipart_buffer_read_body() 654 out = erealloc(out, total_bytes + read_bytes + 1); in multipart_buffer_read_body() 655 memcpy(out + total_bytes, buf, read_bytes); in multipart_buffer_read_body() 656 total_bytes += read_bytes; in multipart_buffer_read_body()
|
/PHP-8.0/sapi/cgi/ |
H A D | cgi_main.c | 476 size_t read_bytes = 0; in sapi_cgi_read_post() local 485 while (read_bytes < count_bytes) { in sapi_cgi_read_post() 487 size_t diff = count_bytes - read_bytes; in sapi_cgi_read_post() 492 tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post() 497 read_bytes += tmp_read_bytes; in sapi_cgi_read_post() 499 return read_bytes; in sapi_cgi_read_post() 504 size_t read_bytes = 0; in sapi_fcgi_read_post() local 512 while (read_bytes < count_bytes) { in sapi_fcgi_read_post() 513 size_t diff = count_bytes - read_bytes; in sapi_fcgi_read_post() 520 read_bytes += tmp_read_bytes; in sapi_fcgi_read_post() [all …]
|
/PHP-8.0/sapi/fpm/fpm/ |
H A D | fpm_main.c | 430 uint32_t read_bytes = 0; in sapi_cgi_read_post() local 437 while (read_bytes < count_bytes) { in sapi_cgi_read_post() 455 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post() 457 tmp_read_bytes = read(request_body_fd, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post() 462 read_bytes += tmp_read_bytes; in sapi_cgi_read_post() 464 return read_bytes; in sapi_cgi_read_post()
|
Completed in 25 milliseconds