Commit Graph
10600 Commits
Author SHA1 Message Date
Jim Meyering 3a960cb7e4 *** empty log message *** 2001-03-01 05:33:25 +00:00
Jim Meyering f5cf8b6039 (jm_AC_DOS): Remove extra backslashes, now that
AH_VERBATIM really does output its argument verbatim.
2001-03-01 05:33:18 +00:00
Jim Meyering 675a66a029 *** empty log message *** 2001-02-25 07:55:33 +00:00
Jim Meyering ffd0a44de4 Fix typo: '-d=1may' -> '-d 1may'.
Fix and clarify time zone usage in 'date' examples.
2001-02-25 07:55:27 +00:00
Jim Meyering 2a9477bd95 *** empty log message *** 2001-02-23 08:52:27 +00:00
Jim Meyering 5f001b35ed (keycompare): Move declarations of locals, lena and lenb,
into the inner scope where they are used.
2001-02-22 15:11:08 +00:00
Jim Meyering 241297f40e (main): Remove assignment-in-if-expression.
In fact, remove t_errno altogether.
2001-02-21 10:56:06 +00:00
Jim Meyering df373089ee *** empty log message *** 2001-02-21 10:50:07 +00:00
Jim Meyering 2a08e10112 Add two tests of existing behavior -- both will
have to be changed (soon after release), once ls is fixed.
2001-02-21 10:49:58 +00:00
Jim Meyering d015986221 . 2001-02-20 23:04:45 +00:00
Jim Meyering 4fda5e9381 test for existing behavior 2001-02-20 23:00:33 +00:00
Jim Meyering 6f1ffe444c . 2001-02-20 22:58:44 +00:00
Jim Meyering 9f0b79a1ba *** empty log message *** 2001-02-20 22:58:16 +00:00
Jim Meyering cf4686a06a (FULL_TIME_OPTION): Renamed from FULL_TIME, for
consistency with the other enum values.
2001-02-20 22:53:38 +00:00
Jim Meyering ccbe301659 (SI_OPTION): New enum value.
(long_options): Use it instead of 'H' for --si.
(decode_switches): Warn that -H will change soon.
(usage): Likewise.
2001-02-20 22:52:31 +00:00
Jim Meyering 6af107568c revert last change, until after release 2001-02-20 22:48:39 +00:00
Jim Meyering 890e2a5a58 *** empty log message *** 2001-02-20 22:48:18 +00:00
Jim Meyering 56bcd15a9c revert last change, until after the release 2001-02-20 22:48:00 +00:00
Jim Meyering 05c801ff0c ls -Fd symlink-to-directory' would print a trailing /'
Now it prints a trailing `@'.

(gobble_file): Don't clobber lstat stats of command line
arguments when using -d and -F (--directory and --classify) options.
2001-02-20 08:16:47 +00:00
Jim Meyering c74553f398 *** empty log message *** 2001-02-19 08:53:37 +00:00
Jim Meyering d4142ec88e (AUTHORS): Add Paul Eggert. 2001-02-19 08:53:24 +00:00
Jim Meyering 80016947b7 *** empty log message *** 2001-02-19 08:52:58 +00:00
Jim Meyering 5af9b0048f Fix a race condition: freed storage accessed during a signal handler.
(struct tempnode.next): Now volatile.
(zaptemp): Free the file name after removing it from the temp list,
not before, because a signal can arrive between the two actions
and cleanup () traverses the list.
2001-02-19 08:52:53 +00:00
Jim Meyering 9758a4d87a *** empty log message *** 2001-02-19 08:51:00 +00:00
Jim Meyering 3e593e8a31 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h. 2001-02-19 08:50:54 +00:00
Jim Meyering b0abc5579f *** empty log message *** 2001-02-19 08:50:18 +00:00
Jim Meyering 55d155dbbe Check for input size, and do not overallocate memory.
Also check for memory quotas.

Revamp storage management so that line tables and character data are
taken from the same buffer.  Line tables are now in reverse order,
since they grow down while the character data grow up.

(<sys/resource.h>): Include if HAVE_SYS_RESOURCE_H.
(struct rlimit, getrlimit): Define a replacement if RLIMIT_DATA
is not defined.
(RLIMIT_AS): Define to RLIMIT_DATA if not defined.
(struct lines): Remove.
(struct buffer): New members nlines, line_bytes, eof.
Remove member newline_free; no longer needed, since the code no longer
runs out of line table space.
(SORTALLOC_MIN, SORTALLOC_DEFAULT_MIN): Remove.
(sort_size): Renamed from sortalloc; now applies to the sum of the
character data and the line table, not just the character data.
(MIN_SORT_SIZE, INPUT_FILE_SIZE_GUESS): New macros.
(linelength): remove.
(specify_sort_size): Don't worry about the distinction between the
character data and the line table; that is now the caller's
responsibility.
(default_sort_size): Return the value, instead of being executed for
side effect.  Return half of available memory, or 1/16 of total memory,
whichever is greater; except do not exceed 1/2 of quota.
(sort_buffer_size): New function.
(initbuf): New arg LINE_BYTES.  Ensure that the line array is properly
aligned.  Initialize the new set of struct buffer members.
(buffer_linelim): New function.
(fillbuf): Return int, not size_t, since the callers merely care
whether the result is nonzero.  New arg FILE so that error messages
can report the file name.  Keep track of eof.  Initialize the line
table too, taking its memory from the input buffer's memory; this
subsumes the old findlines function and removes the need for worrying
about running out of line table entries.
(checkfp, mergefps, sortlines, merge, sort): Adjust to the new storage
management regime, in particular the fact that line tables are now
filled in by fillbuf and are in reverse order.
(checkfp): Now takes char *, not const char *, since subroutines
require that now.  Rewrite to avoid lint and duplicate code.
If line length alloc calculation overflows,
simply allocate enough memory to hold the line.
(mergefps): New arg FILES, used for buffer size calculation and error
messages.  Rewrite to avoid lint.  Do not loop if savealloc*2
overflows.
(mergefps, merge): Zap temporary files eagerly rather than lazily;
this is needed because we now pass FILES to mergefps.
(sortlines): Args now point at end of arrays, not at beginnings.
(sort): Do not allocate temporary line array for sortlines;
instead, take the space from the same buffer.
(main): Adjust to sort_size and default_sort_size changes.
2001-02-19 08:50:12 +00:00
Jim Meyering 9de8c30c25 *** empty log message *** 2001-02-19 08:46:00 +00:00
Jim Meyering e4db8d3b54 (wc): Rename innermost `buf' to avoid shadowing warning.
(wc): Rename local `wc' to avoid shadowing function name.
2001-02-19 08:42:25 +00:00
Jim Meyering ba74efc7c6 *** empty log message *** 2001-02-18 19:39:38 +00:00
Jim Meyering 2307570c3e (TESTS): Add isatty. 2001-02-18 19:39:33 +00:00
Jim Meyering e9fd7152ff New test, for the bug fixed below. 2001-02-18 19:39:17 +00:00
Jim Meyering be9f2f6ef6 *** empty log message *** FILEUTILS-4_0_41 2001-02-18 16:56:57 +00:00
Jim Meyering 320475d619 *** empty log message *** 2001-02-18 16:27:16 +00:00
Jim Meyering 025068df27 *** empty log message *** 2001-02-18 16:25:57 +00:00
Jim Meyering b7f166b3fd *** empty log message *** 2001-02-18 16:24:26 +00:00
Jim Meyering 57e7dc4cda `chmod 0 file; rm file' would no longer prompt before removal.
(remove_file): Revert last change.
2001-02-18 16:24:21 +00:00
Jim Meyering 325680aae4 *** empty log message *** 2001-02-18 08:50:35 +00:00
Jim Meyering 7446097d1a rename test input files to avoid conflicts on case-insensitive file systems 2001-02-18 08:50:29 +00:00
Jim Meyering 96bbda7216 Update file names to reflect renamings. 2001-02-18 08:49:52 +00:00
Jim Meyering 7f77515e02 *** empty log message *** 2001-02-18 08:49:07 +00:00
Jim Meyering 2714dd0ed2 . 2001-02-18 08:07:42 +00:00
Jim Meyering 7dfaaf5bf1 fix typo FILEUTILS-4_0_40 2001-02-17 18:50:17 +00:00
Jim Meyering 4d30007986 *** empty log message *** 2001-02-17 16:56:27 +00:00
Jim Meyering d07a45be2b Sync from GNU libc. Use double quotes, not <...>
around included file name.
2001-02-17 16:56:20 +00:00
Jim Meyering 438636be9b *** empty log message *** 2001-02-17 16:53:38 +00:00
Jim Meyering ff7797f6e2 (__strnlen): Merge in a change from GNU libc. 2001-02-17 16:53:33 +00:00
Jim Meyering d81e0e6f97 *** empty log message *** 2001-02-17 16:51:03 +00:00
Jim Meyering 787a2cf49f update comments from libc 2001-02-17 16:50:27 +00:00
Jim Meyering 9676083a22 *** empty log message *** 2001-02-17 14:23:54 +00:00