| /PHP_TRUNK/ext/ereg/regex/ |
| H A D | regerror.c | 89 snprintf(convbuf, sizeof(convbuf), "REG_0x%x", target); 128 snprintf(localbuf, bufsize, "%d", r->code);
|
| /PHP_TRUNK/ext/xmlrpc/libxmlrpc/ |
| H A D | xml_to_dandarpc.c | 209 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueInt(node)); 214 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueBoolean(node)); 219 snprintf(buf, BUF_SIZE, "%f", XMLRPC_GetValueDouble(node));
|
| H A D | xml_to_soap.c | 93 snprintf(buf, sizeof(buf), "%s", array_type); 459 snprintf(buf, sizeof(buf), "%s[%i]", type, XMLRPC_VectorSize(node)); 505 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueInt(node)); 510 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueBoolean(node)); 515 snprintf(buf, BUF_SIZE, "%f", XMLRPC_GetValueDouble(node)); 631 snprintf(buf, sizeof(buf), "%s%s",
|
| H A D | xmlrpc_win32.h | 9 #ifndef snprintf 10 # define snprintf _snprintf macro
|
| /PHP_TRUNK/ext/zip/lib/ |
| H A D | zip_error_to_str.c | 53 return snprintf(buf, len, "Unknown error %d", ze); 70 return snprintf(buf, len, "%s%s%s",
|
| H A D | zip_win32.h | 20 #ifndef snprintf 21 # define snprintf _snprintf macro
|
| /PHP_TRUNK/sapi/fpm/fpm/ |
| H A D | zlog.c | 74 len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec); 76 len += snprintf(timebuf + len, timebuf_len - len, "] "); 133 len += snprintf(buf, buf_size, "[%s] %s(), line %d: ", level_names[flags & ZLOG_LEVEL_MASK], function, line); 135 len += snprintf(buf, buf_size, "[%s] ", level_names[flags & ZLOG_LEVEL_MASK]); 146 len += snprintf(buf + len, buf_size - len, "%s: pid %d, %s(), line %d: ", level_names[flags & ZLOG_LEVEL_MASK], getpid(), function, line); 148 len += snprintf(buf + len, buf_size - len, "%s: %s(), line %d: ", level_names[flags & ZLOG_LEVEL_MASK], function, line); 151 len += snprintf(buf + len, buf_size - len, "%s: ", level_names[flags & ZLOG_LEVEL_MASK]); 170 len += snprintf(buf + len, buf_size - len, ": %s (%d)", strerror(saved_errno), saved_errno);
|
| H A D | fpm_log.c | 196 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.2f", tms_total / fpm_scoreboard_get_tick() / (proc.cpu_duration.tv_sec + proc.cpu_duration.tv_usec / 1000000.) * 100.); 205 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec + proc.duration.tv_usec / 1000000.); 211 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec * 1000. + proc.duration.tv_usec / 1000.); 217 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%lu", proc.duration.tv_sec * 1000000UL + proc.duration.tv_usec); 235 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", env ? env : "-"); 242 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", *proc.script_filename ? proc.script_filename : "-"); 248 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.content_length); 254 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", *proc.request_method ? proc.request_method : "-"); 262 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.memory); 268 len2 = snprintf( [all...] |
| /PHP_TRUNK/win32/ |
| H A D | sendmail.c | 64 snprintf(*error_message, sizeof(SMTP_ERROR_RESPONSE_SPEC) + strlen(response), SMTP_ERROR_RESPONSE_SPEC, response); \ 295 /* 128 is safe here, the specifier in snprintf isn't longer than that */ 299 snprintf(*error_message, HOST_NAME_LEN + 128, 410 snprintf(Buffer, sizeof(Buffer), "HELO %s\r\n", LocalHost); 710 snprintf(header_buffer, MAIL_BUFFER_SIZE, "Date: %s\r\n", dt); 985 result = snprintf(Buf, MAIL_BUFFER_SIZE, FormatString , tmpAddress1+1); 989 return snprintf(Buf, MAIL_BUFFER_SIZE , FormatString , EmailAddress );
|
| /PHP_TRUNK/ext/gd/libgd/ |
| H A D | gdtest.c | 59 snprintf (of, sizeof(of), "%s.png", argv[1]); 91 snprintf (of, sizeof(of), "%s.gd2", argv[1]); 126 snprintf (of, sizeof(of), "%s.gd", argv[1]); 183 snprintf (of, sizeof(of), "%s.snk", argv[1]);
|
| /PHP_TRUNK/Zend/ |
| H A D | zend_config.w32.h | 50 #define snprintf _snprintf macro
|
| /PHP_TRUNK/ext/calendar/ |
| H A D | calendar.c | 411 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year); 448 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year); 481 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year); 612 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year); 620 snprintf(hebdate, sizeof(hebdate), "%s %s %s", heb_number_to_chars(day, fl, &dayp), JEWISH_HEB_MONTH_NAME(year)[month], heb_number_to_chars(year, fl, &yearp)); 662 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year);
|
| /PHP_TRUNK/ext/standard/ |
| H A D | datetime.c | 67 snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT",
|
| H A D | microtime.c | 86 snprintf(ret, 100, "%.8F %ld", tp.tv_usec / MICRO_IN_SEC, tp.tv_sec);
|
| H A D | info.c | 134 snprintf(reg_name, sizeof(reg_name), "Registered %s", name); 488 snprintf(buf, bufsize, "i%d", SysInfo.dwProcessorType); 491 snprintf(buf, bufsize, "MIPS R%d000", SysInfo.wProcessorLevel); 494 snprintf(buf, bufsize, "Alpha %d", SysInfo.wProcessorLevel); 497 snprintf(buf, bufsize, "PPC 6%02d", SysInfo.wProcessorLevel); 500 snprintf(buf, bufsize, "IA64"); 504 snprintf(buf, bufsize, "IA32"); 509 snprintf(buf, bufsize, "AMD64"); 514 snprintf(buf, bufsize, "Unknown"); 540 snprintf(tmp_unam [all...] |
| H A D | head.c | 120 snprintf(cookie, len + 100, "Set-Cookie: %s=deleted; expires=%s; Max-Age=0", name, dt); 123 snprintf(cookie, len + 100, "Set-Cookie: %s=%s", name, value ? encoded_value : ""); 141 snprintf(tsdelta, sizeof(tsdelta), "%li", (long) difftime(expires, time(NULL)));
|
| H A D | http_fopen_wrapper.c | 537 if (snprintf(scratch, scratch_len, "Authorization: Basic %s\r\n", tmp) > 0) { 548 if (snprintf(scratch, scratch_len, "From: %s\r\n", FG(from_address)) > 0) 556 if (snprintf(scratch, scratch_len, "Host: %s:%i\r\n", resource->host, resource->port) > 0) 559 if (snprintf(scratch, scratch_len, "Host: %s\r\n", resource->host) > 0) { 823 snprintf(loc_path, sizeof(loc_path) - 1, "%s%s", resource->path, location); 825 snprintf(loc_path, sizeof(loc_path) - 1, "%s/%s", resource->path, location); 828 snprintf(loc_path, sizeof(loc_path) - 1, "/%s", location); 834 snprintf(new_path, sizeof(new_path) - 1, "%s://%s:%d%s", resource->scheme, resource->host, resource->port, loc_path); 836 snprintf(new_path, sizeof(new_path) - 1, "%s://%s%s", resource->scheme, resource->host, loc_path);
|
| /PHP_TRUNK/main/ |
| H A D | snprintf.h | 24 Comparing: sprintf, snprintf, slprintf, spprintf 32 snprintf knows the buffers size and will not write behind it. But you will 42 slprintf same as snprintf with the difference that it actually returns the 45 spprintf is the dynamical version of snprintf. It allocates the buffer in size 46 as needed and allows a maximum setting as snprintf (turn this feature 48 snprintf and offers possible memory leakes if you miss freeing the 60 sprintf(buffer, "test"); | snprintf(buffer, MAX, "test"); | spprintf(&buffer, MAX, "text"); 104 #ifdef snprintf 105 #undef snprintf macro 107 #define snprintf ap_php_snprint macro [all...] |
| /PHP_TRUNK/sapi/aolserver/ |
| H A D | aolserver.c | 216 snprintf(buf, 511, "%s/%s", Ns_InfoServerName(), Ns_InfoServerVersion()); 218 snprintf(buf, 511, "%d day(s), %02d:%02d:%02d", 316 snprintf(buf, NS_BUF_SIZE, "HTTP_%s", key); 329 snprintf(buf, NS_BUF_SIZE, "%s/%s", Ns_InfoServerName(), Ns_InfoServerVersion()); 331 snprintf(buf, NS_BUF_SIZE, "HTTP/%1.1f", NSG(conn)->request->version); 343 snprintf(buf, NS_BUF_SIZE, "%d", Ns_ConnPeerPort(NSG(conn))); 346 snprintf(buf, NS_BUF_SIZE, "%d", Ns_ConnPort(NSG(conn))); 359 snprintf(buf, NS_BUF_SIZE, "%d", Ns_InfoBootTime());
|
| /PHP_TRUNK/sapi/apache/ |
| H A D | php_apache.c | 202 snprintf(output_buf, sizeof(output_buf), "%d", APACHE_RELEASE); 205 snprintf(output_buf, sizeof(output_buf), "%d", MODULE_MAGIC_NUMBER); 207 snprintf(output_buf, sizeof(output_buf), "%s:%u", serv->server_hostname, serv->port); 210 snprintf(output_buf, sizeof(output_buf), "%s(%d)/%d", user_name, (int)user_id, (int)group_id); 212 snprintf(output_buf, sizeof(output_buf), "Per Child: %d - Keep Alive: %s - Max Per Connection: %d", max_requests_per_child, serv->keep_alive ? "on":"off", serv->keep_alive_max); 215 snprintf(output_buf, sizeof(output_buf), "Connection: %d - Keep-Alive: %d", serv->timeout, serv->keep_alive_timeout);
|
| /PHP_TRUNK/sapi/apache2handler/ |
| H A D | php_functions.c | 399 snprintf(tmp, sizeof(tmp), "%d", MODULE_MAGIC_NUMBER); 406 snprintf(tmp, sizeof(tmp), "%s:%u", serv->server_hostname, serv->port); 411 snprintf(tmp, sizeof(tmp), "%s(%d)/%d", ap_unixd_config.user_name, ap_unixd_config.user_id, ap_unixd_config.group_id); 413 snprintf(tmp, sizeof(tmp), "%s(%d)/%d", unixd_config.user_name, unixd_config.user_id, unixd_config.group_id); 419 snprintf(tmp, sizeof(tmp), "Per Child: %d - Keep Alive: %s - Max Per Connection: %d", max_requests, (serv->keep_alive ? "on":"off"), serv->keep_alive_max);
|
| /PHP_TRUNK/sapi/tux/ |
| H A D | php_tux.c | 218 snprintf(buf, sizeof(buf), "%d", CGI_SERVER_PORT(TG(req))); 222 snprintf(buf, BUF_SIZE, "/%s", TG(hc)->pathinfo); 225 snprintf(buf, BUF_SIZE, "/%s", TG(hc)->origfilename); 244 snprintf(buf, sizeof(buf), "%ld", (long) TG(hc)->contentlength);
|
| /PHP_TRUNK/ext/mysqlnd/ |
| H A D | mysqlnd_debug.c | 87 snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid); 97 snprintf(time_buffer, sizeof(time_buffer) - 1, 108 snprintf(time_buffer, sizeof(time_buffer) - 1, 120 snprintf(file_buffer, sizeof(file_buffer) - 1, "%14s: ", file); 124 snprintf(line_buffer, sizeof(line_buffer) - 1, "%5u: ", line); 128 snprintf(level_buffer, sizeof(level_buffer) - 1, "%4u: ", level); 185 snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid); 195 snprintf(time_buffer, sizeof(time_buffer) - 1, 206 snprintf(time_buffer, sizeof(time_buffer) - 1, 218 snprintf(file_buffe [all...] |
| H A D | php_mysqlnd.c | 74 snprintf(buf, sizeof(buf), "%s statistics", plugin_header->plugin_name); 153 snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_cmd_buffer_size)); 155 snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_read_buffer_size)); 157 snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_read_timeout));
|
| /PHP_TRUNK/ext/opcache/ |
| H A D | zend_accelerator_module.c | 405 snprintf(buf, sizeof(buf), "%ld", ZCSG(hits)); 407 snprintf(buf, sizeof(buf), "%ld", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blacklist_misses)); 409 snprintf(buf, sizeof(buf), "%ld", ZCG(accel_directives).memory_consumption-zend_shared_alloc_get_free_memory()-ZSMMG(wasted_shared_memory)); 411 snprintf(buf, sizeof(buf), "%ld", zend_shared_alloc_get_free_memory()); 413 snprintf(buf, sizeof(buf), "%ld", ZSMMG(wasted_shared_memory)); 415 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_direct_entries); 417 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_entries); 419 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).max_num_entries); 421 snprintf(buf, sizeof(buf), "%ld", ZCSG(oom_restarts)); 423 snprintf(bu [all...] |