Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 25 of 337) sorted by last modified time

12345678910>>...14

/PHP-5.5/win32/
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);
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 …]
/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/sapi/isapi/
H A Dphp5isapi.c875 char buf[1024]; in HttpExtensionProc() local
904 _snprintf(buf, sizeof(buf)-1,"PHP has encountered a Stack overflow"); in HttpExtensionProc()
905 php_isapi_report_exception(buf, strlen(buf) TSRMLS_CC); in HttpExtensionProc()
907 …_snprintf(buf, sizeof(buf)-1,"PHP has encountered an Access Violation at %p", e->ExceptionRecord->… in HttpExtensionProc()
908 php_isapi_report_exception(buf, strlen(buf) TSRMLS_CC); in HttpExtensionProc()
911 …_snprintf(buf, sizeof(buf)-1,"PHP has encountered an Unhandled Exception Code %d at %p", e->Except… in HttpExtensionProc()
912 php_isapi_report_exception(buf, strlen(buf) TSRMLS_CC); in HttpExtensionProc()
/PHP-5.5/sapi/isapi/stresstest/
H A Dstresstest.cpp159 char buf[COMPARE_BUF_SIZE]; in CompareStringWithFile() local
169 readbytes = fread(buf, 1, sizeof(buf), fp); in CompareStringWithFile()
174 || memcmp(buf, str+offset, readbytes)!=NULL) { in CompareStringWithFile()
677 char buf[MAX_PATH]; in stress_main() local
684 _snprintf(buf, sizeof(buf)-1, "%d", ECB.cbTotalBytes); in stress_main()
685 context.env["CONTENT_LENGTH"]=buf; in stress_main()
/PHP-5.5/sapi/litespeed/
H A Dlsapi_main.c241 char buf[128]; in litespeed_php_import_environment_variables() local
242 char **env, *p, *t = buf; in litespeed_php_import_environment_variables()
243 size_t alloc_size = sizeof(buf); in litespeed_php_import_environment_variables()
294 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in litespeed_php_import_environment_variables()
300 if (t != buf && t != NULL) { in litespeed_php_import_environment_variables()
435 char buf[8192]; in sapi_lsapi_log_message() local
439 snprintf( buf, 8191, "%s\n", message ); in sapi_lsapi_log_message()
440 message = buf; in sapi_lsapi_log_message()
H A Dlsapilib.c95 uint32 buf[4]; member
3296 t = (uint32) ((unsigned) buf[3] << 8 | buf[2]) << 16 | in byteReverse()
3297 ((unsigned) buf[1] << 8 | buf[0]); in byteReverse()
3432 a = buf[0]; in lsapi_MD5Transform()
3433 b = buf[1]; in lsapi_MD5Transform()
3434 c = buf[2]; in lsapi_MD5Transform()
3435 d = buf[3]; in lsapi_MD5Transform()
3505 buf[0] += a; in lsapi_MD5Transform()
3506 buf[1] += b; in lsapi_MD5Transform()
3507 buf[2] += c; in lsapi_MD5Transform()
[all …]
/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/fpm/fpm/
H A Dfpm_php_trace.c49 char buf[buf_size]; in fpm_php_trace_dump() local
55 zlog_print_time(&tv, buf, buf_size); in fpm_php_trace_dump()
57 fprintf(slowlog, "\n%s [pool %s] pid %d\n", buf, child->wp->config->name, (int) pid); in fpm_php_trace_dump()
59 if (0 > fpm_trace_get_strz(buf, buf_size, (long) &SG(request_info).path_translated)) { in fpm_php_trace_dump()
63 fprintf(slowlog, "script_filename = %s\n", buf); in fpm_php_trace_dump()
84 …if (0 > fpm_trace_get_strz(buf, buf_size, function + offsetof(zend_function, common.function_name)… in fpm_php_trace_dump()
88 fprintf(slowlog, "%s()", buf); in fpm_php_trace_dump()
97 *buf = '\0'; in fpm_php_trace_dump()
102 if (0 > fpm_trace_get_strz(buf, buf_size, op_array + offsetof(zend_op_array, filename))) { in fpm_php_trace_dump()
122 fprintf(slowlog, " %s:%u\n", *buf ? buf : "unknown", lineno); in fpm_php_trace_dump()
H A Dfpm_stdio.c90 char buf[max_buf_size]; in fpm_stdio_child_said() local
112 res = read(fd, buf + in_buf, max_buf_size - 1 - in_buf); in fpm_stdio_child_said()
145 buf[in_buf] = '\0'; in fpm_stdio_child_said()
159 nl = strchr(buf, '\n'); in fpm_stdio_child_said()
167 …(int) child->pid, is_stdout ? "stdout" : "stderr", buf, is_last_message ? ", pipe is closed" : ""); in fpm_stdio_child_said()
170 int out_buf = 1 + nl - buf; in fpm_stdio_child_said()
171 memmove(buf, buf + out_buf, in_buf - out_buf); in fpm_stdio_child_said()
H A Dfpm_trace.c11 int fpm_trace_get_strz(char *buf, size_t sz, long addr) /* {{{ */ in fpm_trace_get_strz() argument
30 *buf++ = lc[i]; in fpm_trace_get_strz()
33 *buf = '\0'; in fpm_trace_get_strz()
H A Dfpm_trace.h14 int fpm_trace_get_strz(char *buf, size_t sz, long addr);
H A Dfpm_trace_pread.c38 char buf[128]; in fpm_trace_ready() local
40 sprintf(buf, "/proc/%d/" PROC_MEM_FILE, (int) pid); in fpm_trace_ready()
41 mem_file = open(buf, O_RDONLY); in fpm_trace_ready()
43 zlog(ZLOG_SYSERROR, "failed to open %s", buf); in fpm_trace_ready()
H A Dzlog.c104 char buf[MAX_LINE_LENGTH]; in zlog_ex() local
113 len = vsnprintf(buf, buf_size, fmt, args); in zlog_ex()
119 external_logger(flags & ZLOG_LEVEL_MASK, buf, len); in zlog_ex()
121 memset(buf, '\0', buf_size); in zlog_ex()
142 len = zlog_print_time(&tv, buf, buf_size); in zlog_ex()
161 len += vsnprintf(buf + len, buf_size - len, fmt, args); in zlog_ex()
184 buf[len] = '\0'; in zlog_ex()
185 php_syslog(syslog_priorities[zlog_level], "%s", buf); in zlog_ex()
186 buf[len++] = '\n'; in zlog_ex()
190 buf[len++] = '\n'; in zlog_ex()
[all …]
H A Dfastcgi.c433 char buf[128]; in fcgi_get_params() local
434 char *tmp = buf; in fcgi_get_params()
553 switch ((((fcgi_begin_request*)buf)->roleB1 << 8) + ((fcgi_begin_request*)buf)->roleB0) { in fcgi_read_request()
588 if (!fcgi_get_params(req, buf, buf+len)) { in fcgi_read_request()
615 if (!fcgi_get_params(req, buf, buf+len)) { in fcgi_read_request()
632 if ((p + 4 + 4 + str_length + zlen) >= (buf + sizeof(buf))) { in fcgi_read_request()
674 unsigned char buf[255]; in fcgi_read() local
748 char buf[8]; in fcgi_close() local
751 while (recv(req->fd, buf, sizeof(buf), 0) > 0) {} in fcgi_close()
757 char buf[8]; in fcgi_close()
[all …]
H A Dfpm_children.c184 char buf[128]; in fpm_children_bury() local
192 snprintf(buf, sizeof(buf), "with code %d", WEXITSTATUS(status)); in fpm_children_bury()
213 snprintf(buf, sizeof(buf), "on signal %d (%s%s)", WTERMSIG(status), signame, have_core); in fpm_children_bury()
252 …%s after %ld.%06d seconds from start", child->wp->config->name, (int) pid, buf, tv2.tv_sec, (int) … in fpm_children_bury()
295 … "oops, unknown child (%d) exited %s. Please open a bug report (https://bugs.php.net).", pid, buf); in fpm_children_bury()
/PHP-5.5/sapi/fpm/
H A Dconfig.m4251 char buf[128];
253 sprintf(buf, "/proc/%d/$proc_mem_file", getpid());
254 fd = open(buf, O_RDONLY);

Completed in 496 milliseconds

12345678910>>...14