/busybox-1.35.0/libbb/ |
D | human_readable.c | 36 const char *fmt; in make_human_readable_str() local 41 fmt = "%llu"; in make_human_readable_str() 55 fmt = "%llu.%u%c"; in make_human_readable_str() 70 fmt = "%llu%*c"; in make_human_readable_str() 76 return auto_string(xasprintf(fmt, val, frac, *u)); in make_human_readable_str() 86 const char *fmt; in smart_ulltoa5() local 99 fmt = " 123456789"; in smart_ulltoa5() 106 if (c != ' ') fmt = "0123456789"; in smart_ulltoa5() 107 c = buf[1] = fmt[u/100%10]; in smart_ulltoa5() 108 if (c != ' ') fmt = "0123456789"; in smart_ulltoa5() [all …]
|
D | dump.c | 67 char *fmt; in bb_dump_size() local 77 for (bcnt = prec = 0, fmt = fu->fmt; *fmt; ++fmt) { in bb_dump_size() 78 if (*fmt != '%') in bb_dump_size() 84 while (strchr(dot_flags_width_chars + 1, *++fmt)) in bb_dump_size() 86 if (*fmt == '.' && isdigit(*++fmt)) { in bb_dump_size() 87 prec = atoi(fmt); in bb_dump_size() 88 while (isdigit(*++fmt)) in bb_dump_size() 91 p = strchr(size_conv_str + 12, *fmt); in bb_dump_size() 93 if (*fmt == 's') { in bb_dump_size() 96 if (*fmt == '_') { in bb_dump_size() [all …]
|
D | time.c | 41 const char *fmt; in parse_datestr() local 45 fmt = fmt_str; in parse_datestr() 46 while (*fmt) { in parse_datestr() 47 endp = strptime(date_str, fmt, ptm); in parse_datestr() 50 if (strchr(fmt, 'z')) { in parse_datestr() 64 while (*++fmt) in parse_datestr() 66 ++fmt; in parse_datestr() 277 static char* strftime_fmt(char *buf, unsigned len, time_t *tp, const char *fmt) in strftime_fmt() argument 285 return buf + strftime(buf, len, fmt, localtime(tp)); in strftime_fmt()
|
/busybox-1.35.0/archival/ |
D | unzip.c | 115 } fmt PACKED; 120 (zip).fmt.method = SWAP_LE16((zip).fmt.method ); \ 121 (zip).fmt.crc32 = SWAP_LE32((zip).fmt.crc32 ); \ 122 (zip).fmt.cmpsize = SWAP_LE32((zip).fmt.cmpsize ); \ 123 (zip).fmt.ucmpsize = SWAP_LE32((zip).fmt.ucmpsize ); \ 124 (zip).fmt.filename_len = SWAP_LE16((zip).fmt.filename_len); \ 125 (zip).fmt.extra_len = SWAP_LE16((zip).fmt.extra_len ); \ 153 } fmt PACKED; 158 (cdf).fmt.version_made_by = SWAP_LE16((cdf).fmt.version_made_by); \ 159 (cdf).fmt.version_needed = SWAP_LE16((cdf).fmt.version_needed ); \ [all …]
|
/busybox-1.35.0/miscutils/ |
D | ttysize.c | 51 const char *fmt, *arg; in ttysize_main() local 53 fmt = "%u %u" + 3; /* "%u" */ in ttysize_main() 57 printf(fmt, w); in ttysize_main() 59 printf(fmt, h); in ttysize_main() 60 fmt = "%u %u" + 2; /* " %u" */ in ttysize_main()
|
D | time.c | 107 const char *fmt = " %s" + 1; in printargv() local 109 printf(fmt, *argv); in printargv() 110 fmt = " %s"; in printargv() 188 static void summarize(const char *fmt, char **command, resource_t *resp) in summarize() argument 217 while (*fmt) { in summarize() 219 int n = strcspn(fmt, "%\\"); in summarize() 221 printf("%.*s", n, fmt); in summarize() 222 fmt += n; in summarize() 226 switch (*fmt) { in summarize() 232 bb_putchar(*fmt); in summarize() [all …]
|
D | strings.c | 48 const char *fmt = "%s: "; in strings_main() local 69 fmt = "{%s}: "; in strings_main() 90 printf(fmt, *argv); in strings_main()
|
D | devfsd.c | 344 #define info_logger(p, fmt, args...) bb_info_msg(fmt, ## args) argument 346 #define msg_logger(p, fmt, args...) bb_error_msg(fmt, ## args) argument 348 #define msg_logger_and_die(p, fmt, args...) bb_error_msg_and_die(fmt, ## args) argument 350 #define error_logger(p, fmt, args...) bb_perror_msg(fmt, ## args) argument 351 #define error_logger_and_die(p, fmt, args...) bb_perror_msg_and_die(fmt, ## args) argument 353 #define info_logger(p, fmt, args...) argument 355 #define msg_logger(p, fmt, args...) argument 357 #define msg_logger_and_die(p, fmt, args...) exit(EXIT_FAILURE) argument 359 #define error_logger(p, fmt, args...) argument 360 #define error_logger_and_die(p, fmt, args...) exit(EXIT_FAILURE) argument [all …]
|
/busybox-1.35.0/util-linux/ |
D | setpriv.c | 199 const char *fmt; in dump() 223 fmt = ",%u" + 1; in dump() 225 printf(fmt, (unsigned)gids[i]); in dump() 226 fmt = ",%u"; in dump() 234 fmt = ""; in dump() 242 printf_cap(fmt, i); in dump() 243 fmt = ","; in dump() 246 if (!fmt[0]) in dump() 250 fmt = ""; in dump() 256 printf_cap(fmt, i); in dump() [all …]
|
D | chrt.c | 71 const char *fmt = "SCHED_%s min/max priority\t: %u/%u\n"; in show_min_max() local 77 fmt = "SCHED_%s not supported\n"; in show_min_max() 78 printf(fmt, policy_name(pol), min, max); in show_min_max()
|
/busybox-1.35.0/include/ |
D | dump.h | 12 char *fmt; /* printf format */ member 22 char *fmt; /* format string */ member 42 extern void bb_dump_add(dumper_t *dumper, const char *fmt) FAST_FUNC;
|
/busybox-1.35.0/editors/ |
D | cmp.c | 51 const char *fmt; in cmp_main() local 93 fmt = fmt_l_opt; in cmp_main() 95 fmt = fmt_differ; in cmp_main() 120 fmt = fmt_eof; /* Well, no error, so it must really be EOF. */ in cmp_main() 130 fprintf(outfile, fmt, filename1, filename2, char_pos, line_pos, c2); in cmp_main()
|
/busybox-1.35.0/coreutils/ |
D | tail.c | 81 static void tail_xprint_header(const char *fmt, const char *filename) in tail_xprint_header() argument 83 if (fdprintf(STDOUT_FILENO, fmt, filename) < 0) in tail_xprint_header() 127 const char *fmt; in tail_main() local 206 fmt = header_fmt_str + 1; /* skip leading newline in the header on the first output */ in tail_main() 220 tail_xprint_header(fmt, argv[i]); in tail_main() 221 fmt = header_fmt_str; in tail_main() 339 fmt = NULL; in tail_main() 381 fmt = header_fmt_str; in tail_main() 406 if (fmt && (fd != prev_fd)) { in tail_main() 407 tail_xprint_header(fmt, filename); in tail_main() [all …]
|
D | uname.c | 178 const char *fmt; in uname_main() local 197 fmt = " %s" + 1; in uname_main() 202 printf(fmt, p); in uname_main() 203 fmt = " %s"; in uname_main()
|
D | who.c | 116 const char *fmt = "%s"; in who_main() local 160 printf(fmt, ut->ut_user); in who_main() 161 fmt = " %s"; in who_main()
|
D | head.c | 181 const char *fmt; in head_main() local 229 fmt = header_fmt_str + 1; in head_main() 234 fmt += 11; /* "" */ in head_main() 249 printf(fmt, *argv); in head_main() 268 fmt = header_fmt_str; in head_main()
|
D | mv.c | 145 static const char fmt[] ALIGN1 = in mv_main() local 151 bb_error_msg(fmt, "", "non-"); in mv_main() 156 bb_error_msg(fmt, "non-", ""); in mv_main()
|
D | od.c | 138 dumper->fshead->nextfu->fmt[TYPE_OFFSET] in odoffset() 139 = dumper->fshead->nextfs->nextfu->fmt[TYPE_OFFSET] in odoffset()
|
/busybox-1.35.0/networking/udhcp/ |
D | dumpleases.c | 75 const char *fmt = ":%02x" + 1; in dumpleases_main() local 77 printf(fmt, lease.lease_mac[i]); in dumpleases_main() 78 fmt = ":%02x"; in dumpleases_main()
|
/busybox-1.35.0/scripts/kconfig/ |
D | util.c | 99 void str_printf(struct gstr *gs, const char *fmt, ...) in str_printf() argument 103 va_start(ap, fmt); in str_printf() 104 vsnprintf(s, sizeof(s), fmt, ap); in str_printf()
|
/busybox-1.35.0/mailutils/ |
D | mail.c | 92 char* FAST_FUNC send_mail_command(const char *fmt, const char *param) in send_mail_command() argument 97 msg = (char*)fmt; in send_mail_command() 98 if (fmt) { in send_mail_command() 99 msg = xasprintf(fmt, param); in send_mail_command()
|
D | popmaildir.c | 68 static void pop3_checkr(const char *fmt, const char *param, char **ret) in pop3_checkr() argument 70 char *msg = send_mail_command(fmt, param); in pop3_checkr() 88 static void pop3_check(const char *fmt, const char *param) in pop3_check() argument 90 pop3_checkr(fmt, param, NULL); in pop3_check()
|
D | mail.h | 32 char *send_mail_command(const char *fmt, const char *param) FAST_FUNC;
|
/busybox-1.35.0/procps/ |
D | fuser.c | 115 const char *fmt; in scan_proc_net_or_maps() local 133 fmt = "%*d: %64[0-9A-Fa-f]:%x %*x:%*x %*x " in scan_proc_net_or_maps() 138 fmt = "%*s %*s %*s %x:%x %llu"; in scan_proc_net_or_maps() 145 r = sscanf(line, fmt, fag, sag, &uint64_inode); in scan_proc_net_or_maps()
|
/busybox-1.35.0/modutils/ |
D | modutils.c | 126 const char *fmt; in parse_cmdline_module_options() local 132 fmt = "%.*s%s "; in parse_cmdline_module_options() 144 fmt = "%.*s\"%s\" "; in parse_cmdline_module_options() 147 optlen += sprintf(options + optlen, fmt, (int)(val - var), var, val); in parse_cmdline_module_options()
|