Home
last modified time | relevance | path

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

/php-src/ext/random/
H A Dcsprng.c101 size_t read_bytes = 0; in php_random_bytes_ex()
108 while (read_bytes < size) { in php_random_bytes_ex()
117 size_t amount_to_read = size - read_bytes; in php_random_bytes_ex()
132 ZEND_ASSERT(read_bytes == 0); in php_random_bytes_ex()
145 __msan_unpoison(bytes + read_bytes, n); in php_random_bytes_ex()
147 read_bytes += (size_t) n; in php_random_bytes_ex()
150 if (read_bytes < size) { in php_random_bytes_ex()
191 read_bytes = 0; in php_random_bytes_ex()
192 while (read_bytes < size) { in php_random_bytes_ex()
194 ssize_t n = read(fd, bytes + read_bytes, size - read_bytes); in php_random_bytes_ex()
[all …]
/php-src/main/
H A DSAPI.c234 size_t read_bytes; in sapi_read_post_block() local
242 if (read_bytes > 0) { in sapi_read_post_block()
244 SG(read_post_bytes) += read_bytes; in sapi_read_post_block()
246 if (read_bytes < buflen) { in sapi_read_post_block()
251 return read_bytes; in sapi_read_post_block()
268 size_t read_bytes; in SAPI_POST_READER_FUNC() local
275 if (read_bytes > 0) { in SAPI_POST_READER_FUNC()
276 if (php_stream_write(SG(request_info).request_body, buffer, read_bytes) != read_bytes) { in SAPI_POST_READER_FUNC()
289 if (read_bytes < SAPI_POST_BLOCK_SIZE) { in SAPI_POST_READER_FUNC()
503 size_t read_bytes; in sapi_deactivate_module() local
[all …]
H A Drfc1867.c629 size_t total_bytes=0, read_bytes=0; in multipart_buffer_read_body() local
631 while((read_bytes = multipart_buffer_read(self, buf, sizeof(buf), NULL))) { in multipart_buffer_read_body()
632 out = erealloc(out, total_bytes + read_bytes + 1); in multipart_buffer_read_body()
633 memcpy(out + total_bytes, buf, read_bytes); in multipart_buffer_read_body()
634 total_bytes += read_bytes; in multipart_buffer_read_body()
/php-src/sapi/cgi/
H A Dcgi_main.c480 size_t read_bytes = 0; in sapi_cgi_read_post() local
489 while (read_bytes < count_bytes) { in sapi_cgi_read_post()
491 size_t diff = count_bytes - read_bytes; in sapi_cgi_read_post()
496 tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
501 read_bytes += tmp_read_bytes; in sapi_cgi_read_post()
503 return read_bytes; in sapi_cgi_read_post()
508 size_t read_bytes = 0; in sapi_fcgi_read_post() local
516 while (read_bytes < count_bytes) { in sapi_fcgi_read_post()
517 size_t diff = count_bytes - read_bytes; in sapi_fcgi_read_post()
524 read_bytes += tmp_read_bytes; in sapi_fcgi_read_post()
[all …]
/php-src/ext/standard/
H A Dphp_fopen_wrapper.c83 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-src/sapi/fpm/fpm/
H A Dfpm_main.c432 uint32_t read_bytes = 0; in sapi_cgi_read_post() local
439 while (read_bytes < count_bytes) { in sapi_cgi_read_post()
457 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
459 tmp_read_bytes = read(request_body_fd, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
464 read_bytes += tmp_read_bytes; in sapi_cgi_read_post()
466 return read_bytes; in sapi_cgi_read_post()

Completed in 33 milliseconds