Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 32) sorted by relevance

12

/coreutils/tests/date/
Ddate.pl43 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/
Dseq.c234 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 …]
Dprog-fprintf.c28 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()
Dnumfmt.c741 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 …]
Dchmod.c152 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()
Dprog-fprintf.h22 extern void prog_fprintf (FILE *fp, char const *fmt, ...)
Dchown-core.c156 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()
Dod.c102 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 …]
Dfmt.c153 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.gitignore36 fmt
Dcopy.c704 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()
Dls.c1264 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/
Dstat-fmt.sh25 fmt=$(printf "%${i}s" %)
26 out=$(stat --form="$fmt" .)
27 test "$out" = "$fmt" || fail=1
/coreutils/tests/cksum/
Dcksum-base64.pl44 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/
Dgoal-option.sh20 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
Dnon-space.sh20 print_ver_ fmt printf
Dlong-line.sh20 print_ver_ fmt
57 fmt -s in > out || fail=1
/coreutils/man/
Dfmt.x2 fmt \- simple optimal text formatter
Dfold.x6 fmt(1)
D.gitignore31 fmt.1
Dlocal.mk101 man/fmt.1: src/fmt$(EXEEXT)
/coreutils/tests/shuf/
Dshuf.sh47 t=$(shuf -e a b c d e | sort | fmt)
/coreutils/po/
DPOTFILES.in67 src/fmt.c
/coreutils/
DAUTHORS35 fmt: Ross Paterson
/coreutils/tests/
Dlocal.mk242 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 \

12