Home
last modified time | relevance | path

Searched refs:snprintf (Results 1 – 25 of 122) sorted by relevance

12345

/PHP-5.4/sapi/fpm/fpm/
H A Dfpm_log.c235 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", env ? env : "-"); in fpm_log_write()
248 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.content_length); in fpm_log_write()
262 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.memory); in fpm_log_write()
268 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%lu", proc.memory / 1024); in fpm_log_write()
340 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%ld", (long)getpid()); in fpm_log_write()
346 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%ld", (long)getppid()); in fpm_log_write()
352 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", proc.query_string); in fpm_log_write()
364 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", proc.request_uri); in fpm_log_write()
371 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", tmp ? tmp : "-"); in fpm_log_write()
395 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", tmp); in fpm_log_write()
[all …]
H A Dzlog.c74 len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec); in zlog_print_time()
76 len += snprintf(timebuf + len, timebuf_len - len, "] "); in zlog_print_time()
133 …len += snprintf(buf, buf_size, "[%s] %s(), line %d: ", level_names[flags & ZLOG_LEVEL_MASK], funct… in zlog_ex()
135 len += snprintf(buf, buf_size, "[%s] ", level_names[flags & ZLOG_LEVEL_MASK]); in zlog_ex()
146 …len += snprintf(buf + len, buf_size - len, "%s: pid %d, %s(), line %d: ", level_names[flags & ZLOG… in zlog_ex()
148 …len += snprintf(buf + len, buf_size - len, "%s: %s(), line %d: ", level_names[flags & ZLOG_LEVEL_M… in zlog_ex()
151 len += snprintf(buf + len, buf_size - len, "%s: ", level_names[flags & ZLOG_LEVEL_MASK]); in zlog_ex()
170 len += snprintf(buf + len, buf_size - len, ": %s (%d)", strerror(saved_errno), saved_errno); in zlog_ex()
/PHP-5.4/ext/xmlrpc/libxmlrpc/
H A Dxmlrpc_win32.h9 #ifndef snprintf
10 # define snprintf _snprintf macro
H A Dacinclude.m47 strtoul strtoull snprintf \
H A Dxml_to_soap.c93 snprintf(buf, sizeof(buf), "%s", array_type); in parse_array_type_info()
459 snprintf(buf, sizeof(buf), "%s[%i]", type, XMLRPC_VectorSize(node)); in SOAP_to_xml_element_worker()
505 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueInt(node)); in SOAP_to_xml_element_worker()
510 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueBoolean(node)); in SOAP_to_xml_element_worker()
515 snprintf(buf, BUF_SIZE, "%f", XMLRPC_GetValueDouble(node)); in SOAP_to_xml_element_worker()
631 snprintf(buf, sizeof(buf), "%s%s", in SOAP_REQUEST_to_xml_element()
H A Dxml_to_dandarpc.c209 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueInt(node)); in DANDARPC_to_xml_element_worker()
214 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueBoolean(node)); in DANDARPC_to_xml_element_worker()
219 snprintf(buf, BUF_SIZE, "%f", XMLRPC_GetValueDouble(node)); in DANDARPC_to_xml_element_worker()
/PHP-5.4/ext/zip/lib/
H A Dzip_win32.h20 #ifndef snprintf
21 # define snprintf _snprintf macro
H A Dzip_error_to_str.c51 return snprintf(buf, len, "Unknown error %d", ze); in zip_error_to_str()
68 return snprintf(buf, len, "%s%s%s", in zip_error_to_str()
/PHP-5.4/main/
H A Dsnprintf.h104 #ifdef snprintf
105 #undef snprintf
107 #define snprintf ap_php_snprintf macro
H A Drfc1867.c929 snprintf(param, MAX_SIZE_ANONNAME, "%u", anonindex++);
1125 snprintf(lbuf, llen, "%s_name[%s]", abuf, array_index);
1127 snprintf(lbuf, llen, "%s_name", param);
1148 snprintf(lbuf, llen, "%s[name]", param);
1167 snprintf(lbuf, llen, "%s_type[%s]", abuf, array_index);
1169 snprintf(lbuf, llen, "%s_type", param);
1179 snprintf(lbuf, llen, "%s[type]", param);
1207 snprintf(lbuf, llen, "%s[tmp_name]", param);
1232 snprintf(lbuf, llen, "%s[error]", param);
1240 snprintf(lbuf, llen, "%s_size", param);
[all …]
/PHP-5.4/ext/standard/
H A Dinfo.c146 snprintf(reg_name, sizeof(reg_name), "Registered %s", name); in php_info_print_stream_hash()
526 snprintf(buf, bufsize, "i%d", SysInfo.dwProcessorType); in php_get_windows_cpu()
532 snprintf(buf, bufsize, "Alpha %d", SysInfo.wProcessorLevel); in php_get_windows_cpu()
538 snprintf(buf, bufsize, "IA64"); in php_get_windows_cpu()
542 snprintf(buf, bufsize, "IA32"); in php_get_windows_cpu()
547 snprintf(buf, bufsize, "AMD64"); in php_get_windows_cpu()
552 snprintf(buf, bufsize, "Unknown"); in php_get_windows_cpu()
629 snprintf(tmp_uname, sizeof(tmp_uname), "%d.%d.%d", in php_get_uname()
635 snprintf(tmp_uname, sizeof(tmp_uname), "libc-%d.%d.%d #%d", in php_get_uname()
660 snprintf(tmp_uname, sizeof(tmp_uname), "%s %s %s %s %s", in php_get_uname()
[all …]
H A Dhttp_fopen_wrapper.c538 if (snprintf(scratch, scratch_len, "Authorization: Basic %s\r\n", tmp) > 0) { in php_stream_url_wrap_http_ex()
549 if (snprintf(scratch, scratch_len, "From: %s\r\n", FG(from_address)) > 0) in php_stream_url_wrap_http_ex()
557 if (snprintf(scratch, scratch_len, "Host: %s:%i\r\n", resource->host, resource->port) > 0) in php_stream_url_wrap_http_ex()
560 if (snprintf(scratch, scratch_len, "Host: %s\r\n", resource->host) > 0) { in php_stream_url_wrap_http_ex()
829 snprintf(loc_path, sizeof(loc_path) - 1, "%s%s", resource->path, location); in php_stream_url_wrap_http_ex()
831 snprintf(loc_path, sizeof(loc_path) - 1, "%s/%s", resource->path, location); in php_stream_url_wrap_http_ex()
834 snprintf(loc_path, sizeof(loc_path) - 1, "/%s", location); in php_stream_url_wrap_http_ex()
840snprintf(new_path, sizeof(new_path) - 1, "%s://%s:%d%s", resource->scheme, resource->host, resourc… in php_stream_url_wrap_http_ex()
842snprintf(new_path, sizeof(new_path) - 1, "%s://%s%s", resource->scheme, resource->host, loc_path); in php_stream_url_wrap_http_ex()
/PHP-5.4/sapi/aolserver/
H A Daolserver.c216 snprintf(buf, 511, "%s/%s", Ns_InfoServerName(), Ns_InfoServerVersion()); in php_info_aolserver()
218 snprintf(buf, 511, "%d day(s), %02d:%02d:%02d", in php_info_aolserver()
316 snprintf(buf, NS_BUF_SIZE, "HTTP_%s", key); in php_ns_sapi_register_variables()
329 snprintf(buf, NS_BUF_SIZE, "%s/%s", Ns_InfoServerName(), Ns_InfoServerVersion()); in php_ns_sapi_register_variables()
331 snprintf(buf, NS_BUF_SIZE, "HTTP/%1.1f", NSG(conn)->request->version); in php_ns_sapi_register_variables()
343 snprintf(buf, NS_BUF_SIZE, "%d", Ns_ConnPeerPort(NSG(conn))); in php_ns_sapi_register_variables()
346 snprintf(buf, NS_BUF_SIZE, "%d", Ns_ConnPort(NSG(conn))); in php_ns_sapi_register_variables()
359 snprintf(buf, NS_BUF_SIZE, "%d", Ns_InfoBootTime()); in php_ns_sapi_register_variables()
/PHP-5.4/ext/ereg/regex/
H A Dregerror.c89 snprintf(convbuf, sizeof(convbuf), "REG_0x%x", target); in regerror()
128 snprintf(localbuf, bufsize, "%d", r->code);
/PHP-5.4/ext/mysqlnd/
H A Dmysqlnd_debug.c87 snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid); in MYSQLND_METHOD()
97 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD()
108 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD()
120 snprintf(file_buffer, sizeof(file_buffer) - 1, "%14s: ", file); in MYSQLND_METHOD()
124 snprintf(line_buffer, sizeof(line_buffer) - 1, "%5u: ", line); in MYSQLND_METHOD()
128 snprintf(level_buffer, sizeof(level_buffer) - 1, "%4u: ", level); in MYSQLND_METHOD()
185 snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid); in MYSQLND_METHOD()
195 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD()
206 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD()
218 snprintf(file_buffer, sizeof(file_buffer) - 1, "%14s: ", file); in MYSQLND_METHOD()
[all …]
H A Dphp_mysqlnd.c106 snprintf(buf, sizeof(buf), "%s statistics", plugin_header->plugin_name); in mysqlnd_minfo_dump_plugin_stats()
179 snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_cmd_buffer_size)); in PHP_MINFO_FUNCTION()
181 snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_read_buffer_size)); in PHP_MINFO_FUNCTION()
183 snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_read_timeout)); in PHP_MINFO_FUNCTION()
/PHP-5.4/ext/standard/tests/general_functions/
H A D008.phpt7 // this checks f,g,G conversion for snprintf/spprintf
/PHP-5.4/ext/gd/libgd/
H A Dgdtest.c59 snprintf (of, sizeof(of), "%s.png", argv[1]); in main()
91 snprintf (of, sizeof(of), "%s.gd2", argv[1]); in main()
126 snprintf (of, sizeof(of), "%s.gd", argv[1]); in main()
183 snprintf (of, sizeof(of), "%s.snk", argv[1]); in main()
/PHP-5.4/sapi/apache/
H A Dphp_apache.c202 snprintf(output_buf, sizeof(output_buf), "%d", APACHE_RELEASE); in PHP_MINFO_FUNCTION()
205 snprintf(output_buf, sizeof(output_buf), "%d", MODULE_MAGIC_NUMBER); in PHP_MINFO_FUNCTION()
207 snprintf(output_buf, sizeof(output_buf), "%s:%u", serv->server_hostname, serv->port); in PHP_MINFO_FUNCTION()
210 snprintf(output_buf, sizeof(output_buf), "%s(%d)/%d", user_name, (int)user_id, (int)group_id); in PHP_MINFO_FUNCTION()
212snprintf(output_buf, sizeof(output_buf), "Per Child: %d - Keep Alive: %s - Max Per Connection: %d"… in PHP_MINFO_FUNCTION()
215snprintf(output_buf, sizeof(output_buf), "Connection: %d - Keep-Alive: %d", serv->timeout, serv->k… in PHP_MINFO_FUNCTION()
/PHP-5.4/ext/com_dotnet/
H A Dcom_dotnet.c207 snprintf(buf, sizeof(buf), "Failed to init .Net runtime [%s] %s", where, err); in PHP_FUNCTION()
222 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] %s", where, err); in PHP_FUNCTION()
235 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] %s", where, err); in PHP_FUNCTION()
312 snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] [0x%08x] %s", where, hr, err); in PHP_FUNCTION()
/PHP-5.4/sapi/apache2handler/
H A Dphp_functions.c399 snprintf(tmp, sizeof(tmp), "%d", MODULE_MAGIC_NUMBER); in PHP_MINFO_FUNCTION()
406 snprintf(tmp, sizeof(tmp), "%s:%u", serv->server_hostname, serv->port); in PHP_MINFO_FUNCTION()
411snprintf(tmp, sizeof(tmp), "%s(%d)/%d", ap_unixd_config.user_name, ap_unixd_config.user_id, ap_uni… in PHP_MINFO_FUNCTION()
413snprintf(tmp, sizeof(tmp), "%s(%d)/%d", unixd_config.user_name, unixd_config.user_id, unixd_config… in PHP_MINFO_FUNCTION()
419snprintf(tmp, sizeof(tmp), "Per Child: %d - Keep Alive: %s - Max Per Connection: %d", max_requests… in PHP_MINFO_FUNCTION()
/PHP-5.4/Zend/
H A Dzend_config.w32.h50 #define snprintf _snprintf macro
/PHP-5.4/sapi/tux/
H A Dphp_tux.c218 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()
/PHP-5.4/win32/
H A Dsendmail.c63snprintf(*error_message, sizeof(SMTP_ERROR_RESPONSE_SPEC) + strlen(response), SMTP_ERROR_RESPONSE_…
298 snprintf(*error_message, HOST_NAME_LEN + 128, in TSendMail()
409 snprintf(Buffer, sizeof(Buffer), "HELO %s\r\n", LocalHost); in SendText()
709 snprintf(header_buffer, MAIL_BUFFER_SIZE, "Date: %s\r\n", dt); in PostHeader()
984 result = snprintf(Buf, MAIL_BUFFER_SIZE, FormatString , tmpAddress1+1); in FormatEmailAddress()
988 return snprintf(Buf, MAIL_BUFFER_SIZE , FormatString , EmailAddress ); in FormatEmailAddress()
/PHP-5.4/ext/calendar/
H A Dcalendar.c408 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year); in PHP_FUNCTION()
439 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year); in PHP_FUNCTION()
472 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year); in PHP_FUNCTION()
603 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year); in PHP_FUNCTION()
611snprintf(hebdate, sizeof(hebdate), "%s %s %s", heb_number_to_chars(day, fl, &dayp), JewishMonthHeb… in PHP_FUNCTION()
653 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year); in PHP_FUNCTION()

Completed in 69 milliseconds

12345