/coreutils/tests/date/ |
D | date.pl | 43 my $fmt = "'+%Y-%m-%d %T'"; 98 ['rel-1a', "-d '$d1 yesterday' $fmt", {OUT=>"1997-01-18 $t0"}], 99 ['rel-1b', "-d '$d1 tomorrow' $fmt", {OUT=>"1997-01-20 $t0"}], 101 ['rel-2a', "-d '$d1 6 years ago' $fmt", {OUT=>"1991-01-19 $t0"}], 102 ['rel-2b', "-d '$d1 7 months ago' $fmt", {OUT=>"1996-06-19 $t0"}], 103 ['rel-2c', "-d '$d1 8 weeks ago' $fmt", {OUT=>"1996-11-24 $t0"}], 104 ['rel-2d', "-d '$d1 1 day ago' $fmt", {OUT=>"1997-01-18 $t0"}], 105 ['rel-2e', "-d '$d1 2 hours ago' $fmt", {OUT=>"$d0 06:17:48"}], 106 ['rel-2f', "-d '$d1 3 minutes ago' $fmt", {OUT=>"$d0 08:14:48"}], 107 ['rel-2g', "-d '$d1 4 seconds ago' $fmt", {OUT=>"$d0 08:17:44"}], [all …]
|
/coreutils/src/ |
D | seq.c | 234 long_double_format (char const *fmt, struct layout *layout) in long_double_format() argument 242 for (i = 0; ! (fmt[i] == '%' && fmt[i + 1] != '%'); i += (fmt[i] == '%') + 1) in long_double_format() 244 if (!fmt[i]) in long_double_format() 246 _("format %s has no %% directive"), quote (fmt)); in long_double_format() 251 i += strspn (fmt + i, "-+#0 '"); in long_double_format() 252 i += strspn (fmt + i, "0123456789"); in long_double_format() 253 if (fmt[i] == '.') in long_double_format() 256 i += strspn (fmt + i, "0123456789"); in long_double_format() 260 has_L = (fmt[i] == 'L'); in long_double_format() 262 if (fmt[i] == '\0') in long_double_format() [all …]
|
D | prog-fprintf.c | 28 prog_fprintf (FILE *fp, char const *fmt, ...) in prog_fprintf() argument 33 va_start (ap, fmt); in prog_fprintf() 34 vfprintf (fp, fmt, ap); in prog_fprintf()
|
D | numfmt.c | 741 char fmt[sizeof "%'0.*Lfi%s%s%s" + INT_STRLEN_BOUND (zero_padding_width)]; in double_to_human() local 742 char *pfmt = fmt; in double_to_human() 765 return snprintf (buf, buf_size, fmt, precision, val, in double_to_human() 812 return snprintf (buf, buf_size, fmt, prec, val, in double_to_human() 1034 parse_format_string (char const *fmt) in parse_format_string() argument 1042 for (i = 0; !(fmt[i] == '%' && fmt[i + 1] != '%'); i += (fmt[i] == '%') + 1) in parse_format_string() 1044 if (!fmt[i]) in parse_format_string() 1046 _("format %s has no %% directive"), quote (fmt)); in parse_format_string() 1053 size_t skip = strspn (fmt + i, " "); in parse_format_string() 1055 if (fmt[i] == '\'') in parse_format_string() [all …]
|
D | chmod.c | 152 char const *fmt; in describe_change() local 183 fmt = _("mode of %s changed from %04lo (%s) to %04lo (%s)\n"); in describe_change() 186 fmt = _("failed to change mode of %s from %04lo (%s) to %04lo (%s)\n"); in describe_change() 189 fmt = _("mode of %s retained as %04lo (%s)\n"); in describe_change() 190 printf (fmt, quoted_file, m, &perms[1]); in describe_change() 195 printf (fmt, quoted_file, old_m, &old_perms[1], m, &perms[1]); in describe_change()
|
D | prog-fprintf.h | 22 extern void prog_fprintf (FILE *fp, char const *fmt, ...)
|
D | chown-core.c | 156 char const *fmt; in describe_change() local 174 fmt = (user ? _("changed ownership of %s from %s to %s\n") in describe_change() 181 fmt = (user ? _("failed to change ownership of %s from %s to %s\n") in describe_change() 187 fmt = (user ? _("failed to change ownership of %s to %s\n") in describe_change() 196 fmt = (user ? _("ownership of %s retained as %s\n") in describe_change() 204 printf (fmt, quoteaf (file), old_spec, spec); in describe_change()
|
D | od.c | 102 enum output_format fmt; member 109 char const *fmt, int width, int pad); 636 enum output_format fmt; in ATTRIBUTE_NONNULL() local 709 fmt = SIGNED_DECIMAL; in ATTRIBUTE_NONNULL() 716 fmt = OCTAL; in ATTRIBUTE_NONNULL() 723 fmt = UNSIGNED_DECIMAL; in ATTRIBUTE_NONNULL() 730 fmt = HEXADECIMAL; in ATTRIBUTE_NONNULL() 743 print_function = (fmt == SIGNED_DECIMAL in ATTRIBUTE_NONNULL() 749 print_function = (fmt == SIGNED_DECIMAL in ATTRIBUTE_NONNULL() 772 fmt = FLOATING_POINT; in ATTRIBUTE_NONNULL() [all …]
|
D | fmt.c | 153 static bool fmt (FILE *f, char const *); 419 ok = fmt (stdin, "-"); in main() 428 ok &= fmt (stdin, file); in main() 436 ok &= fmt (in_stream, file); in main() 482 fmt (FILE *f, char const *file) in fmt() function
|
D | .gitignore | 36 fmt
|
D | copy.c | 704 char const *fmt, ...) in copy_attr_error() argument 712 va_start (ap, fmt); in copy_attr_error() 713 verror (0, err, fmt, ap); in copy_attr_error() 721 char const *fmt, ...) in copy_attr_allerror() argument 727 va_start (ap, fmt); in copy_attr_allerror() 728 verror (0, err, fmt, ap); in copy_attr_allerror() 2540 char const *fmt; in copy_internal() local 2541 fmt = (x->move_mode in copy_internal() 2544 error (0, 0, fmt, in copy_internal()
|
D | ls.c | 1264 first_percent_b (char const *fmt) in first_percent_b() argument 1266 for (; *fmt; fmt++) in first_percent_b() 1267 if (fmt[0] == '%') in first_percent_b() 1268 switch (fmt[1]) in first_percent_b() 1270 case 'b': return fmt; in first_percent_b() 1271 case '%': fmt++; break; in first_percent_b() 1369 char const *fmt = long_time_format[recent]; in abformat_init() local 1376 nbytes = snprintf (nfmt, ABFORMAT_SIZE, "%s", fmt); in abformat_init() 1379 if (! (pb[recent] - fmt <= MIN (ABFORMAT_SIZE, INT_MAX))) in abformat_init() 1381 int prefix_len = pb[recent] - fmt; in abformat_init() [all …]
|
/coreutils/tests/stat/ |
D | stat-fmt.sh | 25 fmt=$(printf "%${i}s" %) 26 out=$(stat --form="$fmt" .) 27 test "$out" = "$fmt" || fail=1
|
/coreutils/tests/cksum/ |
D | cksum-base64.pl | 44 sub fmt ($$) { subroutine 55 (map {my ($h,$v)= @$_; my $o=fmt $h,$v; 59 (map {my ($h,$v)= @$_; my $o=fmt $h,$v; 65 (map {my ($h,$v)= @$_; my $o=fmt $h,$v; 73 (map {my ($h,$v)= @$_; my $o=fmt $h,$v;
|
/coreutils/tests/fmt/ |
D | goal-option.sh | 20 print_ver_ fmt 24 @command{fmt} prefers breaking lines at the end of a sentence, and tries to 29 @command{fmt} reads entire ''paragraphs'' before choosing line breaks; the 37 fmt -g 60 -w 72 base > out || fail=1 41 @command{fmt} prefers breaking lines at the end of a sentence, 47 @command{fmt} reads entire ''paragraphs'' before choosing line
|
D | non-space.sh | 20 print_ver_ fmt printf
|
D | long-line.sh | 20 print_ver_ fmt 57 fmt -s in > out || fail=1
|
/coreutils/man/ |
D | fmt.x | 2 fmt \- simple optimal text formatter
|
D | fold.x | 6 fmt(1)
|
D | .gitignore | 31 fmt.1
|
D | local.mk | 101 man/fmt.1: src/fmt$(EXEEXT)
|
/coreutils/tests/shuf/ |
D | shuf.sh | 47 t=$(shuf -e a b c d e | sort | fmt)
|
/coreutils/po/ |
D | POTFILES.in | 67 src/fmt.c
|
/coreutils/ |
D | AUTHORS | 35 fmt: Ross Paterson
|
/coreutils/tests/ |
D | local.mk | 242 tests/fmt/base.pl \ 243 tests/fmt/goal-option.sh \ 244 tests/fmt/long-line.sh \ 245 tests/fmt/non-space.sh \ 414 tests/stat/stat-fmt.sh \
|