Commit Graph
24019 Commits
Author SHA1 Message Date
Jim Meyering adaa25e292 *** empty log message *** 2002-10-19 16:34:37 +00:00
Jim Meyering 917181c1a9 (cwrite): Change type of `bytes' parameter to size_t
Remove now-useless cast.
(stdread): Remove function.
(bytes_split): Use size_t instead of int.
Use safe_read, not stdread.
(lines_split): Likewise.
Use memchr rather than a `while' loop.
(line_bytes_split): Use size_t instead of int.
Use safe_read, not stdread.
(main): Add some FIXME comments to remind me to remove casts.
2002-10-19 16:34:25 +00:00
Jim Meyering d3f010cb21 *** empty log message *** 2002-10-19 13:49:38 +00:00
Jim Meyering dce67bd261 Rewrite to support locale-specific
notations like thousands separators.
Specify what includer of include.h must include beforehand.
(human_group_digits, human_suppress_point_zero, human_autoscale,
human_base_1024, human_SI, human_B): New enum values.
(human_readable): Rename from human_readable_inexact; put the
options before the sizes.  All uses changed.  The old human_readable
function has been removed; use inttostr.h instead.
(human_options): Renamed from human_block_size, with new signature
that allows block sizes up to UINTMAX_MAX.  All callers changed.
2002-10-19 13:48:04 +00:00
Jim Meyering 4774c63a5e *** empty log message *** 2002-10-19 12:55:11 +00:00
Jim Meyering f02ba67bbb *** empty log message *** 2002-10-19 12:54:29 +00:00
Jim Meyering a967adb215 (libfetish_a_SOURCES): Add imaxtostr.c, offtostr.c, umaxtostr.c.
(EXTRA_DIST): Add inttostr.c.
2002-10-19 12:54:23 +00:00
Jim Meyering 927bbc5cc3 New files. From GNU tar. 2002-10-19 12:34:03 +00:00
Jim Meyering 8d30090e2e *** empty log message *** 2002-10-19 07:58:09 +00:00
Jim Meyering aeaaa9fda5 *** empty log message *** 2002-10-19 07:57:08 +00:00
Jim Meyering 2e0798f483 (print_heading): Align TTY and Name headings. 2002-10-19 07:55:15 +00:00
Jim Meyering 82d3409e3d *** empty log message *** 2002-10-18 06:49:24 +00:00
Jim Meyering 76cc19f679 (ST_BLKSIZE): Correct comment describing how to
reproduce HPUX-11 cat failure.
2002-10-18 06:49:15 +00:00
Jim Meyering 9bcacfa997 *** empty log message *** 2002-10-17 15:08:19 +00:00
Jim Meyering 73d9218bf6 *** empty log message *** 2002-10-17 15:07:47 +00:00
Jim Meyering f72568f82c Fix a problem that could make cat misbehave on systems which
give invalid (unreasonably large) values for stat.st_blksize.
(ST_BLKSIZE): Ensure that the result is in [1..4MB].
2002-10-17 15:06:36 +00:00
Jim Meyering 8c7071d857 bump to 4.5.4 2002-10-15 14:24:48 +00:00
Jim Meyering 3540f1880d *** empty log message *** 2002-10-14 08:30:56 +00:00
Jim Meyering 254fcd14bf . 2002-10-14 08:30:22 +00:00
Jim Meyering 07c1a593ca *** empty log message *** 2002-10-14 08:29:50 +00:00
Jim Meyering bad450db5d Specifying a printf conversion specifer as nl's separator string
could cause nl to segfault.

(build_print_fmt): Don't include separator string
in the printf format; it might contain `%'.
Use a better bound on the length of the print_fmt buffer.
(print_lineno): Print the separator here instead.
2002-10-14 08:29:41 +00:00
Jim Meyering 8c11ff93d8 *** empty log message *** 2002-10-14 08:29:22 +00:00
Jim Meyering 3634113f29 *** empty log message *** 2002-10-14 08:29:17 +00:00
Jim Meyering 79adfda48d (TESTS): Add nl. 2002-10-14 08:19:31 +00:00
Jim Meyering 7535f31db9 *** empty log message *** 2002-10-14 08:19:13 +00:00
Jim Meyering 6f44f9b2b5 *** empty log message *** 2002-10-13 22:11:44 +00:00
Jim Meyering 614bd059e8 New test, to make sure `split --lines=N' works. 2002-10-13 22:11:13 +00:00
Jim Meyering ee801b3ccc *** empty log message *** 2002-10-13 22:10:58 +00:00
Jim Meyering 38e6669301 (TESTS): Add split-l. 2002-10-13 22:10:20 +00:00
Jim Meyering ca0f646758 *** empty log message *** 2002-10-13 20:01:59 +00:00
Jim Meyering 3907226aa1 . 2002-10-13 18:30:13 +00:00
Jim Meyering 5ed1f9d1b1 . COREUTILS-4_5_3 2002-10-13 17:38:42 +00:00
Jim Meyering f92f1a29c0 *** empty log message *** 2002-10-13 14:02:50 +00:00
Jim Meyering 5955869435 (usage): Tweak description of --dereference-args/-D. 2002-10-13 14:02:42 +00:00
Jim Meyering c9c00c8bec *** empty log message *** 2002-10-13 14:01:59 +00:00
Jim Meyering e408ac408c (count_entry): Also save cwd when dereferencing (via --dereference-args, -D)
a command-line argument.
Reported by Michal Svec.  Based on a patch by Andreas Schwab.
2002-10-13 13:59:25 +00:00
Jim Meyering 6dafd5b2fc whoops 2002-10-13 13:33:05 +00:00
Jim Meyering 25797575f8 *** empty log message *** 2002-10-13 12:23:29 +00:00
Jim Meyering ff4e2725a7 (initialized): Remove declaration now that it's unused. 2002-10-13 12:23:25 +00:00
Jim Meyering bd9e754992 There's no need to futz with the rounding mode,
since the code should work properly even in the default rounding mode.
(<fenv.h>): Do not include.
(#pragma STDC FENV_ACCESS ON): Remove.
(xnanosleep): Don't futz with rounding state.
2002-10-13 12:22:26 +00:00
Jim Meyering 5b87a60663 *** empty log message *** 2002-10-13 12:20:44 +00:00
Jim Meyering 29a1a5e5d4 (jm_CHECK_ALL_HEADERS): Remove fenv.h. 2002-10-13 12:20:35 +00:00
Jim Meyering 475f183eab update comment 2002-10-13 06:50:11 +00:00
Jim Meyering 797d72c3cc (../AUTHORS): Make it read-only. 2002-10-13 06:48:42 +00:00
Jim Meyering 331dd19c54 . 2002-10-13 06:47:23 +00:00
Jim Meyering 2f4402aa58 *** empty log message *** 2002-10-13 06:47:13 +00:00
Jim Meyering 380f554a46 (../AUTHORS): New target/rule. 2002-10-13 06:47:07 +00:00
Jim Meyering c19c8b5952 . 2002-10-13 06:04:38 +00:00
Jim Meyering 1b9984330e *** empty log message *** 2002-10-13 06:04:27 +00:00
Jim Meyering f175e3efc2 (paste_parallel): Declare local var, `delims_saved', to be
of type size_t, since that's the way it's used and avoids a warning.
2002-10-12 10:19:17 +00:00