Searched refs:snprintf (Results 1 - 25 of 116) 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/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/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
H A Dzend_long.h80 int st = snprintf((s), (len), ZEND_LONG_FMT, (i)); \
103 int st = snprintf((s), (len), ZEND_LONG_FMT, (i)); \
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_debug.c88 snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid);
98 snprintf(time_buffer, sizeof(time_buffer) - 1,
109 snprintf(time_buffer, sizeof(time_buffer) - 1,
121 snprintf(file_buffer, sizeof(file_buffer) - 1, "%14s: ", file);
125 snprintf(line_buffer, sizeof(line_buffer) - 1, "%5u: ", line);
129 snprintf(level_buffer, sizeof(level_buffer) - 1, "%4u: ", level);
186 snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid);
196 snprintf(time_buffer, sizeof(time_buffer) - 1,
207 snprintf(time_buffer, sizeof(time_buffer) - 1,
219 snprintf(file_buffe
[all...]
H A Dphp_mysqlnd.c65 snprintf(buf, sizeof(buf), "%s statistics", plugin_header->plugin_name);
141 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_cmd_buffer_size));
143 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_read_buffer_size));
145 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_read_timeout));
/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/ext/calendar/
H A Dcalendar.c409 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year);
446 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year);
479 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year);
610 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year);
618 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));
660 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year);
/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,
412 snprintf(Buffer, sizeof(Buffer), "HELO %s\r\n", LocalHost);
711 snprintf(header_buffer, MAIL_BUFFER_SIZE, "Date: %s\r\n", dt->val);
986 result = snprintf(Buf, MAIL_BUFFER_SIZE, FormatString , tmpAddress1+1);
990 return snprintf(Buf, MAIL_BUFFER_SIZE , FormatString , EmailAddress );
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_dotnet.c207 snprintf(buf, sizeof(buf), "Failed to init .Net runtime [%s] %s", where, err);
222 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] %s", where, err);
235 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] %s", where, err);
312 snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] [0x%08x] %s", where, hr, err);
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_module.c410 snprintf(buf, sizeof(buf), "%pd", (zend_ulong)ZCSG(hits));
412 snprintf(buf, sizeof(buf), "%pd", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blacklist_misses));
414 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ZCG(accel_directives).memory_consumption-zend_shared_alloc_get_free_memory()-ZSMMG(wasted_shared_memory));
416 snprintf(buf, sizeof(buf), "%pd", zend_shared_alloc_get_free_memory());
418 snprintf(buf, sizeof(buf), "%pd", ZSMMG(wasted_shared_memory));
421 snprintf(buf, sizeof(buf), "%pd", ZCSG(interned_strings_top) - ZCSG(interned_strings_start));
423 snprintf(buf, sizeof(buf), "%pd", ZCSG(interned_strings_end) - ZCSG(interned_strings_top));
426 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_direct_entries);
428 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_entries);
430 snprintf(bu
[all...]
/PHP_TRUNK/ext/standard/
H A Ddatetime.c67 snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT",
H A Dinfo.c136 snprintf(reg_name, sizeof(reg_name), "Registered %s", name);
513 snprintf(buf, bufsize, "i%d", SysInfo.dwProcessorType);
516 snprintf(buf, bufsize, "MIPS R%d000", SysInfo.wProcessorLevel);
519 snprintf(buf, bufsize, "Alpha %d", SysInfo.wProcessorLevel);
522 snprintf(buf, bufsize, "PPC 6%02d", SysInfo.wProcessorLevel);
525 snprintf(buf, bufsize, "IA64");
529 snprintf(buf, bufsize, "IA32");
534 snprintf(buf, bufsize, "AMD64");
539 snprintf(buf, bufsize, "Unknown");
565 snprintf(tmp_unam
[all...]
H A Dhead.c120 snprintf(cookie, len + 100, "Set-Cookie: %s=deleted; expires=%s; Max-Age=0", name, dt->val);
123 snprintf(cookie, len + 100, "Set-Cookie: %s=%s", name, value ? encoded_value->val : "");
141 snprintf(tsdelta, sizeof(tsdelta), ZEND_LONG_FMT, (zend_long) difftime(expires, time(NULL)));
/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/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...]

Completed in 20 milliseconds

12345