Searched refs:snprintf (Results 1 - 25 of 114) sorted by relevance

12345

/PHP_TRUNK/ext/ereg/regex/
H A Dregerror.c89 snprintf(convbuf, sizeof(convbuf), "REG_0x%x", target);
128 snprintf(localbuf, bufsize, "%d", r->code);
/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dxml_to_dandarpc.c209 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 Dxmlrpc_win32.h9 #ifndef snprintf
10 # define snprintf _snprintf macro
H A Dxml_to_soap.c93 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",
/PHP_TRUNK/sapi/fpm/fpm/
H A Dzlog.c74 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 Dfpm_log.c196 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/ext/gd/libgd/
H A Dgdtest.c59 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/ext/fileinfo/libmagic/
H A Dcdf_time.c175 (void)snprintf(buf, 26, "*Bad* 0x%16.16llx\n", (long long)*sec);
/PHP_TRUNK/win32/
H A Dsendmail.c64 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/zip/lib/
H A Dzip_error_to_str.c53 return snprintf(buf, len, "Unknown error %d", ze);
70 return snprintf(buf, len, "%s%s%s",
/PHP_TRUNK/ext/calendar/
H A Dcalendar.c411 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/mysqlnd/
H A Dmysqlnd_debug.c87 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 Dphp_mysqlnd.c74 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/standard/
H A Ddatetime.c67 snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT",
H A Dmicrotime.c86 snprintf(ret, 100, "%.8F %ld", tp.tv_usec / MICRO_IN_SEC, tp.tv_sec);
H A Dhead.c120 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 Dinfo.c138 snprintf(reg_name, sizeof(reg_name), "Registered %s", name);
518 snprintf(buf, bufsize, "i%d", SysInfo.dwProcessorType);
521 snprintf(buf, bufsize, "MIPS R%d000", SysInfo.wProcessorLevel);
524 snprintf(buf, bufsize, "Alpha %d", SysInfo.wProcessorLevel);
527 snprintf(buf, bufsize, "PPC 6%02d", SysInfo.wProcessorLevel);
530 snprintf(buf, bufsize, "IA64");
534 snprintf(buf, bufsize, "IA32");
539 snprintf(buf, bufsize, "AMD64");
544 snprintf(buf, bufsize, "Unknown");
570 snprintf(tmp_unam
[all...]
H A Dhttp_fopen_wrapper.c551 if (snprintf(scratch, scratch_len, "Authorization: Basic %s\r\n", tmp) > 0) {
562 if (snprintf(scratch, scratch_len, "From: %s\r\n", FG(from_address)) > 0)
570 if (snprintf(scratch, scratch_len, "Host: %s:%i\r\n", resource->host, resource->port) > 0)
573 if (snprintf(scratch, scratch_len, "Host: %s\r\n", resource->host) > 0) {
848 snprintf(loc_path, sizeof(loc_path) - 1, "%s%s", resource->path, location);
850 snprintf(loc_path, sizeof(loc_path) - 1, "%s/%s", resource->path, location);
853 snprintf(loc_path, sizeof(loc_path) - 1, "/%s", location);
859 snprintf(new_path, sizeof(new_path) - 1, "%s://%s:%d%s", resource->scheme, resource->host, resource->port, loc_path);
861 snprintf(new_path, sizeof(new_path) - 1, "%s://%s%s", resource->scheme, resource->host, loc_path);
/PHP_TRUNK/main/
H A Dsnprintf.h24 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 Daolserver.c216 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 Dphp_apache.c202 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 Dphp_functions.c399 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 Dphp_tux.c214 snprintf(buf, sizeof(buf), "%d", CGI_SERVER_PORT(TG(req)));
218 snprintf(buf, BUF_SIZE, "/%s", TG(hc)->pathinfo);
221 snprintf(buf, BUF_SIZE, "/%s", TG(hc)->origfilename);
240 snprintf(buf, sizeof(buf), "%ld", (long) TG(hc)->contentlength);
/PHP_TRUNK/Zend/
H A Dzend_config.w32.h50 #define snprintf _snprintf macro
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_module.c441 snprintf(buf, sizeof(buf), "%ld", ZCSG(hits));
443 snprintf(buf, sizeof(buf), "%ld", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blacklist_misses));
445 snprintf(buf, sizeof(buf), "%ld", ZCG(accel_directives).memory_consumption-zend_shared_alloc_get_free_memory()-ZSMMG(wasted_shared_memory));
447 snprintf(buf, sizeof(buf), "%ld", zend_shared_alloc_get_free_memory());
449 snprintf(buf, sizeof(buf), "%ld", ZSMMG(wasted_shared_memory));
453 snprintf(buf, sizeof(buf), "%ld", ZCSG(interned_strings_top) - ZCSG(interned_strings_start));
455 snprintf(buf, sizeof(buf), "%ld", ZCSG(interned_strings_end) - ZCSG(interned_strings_top));
459 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_direct_entries);
461 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_entries);
463 snprintf(bu
[all...]

Completed in 56 milliseconds

12345