Searched defs:count_bytes (Results 1 - 20 of 20) sorted by relevance

/PHP_TRUNK/sapi/aolserver/
H A Daolserver.c165 php_ns_sapi_read_post(char *buf, uint count_bytes) argument
170 max_read = MIN(NSG(data_avail), count_bytes);
/PHP_TRUNK/sapi/apache/
H A Dmod_php7.c36 static int sapi_apache_read_post(char *buffer, uint count_bytes);
125 static int sapi_apache_read_post(char *buffer, uint count_bytes) argument
142 while (total_read_bytes<count_bytes) {
144 read_bytes = get_client_block(r, buffer+total_read_bytes, count_bytes-total_read_bytes);
/PHP_TRUNK/sapi/apache2filter/
H A Dsapi_apache2.c154 php_apache_sapi_read_post(char *buf, uint count_bytes) argument
162 len = count_bytes;
164 switch (apr_brigade_partition(ctx->post_data, count_bytes, &partition)) {
/PHP_TRUNK/sapi/apache2handler/
H A Dsapi_apache2.c187 php_apache_sapi_read_post(char *buf, size_t count_bytes) argument
196 len = count_bytes;
208 if (tlen == count_bytes || !len) {
212 len = count_bytes - tlen;
/PHP_TRUNK/sapi/apache_hooks/
H A Dmod_php7.c35 static int sapi_apache_read_post(char *buffer, uint count_bytes);
270 static int sapi_apache_read_post(char *buffer, uint count_bytes) argument
287 while (total_read_bytes<count_bytes) {
289 read_bytes = get_client_block(r, buffer+total_read_bytes, count_bytes-total_read_bytes);
/PHP_TRUNK/sapi/caudium/
H A Dcaudium.c398 INLINE static int php_caudium_low_read_post(char *buf, uint count_bytes) argument
409 push_int(count_bytes);
422 php_caudium_sapi_read_post(char *buf, uint count_bytes) argument
425 THREAD_SAFE_RUN(total_read = php_caudium_low_read_post(buf, count_bytes), "read post");
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c512 static size_t sapi_cgi_read_post(char *buffer, size_t count_bytes) argument
522 count_bytes = MIN(count_bytes, remaining_bytes);
523 while (read_bytes < count_bytes) {
525 size_t diff = count_bytes - read_bytes;
530 tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, count_bytes - read_bytes);
540 static size_t sapi_fcgi_read_post(char *buffer, size_t count_bytes) argument
547 if (remaining < count_bytes) {
548 count_bytes = remaining;
550 while (read_bytes < count_bytes) {
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c624 static size_t sapi_cli_server_read_post(char *buf, size_t count_bytes) /* {{{ */ argument
629 size_t nbytes_copied = MIN(client->post_read_offset + count_bytes, content_len) - client->post_read_offset;
/PHP_TRUNK/sapi/continuity/
H A Dcapi.c198 static int sapi_capi_read_post(char *buffer, uint count_bytes) argument
204 max_read = MIN(count_bytes, SG(request_info).content_length);
208 max_read = MIN(count_bytes, (SG(request_info).content_length - rc->read_post_bytes));
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c500 static size_t sapi_cgi_read_post(char *buffer, size_t count_bytes) argument
506 if (remaining < count_bytes) {
507 count_bytes = remaining;
509 while (read_bytes < count_bytes) {
528 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes);
530 tmp_read_bytes = read(request_body_fd, buffer + read_bytes, count_bytes - read_bytes);
/PHP_TRUNK/sapi/isapi/
H A Dphp7isapi.c327 static int sapi_isapi_read_post(char *buffer, uint count_bytes) argument
335 read_from_buf = MIN(lpECB->cbAvailable-SG(read_post_bytes), count_bytes);
339 if (read_from_buf<count_bytes
343 read_from_input = MIN(count_bytes-read_from_buf, lpECB->cbTotalBytes-SG(read_post_bytes)-read_from_buf);
/PHP_TRUNK/sapi/litespeed/
H A Dlsapi_main.c368 static int sapi_lsapi_read_post(char *buffer, uint count_bytes) argument
371 return LSAPI_ReadReqBody( buffer, (unsigned long long)count_bytes );
/PHP_TRUNK/sapi/milter/
H A Dphp_milter.c861 static int sapi_milter_post_read(char *buf, uint count_bytes) argument
/PHP_TRUNK/sapi/nsapi/
H A Dnsapi.c590 static int sapi_nsapi_read_post(char *buffer, uint count_bytes) argument
601 count_bytes = MIN(count_bytes, SG(request_info).content_length-rc->read_post_bytes);
612 length = MIN(count_bytes, length);
624 while (content_length > 0 && bytes_read < count_bytes) {
625 int bytes_to_read = count_bytes - bytes_read;
/PHP_TRUNK/sapi/phttpd/
H A Dphttpd.c129 php_phttpd_sapi_read_post(char *buf, uint count_bytes) argument
135 max_read = MIN(NSG(data_avail), count_bytes);
/PHP_TRUNK/sapi/pi3web/
H A Dpi3web_sapi.c212 static int sapi_pi3web_read_post(char *buffer, uint count_bytes) argument
220 read_from_buf = MIN(lpCB->cbAvailable-SG(read_post_bytes), count_bytes);
224 if (read_from_buf<count_bytes
228 read_from_input = MIN(count_bytes-read_from_buf, lpCB->cbTotalBytes-SG(read_post_bytes)-read_from_buf);
/PHP_TRUNK/sapi/roxen/
H A Droxen.c390 INLINE static int php_roxen_low_read_post(char *buf, uint count_bytes) argument
403 push_int(count_bytes);
416 php_roxen_sapi_read_post(char *buf, uint count_bytes) argument
419 THREAD_SAFE_RUN(total_read = php_roxen_low_read_post(buf, count_bytes), "read post");
/PHP_TRUNK/sapi/thttpd/
H A Dthttpd.c248 static int sapi_thttpd_read_post(char *buffer, uint count_bytes) argument
253 read_bytes = MIN(TG(unconsumed_length), count_bytes);
/PHP_TRUNK/sapi/tux/
H A Dphp_tux.c160 static int sapi_tux_read_post(char *buffer, uint count_bytes) argument
165 TG(req)->objectlen = count_bytes;
/PHP_TRUNK/sapi/webjames/
H A Dwebjames.c87 static int sapi_webjames_read_post(char *buffer, uint count_bytes) argument
91 if (count_bytes+WG(bodyread)>WG(conn)->bodysize) count_bytes=WG(conn)->bodysize-WG(bodyread);
92 memcpy(buffer, WG(conn)->body+WG(bodyread), count_bytes);
93 WG(bodyread)+=count_bytes;
94 return count_bytes;

Completed in 35 milliseconds