Age | Commit message (Collapse) | Author | |
---|---|---|---|
2003-05-01 | Change type of n_units, n_bytes, n_lines to be `uintmax_t'. | Jim Meyering | |
(dump_remainder): Move two declarations `down' into the scope where they are used. (xlseek): Return the resulting offset. (file_lines): Rename parameter, file_length, to end_pos. (pipe_lines): Don't coerce safe_read return value to `int'. Adapt tests accordingly. (pipe_bytes) [struct charbuffer] (nbytes): Change type from `int' to `unsigned int'. Change type of `total_bytes' from `int' to `size_t', since the former wouldn't always be wide enough. Don't coerce safe_read return value to `int', and adapt tests accordingly. Now that testing for a read error no longer involves using `tmp', handle that case *after* freeing `tmp'. (start_bytes): Clean up. (tail_bytes): Now that `n_bytes' may be larger than OFF_T_MAX, test for that condition and, if it's true, don't use lseek optimizations. (parse_options): Don't fail just because N_UNITS is larger than the maximum size of a file -- tail may be applied to an input stream (e.g., a pipe) with more data than that. | |||
2003-05-01 | (file_lines): Rename parameter, file_length, to end_pos. | Jim Meyering | |
2003-05-01 | (start_lines): Rewrite to use memchr. Clean up. | Jim Meyering | |
2003-04-24 | . | Jim Meyering | |
2003-04-24 | (tsort): Remove unnecessary test of have_read_stdin. | Jim Meyering | |
(main): Minor syntactic clean-up. | |||
2003-04-24 | (tsort): Fail if the input contains an odd number of tokens. | Jim Meyering | |
2003-04-24 | add localedir.h | Jim Meyering | |
2003-04-21 | (print_esc): Tweak spelling of new variable. | Jim Meyering | |
2003-04-21 | Fix printf POSIX compatibility bug reported by Ben Harris in | Jim Meyering | |
<http://mail.gnu.org/archive/html/bug-coreutils/2003-04/msg00070.html>. * doc/coreutils.texi (printf invocation): It's \NNN in the format, \0NNN in the %b operand. * src/printf.c (usage): Likewise. (print_esc): New arg OCTAL0 to specify whether \0NNN or \NNN is desired. All uses changed. Behave like Bash printf if %b operand uses \NNN where the initial N is not 0. | |||
2003-04-17 | Remove uses of PROTOTYPE macro. | Jim Meyering | |
2003-04-13 | (is_empty_dir): Don't closedir (NULL). | Jim Meyering | |
2003-04-12 | Giving nl an invalid STYLE argument (in --header-numbering=STYLE (-h), | Jim Meyering | |
--body-numbering=STYLE (-b), or --footer-numbering=STYLE (-f)) or FORMAT (--number-format=FORMAT (-n)) would not give a useful diagnostic. (main): Fix those problems and remove literal quote marks (e.g., "`%s'") from format string; instead use "%s" in each format string and `quote (optarg)' as the corresponding argument. Also, diagnose all invalid command line options before failing. | |||
2003-04-12 | (proc_text): Fix a bug introduced on 2001-11-10, | Jim Meyering | |
for textutils-2.0.17, that would make nl output extra newlines in some cases. | |||
2003-04-11 | Remove SPC in SPC-TAB sequence. | Jim Meyering | |
2003-04-11 | Remove SPC in SPC-TAB sequence. | Jim Meyering | |
2003-04-11 | Remove SPC in SPC-TAB sequence. | Jim Meyering | |
2003-04-11 | Remove SPC in SPC-TAB sequence. | Jim Meyering | |
2003-04-11 | Remove SPC in SPC-TAB sequence. | Jim Meyering | |
2003-04-11 | Remove SPC in SPC-TAB sequence. | Jim Meyering | |
Remove trailing blanks. filter though cppi | |||
2003-04-11 | Remove SPC in SPC-TAB sequence. | Jim Meyering | |
2003-04-11 | Remove SPC in SPC-TAB sequence. | Jim Meyering | |
2003-04-11 | Remove SPC in SPC-TAB sequence. | Jim Meyering | |
2003-04-11 | Include <stdlib.h> unconditionally. | Jim Meyering | |
2003-04-11 | duh | Jim Meyering | |
2003-04-11 | Include error.h after system.h, not before. | Jim Meyering | |
2003-04-11 | Remove anachronistic casts of xmalloc, | Jim Meyering | |
xrealloc, and xcalloc return values and of xrealloc's first argument. | |||
2003-04-11 | include xalloc.h | Jim Meyering | |
2003-04-11 | do not cast xmalloc return value | Jim Meyering | |
2003-04-10 | (wrapf): Declare with format attribute. | Jim Meyering | |
2003-04-10 | . | Jim Meyering | |
2003-04-10 | (fs.h): New rule to generate fs.h from stat.c. | Jim Meyering | |
(BUILT_SOURCES): Add fs.h, now that it's generated. (EXTRA_DIST): Add extract-magic. | |||
2003-04-10 | add comment | Jim Meyering | |
2003-04-10 | (human_fstype) [__linux__]: Append each hex constant from | Jim Meyering | |
fs.h in a comment after the corresponding `case S_MAGIC_...:' statement. | |||
2003-04-10 | now it's automatically generated | Jim Meyering | |
2003-04-10 | New script to extract fs.h definitions from stat.c. | Jim Meyering | |
2003-04-10 | (human_fstype): Handle Linux's devpts. | Jim Meyering | |
2003-04-10 | (S_MAGIC_DEVPTS): New magic for Linux's devpts. | Jim Meyering | |
2003-04-09 | (line_bytes_split): Arg is of type size_t, since | Jim Meyering | |
that's all that is supported for now. (main): Check for overflow in obsolescent line count option. | |||
2003-04-09 | (bytes_split): Use size_t temporary (rather than | Jim Meyering | |
uintmax_t original) in remaining computations. From Paul Eggert. | |||
2003-04-09 | Handle command line option arguments larger than 2^31. | Jim Meyering | |
This allows e.g., splitting into files of size 2GB and larger, and running split --lines=N with N=2^31 or more. But for --line-bytes=N, the restriction that N <= SIZE_MAX remains (for now), due to the way it is implemented. Include "inttostr.h". (bytes_split, lines_split, line_bytes_split, main): Use uintmax_t, not size_t, for file sizes. (main): Give a better diagnostic for option arguments == 0. Use umaxtostr to print file sizes. | |||
2003-04-09 | (lines_split): Rename local, nlines -> n_lines. | Jim Meyering | |
2003-04-08 | (usage): Mention that --directory (-d) works only on some systems. | Jim Meyering | |
2003-04-08 | (main): Use STDIN_FILENO, not literal `0'. | Jim Meyering | |
2003-04-08 | (main): Rename local variable: s/accum/n_units/. | Jim Meyering | |
2003-04-08 | also change NCHARS, in comments, to N_BYTES | Jim Meyering | |
2003-04-08 | Rename local variables: nchars -> n_bytes. | Jim Meyering | |
2003-04-07 | Add #include directives for Ultrix 4.4. | Jim Meyering | |
Based on a suggested change from Bert Deknuydt. | |||
2003-04-05 | . | Jim Meyering | |
2003-04-05 | *** empty log message *** | Jim Meyering | |
2003-04-05 | Make `kill -t' output signal descriptions (not `?') on Tru64. | Jim Meyering | |
(sys_siglist): Also check for __sys_siglist. |