Searched defs:str_length (Results 1 - 25 of 25) sorted by relevance

/PHP_TRUNK/sapi/isapi/stresstest/
H A Dstresstest.cpp155 BOOL CompareStringWithFile(const char *filename, const char *str, unsigned int str_length) argument
173 if (offset+readbytes > str_length
/PHP_TRUNK/ext/readline/
H A Dreadline_cli.c82 static size_t readline_shell_write(const char *str, size_t str_length) /* {{{ */ argument
85 smart_str_appendl(CLIR_G(prompt_str), str, str_length); local
86 return str_length;
93 return fwrite(str, 1, MIN(str_length, 16384), pager_pipe);
100 static size_t readline_shell_ub_write(const char *str, size_t str_length) /* {{{ */ argument
105 php_last_char = str[str_length-1];
/PHP_TRUNK/main/
H A Dmain.c1916 static size_t php_output_wrapper(const char *str, size_t str_length) argument
1918 return php_output_write(str, str_length);
/PHP_TRUNK/sapi/aolserver/
H A Daolserver.c89 php_ns_sapi_ub_write(const char *str, uint str_length) argument
94 while (str_length > 0) {
95 n = Ns_ConnWrite(NSG(conn), (void *) str, str_length);
102 str_length -= n;
/PHP_TRUNK/sapi/apache/
H A Dmod_php7.c95 static int sapi_apache_ub_write(const char *str, uint str_length) argument
100 ret = rwrite(str, str_length, (request_rec *) SG(server_context));
102 if (ret != str_length) {
/PHP_TRUNK/sapi/apache2filter/
H A Dsapi_apache2.c67 php_apache_sapi_ub_write(const char *str, uint str_length) argument
78 if (str_length == 0) return 0;
83 b = apr_bucket_transient_create(str, str_length, ba);
90 return str_length; /* we always consume all the data passed to us. */
/PHP_TRUNK/sapi/apache2handler/
H A Dsapi_apache2.c79 php_apache_sapi_ub_write(const char *str, size_t str_length) argument
87 if (ap_rwrite(str, str_length, r) < 0) {
91 return str_length; /* we always consume all the data passed to us. */
/PHP_TRUNK/sapi/apache_hooks/
H A Dmod_php7.c240 static int sapi_apache_ub_write(const char *str, uint str_length) argument
245 ret = rwrite(str, str_length, (request_rec *) SG(server_context));
247 if (ret != str_length) {
/PHP_TRUNK/sapi/caudium/
H A Dcaudium.c212 php_caudium_low_ub_write(const char *str, uint str_length) { argument
221 to_write = make_shared_binary_string(str, str_length);
227 if(sent_bytes != str_length) {
242 php_caudium_sapi_ub_write(const char *str, uint str_length) argument
248 for(sent_bytes=0;sent_bytes < str_length;)
251 written = fd_write(fd, str + sent_bytes, str_length - sent_bytes);
272 THREAD_SAFE_RUN(sent_bytes = php_caudium_low_ub_write(str, str_length),
/PHP_TRUNK/sapi/cli/
H A Dphp_cli.c259 PHP_CLI_API size_t sapi_cli_single_write(const char *str, size_t str_length) /* {{{ */ argument
269 shell_wrote = cli_shell_callbacks.cli_shell_write(str, str_length);
277 ret = write(STDOUT_FILENO, str, str_length);
286 ret = fwrite(str, 1, MIN(str_length, 16384), stdout);
292 static size_t sapi_cli_ub_write(const char *str, size_t str_length) /* {{{ */ argument
295 size_t remaining = str_length;
298 if (!str_length) {
304 ub_wrote = cli_shell_callbacks.cli_shell_ub_write(str, str_length);
H A Dphp_cli_server.c494 static size_t sapi_cli_server_ub_write(const char *str, size_t str_length) /* {{{ */ argument
500 return php_cli_server_client_send_through(client, str, str_length);
/PHP_TRUNK/sapi/continuity/
H A Dcapi.c130 static int sapi_capi_ub_write(const char *str, unsigned int str_length) argument
136 retval = httpFwrite(rc->t, (char *) str, str_length);
/PHP_TRUNK/sapi/embed/
H A Dphp_embed.c51 static inline size_t php_embed_single_write(const char *str, size_t str_length) argument
56 ret = write(STDOUT_FILENO, str, str_length);
62 ret = fwrite(str, 1, MIN(str_length, 16384), stdout);
68 static size_t php_embed_ub_write(const char *str, size_t str_length) argument
71 size_t remaining = str_length;
83 return str_length;
/PHP_TRUNK/sapi/isapi/
H A Dphp7isapi.c205 static int sapi_isapi_ub_write(const char *str, uint str_length) argument
207 DWORD num_bytes = str_length;
/PHP_TRUNK/sapi/litespeed/
H A Dlsapi_main.c129 static int sapi_lsapi_ub_write(const char *str, uint str_length) argument
134 ret = LSAPI_Write( str, str_length );
135 if ( ret < str_length ) {
137 return str_length - ret;
140 remain = str_length;
145 return str_length - remain;
151 return str_length;
/PHP_TRUNK/sapi/milter/
H A Dphp_milter.c851 static int sapi_milter_ub_write(const char *str, uint str_length) argument
853 return str_length;
/PHP_TRUNK/sapi/nsapi/
H A Dnsapi.c453 static int sapi_nsapi_ub_write(const char *str, unsigned int str_length) argument
462 retval = net_write(rc->sn->csd, (char *)str, str_length);
/PHP_TRUNK/sapi/phttpd/
H A Dphttpd.c56 php_phttpd_sapi_ub_write(const char *str, uint str_length) argument
60 sent_bytes = fd_write(PHG(cip)->fd, str, str_length);
/PHP_TRUNK/sapi/pi3web/
H A Dpi3web_sapi.c123 static int zend_pi3web_ub_write(const char *str, uint str_length) argument
125 DWORD num_bytes = str_length;
133 if (num_bytes != str_length)
/PHP_TRUNK/sapi/roxen/
H A Droxen.c214 php_roxen_low_ub_write(const char *str, uint str_length) { argument
226 to_write = make_shared_binary_string(str, str_length);
232 if(sent_bytes != str_length) {
245 php_roxen_sapi_ub_write(const char *str, uint str_length) argument
254 for(sent_bytes=0;sent_bytes < str_length;)
257 written = fd_write(fd, str + sent_bytes, str_length - sent_bytes);
277 THREAD_SAFE_RUN(sent_bytes = php_roxen_low_ub_write(str, str_length),
/PHP_TRUNK/sapi/thttpd/
H A Dthttpd.c67 static int sapi_thttpd_ub_write(const char *str, uint str_length) argument
73 smart_str_appendl_ex(&TG(sbuf), str, str_length, 1); local
74 return str_length;
77 while (str_length > 0) {
78 PHP_SYS_CALL(n = send(TG(hc)->conn_fd, str, str_length, 0););
82 smart_str_appendl_ex(&TG(sbuf), str, str_length, 1); local
84 return sent + str_length;
92 str_length -= n;
/PHP_TRUNK/sapi/tux/
H A Dphp_tux.c52 static int sapi_tux_ub_write(const char *str, uint str_length) argument
64 vec[n++].iov_len = str_length;
71 TG(req)->bytes_sent += str_length;
74 return str_length;
77 estr = str + str_length;
92 n = str_length - (estr - str);
/PHP_TRUNK/sapi/webjames/
H A Dwebjames.c42 static int sapi_webjames_ub_write(const char *str, uint str_length) argument
49 bytes = webjames_writebuffer(WG(conn),str,str_length);
58 str_length -= bytes;
60 } while (str_length);
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c278 static inline size_t sapi_cgi_single_write(const char *str, size_t str_length) argument
283 ret = write(STDOUT_FILENO, str, str_length);
289 ret = fwrite(str, 1, MIN(str_length, 16384), stdout);
294 static size_t sapi_cgi_ub_write(const char *str, size_t str_length) argument
297 size_t remaining = str_length;
304 return str_length - remaining;
310 return str_length;
313 static size_t sapi_fcgi_ub_write(const char *str, size_t str_length) argument
316 size_t remaining = str_length;
325 return str_length
[all...]
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c277 static inline size_t sapi_cgibin_single_write(const char *str, uint str_length) argument
284 ret = fcgi_write(request, FCGI_STDOUT, str, str_length);
293 ret = write(STDOUT_FILENO, str, str_length);
299 return fwrite(str, 1, MIN(str_length, 16384), stdout);
303 static size_t sapi_cgibin_ub_write(const char *str, size_t str_length) argument
306 uint remaining = str_length;
313 return str_length - remaining;
319 return str_length;

Completed in 50 milliseconds