Home
last modified time | relevance | path

Searched refs:buf (Results 326 – 337 of 337) sorted by path

1...<<11121314

/PHP-5.5/sapi/milter/
H A Dphp_milter.c876 static int sapi_milter_post_read(char *buf, uint count_bytes TSRMLS_DC) in sapi_milter_post_read() argument
/PHP-5.5/sapi/nsapi/
H A Dnsapi.c664 char buf[32]; in sapi_nsapi_register_server_variables() local
717 slprintf(buf, sizeof(buf), "%d", conf_getglobals()->Vport); in sapi_nsapi_register_server_variables()
718 php_register_variable("SERVER_PORT", buf, track_vars_array TSRMLS_CC); in sapi_nsapi_register_server_variables()
773 slprintf(buf, sizeof(buf), "%d", rc->http_error); in sapi_nsapi_register_server_variables()
774 php_register_variable("ERROR_TYPE", buf, track_vars_array TSRMLS_CC); in sapi_nsapi_register_server_variables()
/PHP-5.5/sapi/phttpd/
H A Dphttpd.c129 php_phttpd_sapi_read_post(char *buf, uint count_bytes TSRMLS_DC) in php_phttpd_sapi_read_post() argument
/PHP-5.5/sapi/roxen/
H A Droxen.c390 INLINE static int php_roxen_low_read_post(char *buf, uint count_bytes) in php_roxen_low_read_post() argument
407 MEMCPY(buf, Pike_sp[-1].u.string->str, in php_roxen_low_read_post()
409 buf[total_read] = '\0'; in php_roxen_low_read_post()
417 php_roxen_sapi_read_post(char *buf, uint count_bytes TSRMLS_DC) in php_roxen_sapi_read_post() argument
420 THREAD_SAFE_RUN(total_read = php_roxen_low_read_post(buf, count_bytes), "read post"); in php_roxen_sapi_read_post()
518 zvalue->value.str.len = strlen(buf); \
519 zvalue->value.str.val = estrndup(buf, zvalue->value.str.len); \
527 char buf[512]; in php_roxen_hash_environment() local
548 strncpy(buf, ind->u.string->str, buf_len); in php_roxen_hash_environment()
549 buf[buf_len] = '\0'; /* Terminate correctly */ in php_roxen_hash_environment()
[all …]
/PHP-5.5/sapi/thttpd/
H A Dthttpd.c175 char buf[1024], *p; in sapi_thttpd_send_headers() local
184 p = smart_str_print_long(buf+sizeof(buf)-1, in sapi_thttpd_send_headers()
268 #define ADD_STRING_EX(name,buf) \ argument
269 php_register_variable(name, buf, track_vars_array TSRMLS_CC)
270 #define ADD_STRING(name) ADD_STRING_EX((name), buf)
274 char buf[BUF_SIZE + 1]; in sapi_thttpd_register_variables() local
296 smart_str_print_long(buf + sizeof(buf) - 1, in sapi_thttpd_register_variables()
299 buf[0] = '/'; in sapi_thttpd_register_variables()
300 memcpy(buf + 1, TG(hc)->pathinfo, strlen(TG(hc)->pathinfo) + 1); in sapi_thttpd_register_variables()
303 buf[0] = '/'; in sapi_thttpd_register_variables()
[all …]
H A Dthttpd_patch254 - char buf[1000];
274 - (void) my_snprintf( buf, sizeof(buf),
318 - (void) my_snprintf( buf, sizeof(buf),
327 - (void) my_snprintf( buf, sizeof(buf),
346 - (void) my_snprintf( buf, sizeof(buf),
383 (void) my_snprintf( buf, sizeof(buf),
403 r = fread( buf, 1, sizeof(buf) - 1, fp );
607 cp = &buf[11];
701 char buf[2];
704 - r = recv( hc->conn_fd, buf, sizeof(buf), MSG_PEEK );
[all …]
/PHP-5.5/sapi/tux/
H A Dphp_tux.c101 char buf[1024]; in sapi_tux_send_headers() local
189 php_register_variable(name, buf, track_vars_array TSRMLS_CC)
193 char buf[BUF_SIZE + 1]; in sapi_tux_register_variables() local
197 ctr.line = buf; in sapi_tux_register_variables()
198 ctr.line_len = slprintf(buf, sizeof(buf), "Server: %s", TUXAPI_version); in sapi_tux_register_variables()
213 memcpy(buf, p, strlen(p) + 1); in sapi_tux_register_variables()
218 snprintf(buf, sizeof(buf), "%d", CGI_SERVER_PORT(TG(req))); in sapi_tux_register_variables()
222 snprintf(buf, BUF_SIZE, "/%s", TG(hc)->pathinfo); in sapi_tux_register_variables()
225 snprintf(buf, BUF_SIZE, "/%s", TG(hc)->origfilename); in sapi_tux_register_variables()
244 snprintf(buf, sizeof(buf), "%ld", (long) TG(hc)->contentlength); in sapi_tux_register_variables()
[all …]
/PHP-5.5/sapi/webjames/
H A Dwebjames.c107 snprintf(buf, BUF_SIZE, "%d", WG(conn)->field);\
108 php_register_variable(name, buf, track_vars_array TSRMLS_CC);\
118 char buf[BUF_SIZE + 1]; in sapi_webjames_register_variables() local
121 buf[BUF_SIZE] = '\0'; in sapi_webjames_register_variables()
141 …snprintf(buf, BUF_SIZE, "%d.%d.%d.%d", WG(conn)->ipaddr[0], WG(conn)->ipaddr[1], WG(conn)->ipaddr[… in sapi_webjames_register_variables()
142 ADD_STRING("REMOTE_ADDR", buf); in sapi_webjames_register_variables()
/PHP-5.5/win32/
H A Dglob.c631 char buf[MAXPATHLEN]; local
649 if (g_Ctoc(pathbuf, buf, sizeof(buf)))
843 char buf[MAXPATHLEN]; local
846 strlcpy(buf, ".", sizeof buf);
848 if (g_Ctoc(str, buf, sizeof(buf)))
855 return(opendir(buf));
864 char buf[MAXPATHLEN]; local
866 if (g_Ctoc(fn, buf, sizeof(buf)))
881 if (g_Ctoc(fn, buf, sizeof(buf)))
901 g_Ctoc(str, buf, len) in g_Ctoc() argument
[all …]
H A Dsendmail.c882 static char buf[MAIL_BUFFER_SIZE]; in Ack() local
889 if ((rlen = recv(sc, buf + Index, ((MAIL_BUFFER_SIZE) - 1) - Received, 0)) < 1) { in Ack()
893 buf[Received] = 0; in Ack()
901 if (Received < 5 || buf[Received - 1] != '\n' || buf[Received - 2] != '\r') { in Ack()
905 if (buf[0] > '3') { in Ack()
911 if (buf[Received-1] == '\n' || buf[Received-1] == '\r') { in Ack()
913 if (buf[Received-2] == '\r' || buf[Received-2] == '\n') { in Ack()
919 *server_response = estrndup(buf, Received - dec); in Ack()
H A Dwinutil.c27 char *buf = NULL; in php_win32_error_to_msg() local
31 NULL, error, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&buf, 0, NULL in php_win32_error_to_msg()
34 return (buf ? (char *) buf : ""); in php_win32_error_to_msg()
80 PHPAPI int php_win32_get_random_bytes(unsigned char *buf, size_t size) { /* {{{ */ in php_win32_get_random_bytes() argument
118 ret = CryptGenRandom(hCryptProv, size, buf); in php_win32_get_random_bytes()
H A Dwinutil.h23 PHPAPI php_win32_get_random_bytes(unsigned char *buf, size_t size);

Completed in 77 milliseconds

1...<<11121314