/PHP-8.0/sapi/fpm/fpm/ |
H A D | fpm_log.c | 235 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 D | zlog.c | 84 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-8.0/main/ |
H A D | snprintf.h | 100 #ifdef snprintf 101 #undef snprintf 103 #define snprintf ap_php_snprintf macro
|
H A D | rfc1867.c | 940 snprintf(param, MAX_SIZE_ANONNAME, "%u", anonindex++); 1140 snprintf(lbuf, llen, "%s_name[%s]", abuf, array_index); 1142 snprintf(lbuf, llen, "%s_name", param); 1163 snprintf(lbuf, llen, "%s[name]", param); 1182 snprintf(lbuf, llen, "%s_type[%s]", abuf, array_index); 1184 snprintf(lbuf, llen, "%s_type", param); 1194 snprintf(lbuf, llen, "%s[type]", param); 1226 snprintf(lbuf, llen, "%s[tmp_name]", param); 1270 snprintf(lbuf, llen, "%s[error]", param); 1278 snprintf(lbuf, llen, "%s_size", param); [all …]
|
/PHP-8.0/ext/standard/ |
H A D | info.c | 123 snprintf(reg_name, sizeof(reg_name), "Registered %s", name); in php_info_print_stream_hash() 603 snprintf(buf, bufsize, "i%d", SysInfo.dwProcessorType); in php_get_windows_cpu() 609 snprintf(buf, bufsize, "Alpha %d", SysInfo.wProcessorLevel); in php_get_windows_cpu() 612 snprintf(buf, bufsize, "PPC 6%02d", SysInfo.wProcessorLevel); in php_get_windows_cpu() 615 snprintf(buf, bufsize, "IA64"); in php_get_windows_cpu() 619 snprintf(buf, bufsize, "IA32"); in php_get_windows_cpu() 624 snprintf(buf, bufsize, "AMD64"); in php_get_windows_cpu() 629 snprintf(buf, bufsize, "Unknown"); in php_get_windows_cpu() 662 snprintf(tmp_uname, sizeof(tmp_uname), "build %d", dwBuild); in php_get_uname() 714 snprintf(tmp_uname, sizeof(tmp_uname), "%s %s %s %s %s", in php_get_uname() [all …]
|
H A D | datetime.c | 53 snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT", in php_std_date()
|
H A D | hrtime.c | 145 int st = snprintf(s, len, "%llu", i); \
|
H A D | http_fopen_wrapper.c | 874 snprintf(loc_path, sizeof(loc_path) - 1, "%s%s", ZSTR_VAL(resource->path), location); in php_stream_url_wrap_http_ex() 876 snprintf(loc_path, sizeof(loc_path) - 1, "%s/%s", ZSTR_VAL(resource->path), location); in php_stream_url_wrap_http_ex() 879 snprintf(loc_path, sizeof(loc_path) - 1, "/%s", location); in php_stream_url_wrap_http_ex() 885 …snprintf(new_path, sizeof(new_path) - 1, "%s://%s:%d%s", ZSTR_VAL(resource->scheme), ZSTR_VAL(reso… in php_stream_url_wrap_http_ex() 887 …snprintf(new_path, sizeof(new_path) - 1, "%s://%s%s", ZSTR_VAL(resource->scheme), ZSTR_VAL(resourc… in php_stream_url_wrap_http_ex()
|
/PHP-8.0/ext/mysqlnd/ |
H A D | mysqlnd_debug.c | 74 snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid); in MYSQLND_METHOD() 84 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD() 95 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD() 107 snprintf(file_buffer, sizeof(file_buffer) - 1, "%14s: ", file); in MYSQLND_METHOD() 111 snprintf(line_buffer, sizeof(line_buffer) - 1, "%5u: ", line); in MYSQLND_METHOD() 115 snprintf(level_buffer, sizeof(level_buffer) - 1, "%4u: ", level); in MYSQLND_METHOD() 171 snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid); in MYSQLND_METHOD() 181 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD() 192 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD() 204 snprintf(file_buffer, sizeof(file_buffer) - 1, "%14s: ", file); in MYSQLND_METHOD() [all …]
|
H A D | mysql_float_to_double.h | 43 snprintf(num_buf, MAX_CHAR_BUF_LEN, "%.*F", decimals, fp4); in mysql_float_to_double()
|
H A D | php_mysqlnd.c | 102 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_cmd_buffer_size)); in PHP_MINFO_FUNCTION() 104 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_read_buffer_size)); in PHP_MINFO_FUNCTION() 106 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_read_timeout)); in PHP_MINFO_FUNCTION()
|
/PHP-8.0/ext/standard/tests/general_functions/ |
H A D | 008.phpt | 7 // this checks f,g,G conversion for snprintf/spprintf
|
/PHP-8.0/Zend/ |
H A D | zend_config.w32.h | 46 #define snprintf _snprintf macro
|
H A D | zend_long.h | 73 int st = snprintf((s), (len), ZEND_LONG_FMT, (i)); \ 97 int st = snprintf((s), (len), ZEND_LONG_FMT, (i)); \
|
/PHP-8.0/ext/opcache/ |
H A D | zend_accelerator_module.c | 466 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hits)); 468 …snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(… 472 snprintf(buf, sizeof(buf), "%zu", zend_shared_alloc_get_free_memory()); 474 snprintf(buf, sizeof(buf), "%zu", ZSMMG(wasted_shared_memory)); 479 …snprintf(buf, sizeof(buf), "%zu", (size_t)((char*)ZCSG(interned_strings).end - (char*)ZCSG(interne… 482 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_direct_entries); 484 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_entries); 486 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).max_num_entries); 488 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(oom_restarts)); 490 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hash_restarts)); [all …]
|
/PHP-8.0/ext/gd/libgd/ |
H A D | gdtest.c | 59 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-8.0/sapi/apache2handler/ |
H A D | php_functions.c | 398 snprintf(tmp, sizeof(tmp), "%d", MODULE_MAGIC_NUMBER); in PHP_MINFO_FUNCTION() 405 snprintf(tmp, sizeof(tmp), "%s:%u", serv->server_hostname, serv->port); in PHP_MINFO_FUNCTION() 410 …snprintf(tmp, sizeof(tmp), "%s(%d)/%d", ap_unixd_config.user_name, ap_unixd_config.user_id, ap_uni… in PHP_MINFO_FUNCTION() 412 …snprintf(tmp, sizeof(tmp), "%s(%d)/%d", unixd_config.user_name, unixd_config.user_id, unixd_config… in PHP_MINFO_FUNCTION() 418 …snprintf(tmp, sizeof(tmp), "Per Child: %d - Keep Alive: %s - Max Per Connection: %d", max_requests… in PHP_MINFO_FUNCTION()
|
/PHP-8.0/sapi/litespeed/ |
H A D | lscriu.c | 293 snprintf(sem_name, sizeof sem_name - 1, "lsphp[hash=%s].is_ready", in LSCRIU_Wink_Server_is_Ready() 296 snprintf(sem_name, sizeof sem_name - 1, "lsphp[euid=0x%x].is_ready", in LSCRIU_Wink_Server_is_Ready() 316 snprintf(pchFile, max_len, "%s%s", pchDefaultSocketPath, in LSCRIU_Error_File_Name() 387 int n = snprintf(chFullMessage, sizeof(chFullMessage), in LSCRIU_Restored_Error()
|
/PHP-8.0/ext/fileinfo/libmagic/ |
H A D | der.c | 232 snprintf(buf, len, "%#x", tag); in der_tag() 245 return snprintf(buf, blen, "%.*s", len, RCAST(const char *, q)); in der_data() 249 return snprintf(buf, blen, in der_data() 260 snprintf(buf + z, blen - z, "%.2x", d[i]); in der_data()
|
H A D | funcs.c | 89 snprintf(msg, mlen, "field %s too large: %d", what, fw); in file_checkfield() 107 snprintf(msg, mlen, "* not allowed in format"); in file_checkfmt() 122 snprintf(msg, mlen, "bad format char: %c", *p); in file_checkfmt() 733 return snprintf(str, len, "%.8X-%.4hX-%.4hX-%.2hhX%.2hhX-" in file_print_guid()
|
H A D | cdf_time.c | 175 (void)snprintf(buf, 26, "*Bad* %#16.16" INT64_T_FORMAT "x\n", in cdf_ctime()
|
/PHP-8.0/ext/com_dotnet/ |
H A D | com_dotnet.c | 248 snprintf(buf, sizeof(buf), "Failed to init .Net runtime [%s] %s", where, err); in PHP_METHOD() 261 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] %s", where, err); in PHP_METHOD() 273 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] %s", where, err); in PHP_METHOD() 347 snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] [0x%08x] %s", where, hr, err); in PHP_METHOD()
|
/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg_io.c | 291 snprintf(port_buf, sizeof(port_buf), "%u", port); 303 snprintf(buf, sizeof(buf), "Could not translate address '%s'", addr); 312 snprintf(buf, sizeof(buf), "Host '%s' not found. %s", addr, estrdup(gai_strerror(rc)));
|
/PHP-8.0/win32/ |
H A D | sendmail.c | 56 …snprintf(*error_message, sizeof(SMTP_ERROR_RESPONSE_SPEC) + strlen(response), SMTP_ERROR_RESPONSE_… 272 snprintf(*error_message, HOST_NAME_LEN + 128, in TSendMail() 414 snprintf(PW32G(mail_buffer), sizeof(PW32G(mail_buffer)), "HELO %s\r\n", PW32G(mail_local_host)); in SendText() 738 snprintf(header_buffer, MAIL_BUFFER_SIZE, "Date: %s\r\n", ZSTR_VAL(dt)); in PostHeader() 1072 result = snprintf(Buf, MAIL_BUFFER_SIZE, FormatString, tmpAddress); in FormatEmailAddress() 1076 return snprintf(Buf, MAIL_BUFFER_SIZE , FormatString , EmailAddress ); in FormatEmailAddress()
|
/PHP-8.0/ext/xsl/ |
H A D | php_xsl.c | 249 snprintf(buffer, 128, "%d.%d.%d", major, minor, subminor); in PHP_MINFO_FUNCTION() 254 snprintf(buffer, 128, "%d.%d.%d", major, minor, subminor); in PHP_MINFO_FUNCTION()
|