Home
last modified time | relevance | path

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

/PHP-7.3/ext/standard/
H A Drandom.c98 size_t read_bytes = 0; in php_random_bytes()
103 while (read_bytes < size) { in php_random_bytes()
113 size_t amount_to_read = size - read_bytes; in php_random_bytes()
115 n = syscall(SYS_getrandom, bytes + read_bytes, amount_to_read, 0); in php_random_bytes()
117 n = getrandom(bytes + read_bytes, amount_to_read, 0); in php_random_bytes()
125 ZEND_ASSERT(read_bytes == 0); in php_random_bytes()
136 read_bytes += (size_t) n; in php_random_bytes()
139 if (read_bytes < size) { in php_random_bytes()
170 for (read_bytes = 0; read_bytes < size; read_bytes += (size_t) n) { in php_random_bytes()
171 n = read(fd, bytes + read_bytes, size - read_bytes); in php_random_bytes()
[all …]
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.3/main/
H A DSAPI.c240 size_t read_bytes; in sapi_read_post_block() local
248 if (read_bytes > 0) { in sapi_read_post_block()
250 SG(read_post_bytes) += read_bytes; in sapi_read_post_block()
252 if (read_bytes < buflen) { in sapi_read_post_block()
257 return read_bytes; in sapi_read_post_block()
272 size_t read_bytes; in SAPI_POST_READER_FUNC() local
279 if (read_bytes > 0) { in SAPI_POST_READER_FUNC()
280 if (php_stream_write(SG(request_info).request_body, buffer, read_bytes) != read_bytes) { in SAPI_POST_READER_FUNC()
293 if (read_bytes < SAPI_POST_BLOCK_SIZE) { in SAPI_POST_READER_FUNC()
507 size_t read_bytes; in sapi_deactivate() local
[all …]
H A Drfc1867.c666 size_t total_bytes=0, read_bytes=0; in multipart_buffer_read_body() local
668 while((read_bytes = multipart_buffer_read(self, buf, sizeof(buf), NULL))) { in multipart_buffer_read_body()
669 out = erealloc(out, total_bytes + read_bytes + 1); in multipart_buffer_read_body()
670 memcpy(out + total_bytes, buf, read_bytes); in multipart_buffer_read_body()
671 total_bytes += read_bytes; in multipart_buffer_read_body()
/PHP-7.3/sapi/cgi/
H A Dcgi_main.c487 size_t read_bytes = 0; in sapi_cgi_read_post() local
496 while (read_bytes < count_bytes) { in sapi_cgi_read_post()
498 size_t diff = count_bytes - read_bytes; in sapi_cgi_read_post()
503 tmp_read_bytes = read(STDIN_FILENO, 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()
515 size_t read_bytes = 0; in sapi_fcgi_read_post() local
523 while (read_bytes < count_bytes) { in sapi_fcgi_read_post()
524 size_t diff = count_bytes - read_bytes; in sapi_fcgi_read_post()
531 read_bytes += tmp_read_bytes; in sapi_fcgi_read_post()
[all …]
/PHP-7.3/sapi/fpm/fpm/
H A Dfpm_main.c441 uint32_t read_bytes = 0; in sapi_cgi_read_post() local
448 while (read_bytes < count_bytes) { in sapi_cgi_read_post()
466 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
468 tmp_read_bytes = read(request_body_fd, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
473 read_bytes += tmp_read_bytes; in sapi_cgi_read_post()
475 return read_bytes; in sapi_cgi_read_post()

Completed in 41 milliseconds