Home
last modified time | relevance | path

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

12345

/PHP-7.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, "%zu", 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.c84 len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec); in zlog_print_time()
86 len += snprintf(timebuf + len, timebuf_len - len, "] "); in zlog_print_time()
163 len += snprintf(buf, buf_size, "[%s] %s(), line %d: ", in zlog_buf_prefix()
166 len += snprintf(buf, buf_size, "[%s] ", level_names[flags & ZLOG_LEVEL_MASK]); in zlog_buf_prefix()
177 len += snprintf(buf + len, buf_size - len, "%s: pid %d, %s(), line %d: ", in zlog_buf_prefix()
180 len += snprintf(buf + len, buf_size - len, "%s: %s(), line %d: ", in zlog_buf_prefix()
184 len += snprintf(buf + len, buf_size - len, "%s: ", in zlog_buf_prefix()
223 len += snprintf(buf + len, buf_size - len, in vzlog()
/PHP-7.4/main/
H A Dsnprintf.h102 #ifdef snprintf
103 #undef snprintf
105 #define snprintf ap_php_snprintf macro
H A Drfc1867.c937 snprintf(param, MAX_SIZE_ANONNAME, "%u", anonindex++);
1137 snprintf(lbuf, llen, "%s_name[%s]", abuf, array_index);
1139 snprintf(lbuf, llen, "%s_name", param);
1160 snprintf(lbuf, llen, "%s[name]", param);
1179 snprintf(lbuf, llen, "%s_type[%s]", abuf, array_index);
1181 snprintf(lbuf, llen, "%s_type", param);
1191 snprintf(lbuf, llen, "%s[type]", param);
1223 snprintf(lbuf, llen, "%s[tmp_name]", param);
1267 snprintf(lbuf, llen, "%s[error]", param);
1275 snprintf(lbuf, llen, "%s_size", param);
[all …]
/PHP-7.4/ext/standard/
H A Dinfo.c125 snprintf(reg_name, sizeof(reg_name), "Registered %s", name); in php_info_print_stream_hash()
608 snprintf(buf, bufsize, "i%d", SysInfo.dwProcessorType); in php_get_windows_cpu()
614 snprintf(buf, bufsize, "Alpha %d", SysInfo.wProcessorLevel); in php_get_windows_cpu()
617 snprintf(buf, bufsize, "PPC 6%02d", SysInfo.wProcessorLevel); in php_get_windows_cpu()
620 snprintf(buf, bufsize, "IA64"); in php_get_windows_cpu()
624 snprintf(buf, bufsize, "IA32"); in php_get_windows_cpu()
629 snprintf(buf, bufsize, "AMD64"); in php_get_windows_cpu()
634 snprintf(buf, bufsize, "Unknown"); in php_get_windows_cpu()
668 snprintf(tmp_uname, sizeof(tmp_uname), "build %d", dwBuild); in php_get_uname()
720 snprintf(tmp_uname, sizeof(tmp_uname), "%s %s %s %s %s", in php_get_uname()
[all …]
H A Ddatetime.c55 snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT", in php_std_date()
H A Dhrtime.c147 int st = snprintf(s, len, "%llu", i); \
/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_debug.c76 snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid); in MYSQLND_METHOD()
86 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD()
97 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD()
109 snprintf(file_buffer, sizeof(file_buffer) - 1, "%14s: ", file); in MYSQLND_METHOD()
113 snprintf(line_buffer, sizeof(line_buffer) - 1, "%5u: ", line); in MYSQLND_METHOD()
117 snprintf(level_buffer, sizeof(level_buffer) - 1, "%4u: ", level); in MYSQLND_METHOD()
173 snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid); in MYSQLND_METHOD()
183 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD()
194 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD()
206 snprintf(file_buffer, sizeof(file_buffer) - 1, "%14s: ", file); in MYSQLND_METHOD()
[all …]
H A Dmysql_float_to_double.h45 snprintf(num_buf, MAX_CHAR_BUF_LEN, "%.*F", decimals, fp4); in mysql_float_to_double()
H A Dphp_mysqlnd.c115 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_cmd_buffer_size)); in PHP_MINFO_FUNCTION()
117 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_read_buffer_size)); in PHP_MINFO_FUNCTION()
119 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_read_timeout)); in PHP_MINFO_FUNCTION()
/PHP-7.4/ext/standard/tests/general_functions/
H A D008.phpt7 // this checks f,g,G conversion for snprintf/spprintf
/PHP-7.4/ext/opcache/
H A Dzend_accelerator_module.c474 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hits));
476snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(…
480 snprintf(buf, sizeof(buf), "%zu", zend_shared_alloc_get_free_memory());
482 snprintf(buf, sizeof(buf), "%zu", ZSMMG(wasted_shared_memory));
487snprintf(buf, sizeof(buf), "%zu", (size_t)((char*)ZCSG(interned_strings).end - (char*)ZCSG(interne…
490 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_direct_entries);
492 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_entries);
494 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).max_num_entries);
496 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(oom_restarts));
498 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hash_restarts));
[all …]
/PHP-7.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-7.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()
220 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] %s", where, err); in PHP_FUNCTION()
232 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] %s", where, err); in PHP_FUNCTION()
314 snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] [0x%08x] %s", where, hr, err); in PHP_FUNCTION()
/PHP-7.4/Zend/
H A Dzend_long.h73 int st = snprintf((s), (len), ZEND_LONG_FMT, (i)); \
97 int st = snprintf((s), (len), ZEND_LONG_FMT, (i)); \
H A Dzend_config.w32.h46 #define snprintf _snprintf macro
/PHP-7.4/ext/xmlrpc/libxmlrpc/
H A Dxml_to_soap.c88 snprintf(buf, sizeof(buf), "%s", array_type); in parse_array_type_info()
454 snprintf(buf, sizeof(buf), "%s[%i]", type, XMLRPC_VectorSize(node)); in SOAP_to_xml_element_worker()
500 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueInt(node)); in SOAP_to_xml_element_worker()
505 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueBoolean(node)); in SOAP_to_xml_element_worker()
510 snprintf(buf, BUF_SIZE, "%f", XMLRPC_GetValueDouble(node)); in SOAP_to_xml_element_worker()
626 snprintf(buf, sizeof(buf), "%s%s", in SOAP_REQUEST_to_xml_element()
H A Dxml_to_dandarpc.c206 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueInt(node)); in DANDARPC_to_xml_element_worker()
211 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueBoolean(node)); in DANDARPC_to_xml_element_worker()
216 snprintf(buf, BUF_SIZE, "%f", XMLRPC_GetValueDouble(node)); in DANDARPC_to_xml_element_worker()
/PHP-7.4/sapi/apache2handler/
H A Dphp_functions.c401 snprintf(tmp, sizeof(tmp), "%d", MODULE_MAGIC_NUMBER); in PHP_MINFO_FUNCTION()
408 snprintf(tmp, sizeof(tmp), "%s:%u", serv->server_hostname, serv->port); in PHP_MINFO_FUNCTION()
413snprintf(tmp, sizeof(tmp), "%s(%d)/%d", ap_unixd_config.user_name, ap_unixd_config.user_id, ap_uni… in PHP_MINFO_FUNCTION()
415snprintf(tmp, sizeof(tmp), "%s(%d)/%d", unixd_config.user_name, unixd_config.user_id, unixd_config… in PHP_MINFO_FUNCTION()
421snprintf(tmp, sizeof(tmp), "Per Child: %d - Keep Alive: %s - Max Per Connection: %d", max_requests… in PHP_MINFO_FUNCTION()
/PHP-7.4/sapi/litespeed/
H A Dlscriu.c295 snprintf(sem_name, sizeof sem_name - 1, "lsphp[hash=%s].is_ready", in LSCRIU_Wink_Server_is_Ready()
298 snprintf(sem_name, sizeof sem_name - 1, "lsphp[euid=0x%x].is_ready", in LSCRIU_Wink_Server_is_Ready()
318 snprintf(pchFile, max_len, "%s%s", pchDefaultSocketPath, in LSCRIU_Error_File_Name()
389 int n = snprintf(chFullMessage, sizeof(chFullMessage), in LSCRIU_Restored_Error()
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_io.c293 snprintf(port_buf, sizeof(port_buf), "%u", port);
305 snprintf(buf, sizeof(buf), "Could not translate address '%s'", addr);
314 snprintf(buf, sizeof(buf), "Host '%s' not found. %s", addr, estrdup(gai_strerror(rc)));
/PHP-7.4/win32/
H A Dsendmail.c56snprintf(*error_message, sizeof(SMTP_ERROR_RESPONSE_SPEC) + strlen(response), SMTP_ERROR_RESPONSE_…
272 snprintf(*error_message, HOST_NAME_LEN + 128, in TSendMail()
413 snprintf(PW32G(mail_buffer), sizeof(PW32G(mail_buffer)), "HELO %s\r\n", PW32G(mail_local_host)); in SendText()
737 snprintf(header_buffer, MAIL_BUFFER_SIZE, "Date: %s\r\n", ZSTR_VAL(dt)); in PostHeader()
1071 result = snprintf(Buf, MAIL_BUFFER_SIZE, FormatString, tmpAddress); in FormatEmailAddress()
1075 return snprintf(Buf, MAIL_BUFFER_SIZE , FormatString , EmailAddress ); in FormatEmailAddress()
/PHP-7.4/ext/xsl/
H A Dphp_xsl.c261 snprintf(buffer, 128, "%d.%d.%d", major, minor, subminor); in PHP_MINFO_FUNCTION()
266 snprintf(buffer, 128, "%d.%d.%d", major, minor, subminor); in PHP_MINFO_FUNCTION()
/PHP-7.4/ext/fileinfo/libmagic/
H A Dder.c215 snprintf(buf, len, "%#x", tag); in der_tag()
230 return snprintf(buf, blen, "%.*s", len, RCAST(const char *, q)); in der_data()
238 snprintf(buf + z, blen - z, "%.2x", d[i]); in der_data()
H A Dcdf_time.c175 (void)snprintf(buf, 26, "*Bad* %#16.16" INT64_T_FORMAT "x\n", in cdf_ctime()

Completed in 542 milliseconds

12345