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

12345

/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/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 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",
H A Dxmlrpc_win32.h9 #ifndef snprintf
10 # define snprintf _snprintf macro
/PHP_TRUNK/ext/zip/lib/
H A Dzip_error_to_str.c51 return snprintf(buf, len, "Unknown error %d", ze);
68 return snprintf(buf, len, "%s%s%s",
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_log.c198 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.);
207 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec + proc.duration.tv_usec / 1000000.);
213 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec * 1000. + proc.duration.tv_usec / 1000.);
219 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%lu", proc.duration.tv_sec * 1000000UL + proc.duration.tv_usec);
237 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", env ? env : "-");
244 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", *proc.script_filename ? proc.script_filename : "-");
250 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.content_length);
256 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", *proc.request_method ? proc.request_method : "-");
264 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.memory);
270 len2 = snprintf(
[all...]
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);
/PHP_TRUNK/ext/opcache/
H A Dshared_alloc_win32.c84 snprintf(newname, sizeof(newname) - 1, "%s@%s", name, uname);
98 snprintf(windir + l, sizeof(windir) - l - 1, "\\%s@%s", ACCEL_FILEMAP_BASE, uname);
H A Dzend_accelerator_module.c401 snprintf(buf, sizeof(buf), "%pd", (zend_ulong)ZCSG(hits));
403 snprintf(buf, sizeof(buf), "%pd", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blacklist_misses));
405 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ZCG(accel_directives).memory_consumption-zend_shared_alloc_get_free_memory()-ZSMMG(wasted_shared_memory));
407 snprintf(buf, sizeof(buf), "%pd", zend_shared_alloc_get_free_memory());
409 snprintf(buf, sizeof(buf), "%pd", ZSMMG(wasted_shared_memory));
412 snprintf(buf, sizeof(buf), "%pd", ZCSG(interned_strings_top) - ZCSG(interned_strings_start));
414 snprintf(buf, sizeof(buf), "%pd", ZCSG(interned_strings_end) - ZCSG(interned_strings_top));
417 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_direct_entries);
419 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_entries);
421 snprintf(bu
[all...]
/PHP_TRUNK/Zend/
H A Dzend_config.w32.h51 #define snprintf _snprintf macro
H A Dzend_long.h75 int st = snprintf((s), (len), ZEND_LONG_FMT, (i)); \
98 int st = snprintf((s), (len), ZEND_LONG_FMT, (i)); \
/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/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/mysqlnd/
H A Dmysqlnd_debug.c79 snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid);
89 snprintf(time_buffer, sizeof(time_buffer) - 1,
100 snprintf(time_buffer, sizeof(time_buffer) - 1,
112 snprintf(file_buffer, sizeof(file_buffer) - 1, "%14s: ", file);
116 snprintf(line_buffer, sizeof(line_buffer) - 1, "%5u: ", line);
120 snprintf(level_buffer, sizeof(level_buffer) - 1, "%4u: ", level);
176 snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid);
186 snprintf(time_buffer, sizeof(time_buffer) - 1,
197 snprintf(time_buffer, sizeof(time_buffer) - 1,
209 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/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.c124 snprintf(cookie, len + 100, "Set-Cookie: %s=deleted; expires=%s; Max-Age=0", name, dt->val);
127 snprintf(cookie, len + 100, "Set-Cookie: %s=%s", name, value ? encoded_value->val : "");
145 snprintf(tsdelta, sizeof(tsdelta), ZEND_LONG_FMT, (zend_long) difftime(expires, time(NULL)));
H A Dinfo.c133 snprintf(reg_name, sizeof(reg_name), "Registered %s", name);
516 snprintf(buf, bufsize, "i%d", SysInfo.dwProcessorType);
519 snprintf(buf, bufsize, "MIPS R%d000", SysInfo.wProcessorLevel);
522 snprintf(buf, bufsize, "Alpha %d", SysInfo.wProcessorLevel);
525 snprintf(buf, bufsize, "PPC 6%02d", SysInfo.wProcessorLevel);
528 snprintf(buf, bufsize, "IA64");
532 snprintf(buf, bufsize, "IA32");
537 snprintf(buf, bufsize, "AMD64");
542 snprintf(buf, bufsize, "Unknown");
568 snprintf(tmp_unam
[all...]
H A Dhttp_fopen_wrapper.c554 if (snprintf(scratch, scratch_len, "Authorization: Basic %s\r\n", stmp->val) > 0) {
564 if (snprintf(scratch, scratch_len, "From: %s\r\n", FG(from_address)) > 0)
572 if (snprintf(scratch, scratch_len, "Host: %s:%i\r\n", resource->host, resource->port) > 0)
575 if (snprintf(scratch, scratch_len, "Host: %s\r\n", resource->host) > 0) {
836 snprintf(loc_path, sizeof(loc_path) - 1, "%s%s", resource->path, location);
838 snprintf(loc_path, sizeof(loc_path) - 1, "%s/%s", resource->path, location);
841 snprintf(loc_path, sizeof(loc_path) - 1, "/%s", location);
847 snprintf(new_path, sizeof(new_path) - 1, "%s://%s:%d%s", resource->scheme, resource->host, resource->port, loc_path);
849 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/apache2handler/
H A Dphp_functions.c403 snprintf(tmp, sizeof(tmp), "%d", MODULE_MAGIC_NUMBER);
410 snprintf(tmp, sizeof(tmp), "%s:%u", serv->server_hostname, serv->port);
415 snprintf(tmp, sizeof(tmp), "%s(%d)/%d", ap_unixd_config.user_name, ap_unixd_config.user_id, ap_unixd_config.group_id);
417 snprintf(tmp, sizeof(tmp), "%s(%d)/%d", unixd_config.user_name, unixd_config.user_id, unixd_config.group_id);
423 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/phpdbg/
H A Dphpdbg_io.c253 snprintf(port_buf, 7, "%u", port);
266 wrote = snprintf(buf, 128, "Could not translate address '%s'", addr);
276 wrote = snprintf(buf, 256, "Host '%s' not found. %s", addr, estrdup(gai_strerror(rc)));
/PHP_TRUNK/win32/
H A Dsendmail.c66 snprintf(*error_message, sizeof(SMTP_ERROR_RESPONSE_SPEC) + strlen(response), SMTP_ERROR_RESPONSE_SPEC, response); \
274 /* 128 is safe here, the specifier in snprintf isn't longer than that */
278 snprintf(*error_message, HOST_NAME_LEN + 128,
390 snprintf(PW32G(mail_buffer), sizeof(PW32G(mail_buffer)), "HELO %s\r\n", PW32G(mail_local_host));
693 snprintf(header_buffer, MAIL_BUFFER_SIZE, "Date: %s\r\n", dt->val);
974 result = snprintf(Buf, MAIL_BUFFER_SIZE, FormatString , tmpAddress1+1);
978 return snprintf(Buf, MAIL_BUFFER_SIZE , FormatString , EmailAddress );

Completed in 50 milliseconds

12345