Home
last modified time | relevance | path

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

123456

/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_log.c237 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", env ? env : "-"); in fpm_log_write()
250 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.content_length); in fpm_log_write()
264 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.memory); in fpm_log_write()
270 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%lu", proc.memory / 1024); in fpm_log_write()
342 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%ld", (long)getpid()); in fpm_log_write()
348 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%ld", (long)getppid()); in fpm_log_write()
354 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", proc.query_string); in fpm_log_write()
366 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", proc.request_uri); in fpm_log_write()
373 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", tmp ? tmp : "-"); in fpm_log_write()
397 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.5/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()
/PHP-5.5/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.5/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.5/ext/standard/
H A Dinfo.c138 snprintf(reg_name, sizeof(reg_name), "Registered %s", name); in php_info_print_stream_hash()
724 snprintf(buf, bufsize, "i%d", SysInfo.dwProcessorType); in php_get_windows_cpu()
730 snprintf(buf, bufsize, "Alpha %d", SysInfo.wProcessorLevel); in php_get_windows_cpu()
736 snprintf(buf, bufsize, "IA64"); in php_get_windows_cpu()
740 snprintf(buf, bufsize, "IA32"); in php_get_windows_cpu()
745 snprintf(buf, bufsize, "AMD64"); in php_get_windows_cpu()
750 snprintf(buf, bufsize, "Unknown"); in php_get_windows_cpu()
827 snprintf(tmp_uname, sizeof(tmp_uname), "%d.%d.%d", in php_get_uname()
833 snprintf(tmp_uname, sizeof(tmp_uname), "libc-%d.%d.%d #%d", in php_get_uname()
858 snprintf(tmp_uname, sizeof(tmp_uname), "%s %s %s %s %s", in php_get_uname()
[all …]
H A Dhead.c120 snprintf(cookie, len + 100, "Set-Cookie: %s=deleted; expires=%s; Max-Age=0", name, dt); in php_setcookie()
123 snprintf(cookie, len + 100, "Set-Cookie: %s=%s", name, value ? encoded_value : ""); in php_setcookie()
141 snprintf(tsdelta, sizeof(tsdelta), "%li", (long) difftime(expires, time(NULL))); in php_setcookie()
/PHP-5.5/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.5/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.5/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.c74 snprintf(buf, sizeof(buf), "%s statistics", plugin_header->plugin_name); in mysqlnd_minfo_dump_plugin_stats()
153 snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_cmd_buffer_size)); in PHP_MINFO_FUNCTION()
155 snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_read_buffer_size)); in PHP_MINFO_FUNCTION()
157 snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_read_timeout)); in PHP_MINFO_FUNCTION()
/PHP-5.5/ext/opcache/
H A Dzend_accelerator_module.c439 snprintf(buf, sizeof(buf), "%ld", ZCSG(hits)); in zend_accel_info()
445 snprintf(buf, sizeof(buf), "%ld", zend_shared_alloc_get_free_memory()); in zend_accel_info()
447 snprintf(buf, sizeof(buf), "%ld", ZSMMG(wasted_shared_memory)); in zend_accel_info()
451 snprintf(buf, sizeof(buf), "%ld", ZCSG(interned_strings_top) - ZCSG(interned_strings_start)); in zend_accel_info()
453 snprintf(buf, sizeof(buf), "%ld", ZCSG(interned_strings_end) - ZCSG(interned_strings_top)); in zend_accel_info()
457 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_direct_entries); in zend_accel_info()
459 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_entries); in zend_accel_info()
461 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).max_num_entries); in zend_accel_info()
463 snprintf(buf, sizeof(buf), "%ld", ZCSG(oom_restarts)); in zend_accel_info()
465 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash_restarts)); in zend_accel_info()
[all …]
/PHP-5.5/ext/standard/tests/general_functions/
H A D008.phpt7 // this checks f,g,G conversion for snprintf/spprintf
/PHP-5.5/ext/ereg/
H A Dregex.patch32 + snprintf(convbuf, sizeof(convbuf), "REG_0x%x", target);
58 + snprintf(localbuf, bufsize, "%d", r->code);
/PHP-5.5/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.5/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.5/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.5/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.5/Zend/
H A Dzend_config.w32.h50 #define snprintf _snprintf macro
/PHP-5.5/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.5/win32/
H A Dsendmail.c64snprintf(*error_message, sizeof(SMTP_ERROR_RESPONSE_SPEC) + strlen(response), SMTP_ERROR_RESPONSE_…
299 snprintf(*error_message, HOST_NAME_LEN + 128, in TSendMail()
410 snprintf(Buffer, sizeof(Buffer), "HELO %s\r\n", LocalHost); in SendText()
710 snprintf(header_buffer, MAIL_BUFFER_SIZE, "Date: %s\r\n", dt); in PostHeader()
985 result = snprintf(Buf, MAIL_BUFFER_SIZE, FormatString , tmpAddress1+1); in FormatEmailAddress()
989 return snprintf(Buf, MAIL_BUFFER_SIZE , FormatString , EmailAddress ); in FormatEmailAddress()

Completed in 60 milliseconds

123456