Jim Meyering [Thu, 2 Oct 2003 20:23:49 +0000 (20:23 +0000)]
*** empty log message ***
Jim Meyering [Thu, 2 Oct 2003 20:23:35 +0000 (20:23 +0000)]
(libfetish_a_SOURCES): Add fts.c fts_.h.
Remove ftw_.h.
Jim Meyering [Thu, 2 Oct 2003 17:56:00 +0000 (17:56 +0000)]
*** empty log message ***
Jim Meyering [Thu, 2 Oct 2003 17:47:22 +0000 (17:47 +0000)]
*** empty log message ***
Jim Meyering [Thu, 2 Oct 2003 17:33:54 +0000 (17:33 +0000)]
Don't require that the maximum length of a file name
encountered in a traversal fit in an `unsigned short',
and fix some portability bugs (don't depend on gcc).
Include "fts_.h", not <fts.h>.
(ALIGNBYTES) [!(__GNUC__ >= 2)]: Add a definition that works with
compilers that don't have __alignof__.
(MAX): Use a definition that doesn't depend on gcc.
(fts_build): Make `len' and `maxlen' be of type size_t, not int.
Test for overflow in a less type-dependent manner.
Test HAVE_STRUCT_DIRENT_D_TYPE, rather than
defined DT_DIR && defined _DIRENT_HAVE_D_TYPE.
(fts_palloc): Test for overflow in a less type-dependent manner.
(fts_safe_changedir): Use stat, not stat64.
Use fstat, not __fxstat64(_STAT_VER.
Jim Meyering [Thu, 2 Oct 2003 17:33:42 +0000 (17:33 +0000)]
Don't require that the maximum length of a file name
encountered in a traversal fit in an `unsigned short',
and fix some portability bugs (don't depend on gcc).
[FTS] (fts_pathlen): Change type from int to size_t.
[FTSENT] (fts_pathlen): Change type from u_short to size_t.
(fts_level): Change type from u_short to int.
Jim Meyering [Thu, 2 Oct 2003 17:21:05 +0000 (17:21 +0000)]
*** empty log message ***
Jim Meyering [Thu, 2 Oct 2003 17:20:04 +0000 (17:20 +0000)]
*** empty log message ***
Jim Meyering [Thu, 2 Oct 2003 17:15:35 +0000 (17:15 +0000)]
*** empty log message ***
Jim Meyering [Thu, 2 Oct 2003 17:14:39 +0000 (17:14 +0000)]
*** empty log message ***
Jim Meyering [Thu, 2 Oct 2003 17:13:50 +0000 (17:13 +0000)]
*** empty log message ***
Jim Meyering [Thu, 2 Oct 2003 17:05:34 +0000 (17:05 +0000)]
Ensure that du can process a hierarchy
of depth 400 while using no more than 50KB of stack space.
Jim Meyering [Wed, 1 Oct 2003 08:11:45 +0000 (08:11 +0000)]
*** empty log message ***
Jim Meyering [Wed, 1 Oct 2003 08:09:02 +0000 (08:09 +0000)]
(print_news_deltas): New function, extracted from main.
(main): Make `news_file' an array.
Use '...=s' => \@var for --news and --url-directory specs.
Before there were a couple of problems.
Jim Meyering [Tue, 30 Sep 2003 06:44:35 +0000 (06:44 +0000)]
*** empty log message ***
Jim Meyering [Tue, 30 Sep 2003 06:44:32 +0000 (06:44 +0000)]
(tm_diff) [! HAVE_TM_GMTOFF]: Fix arg typo in previous patch.
Jim Meyering [Sun, 28 Sep 2003 12:38:38 +0000 (12:38 +0000)]
.
Jim Meyering [Sun, 28 Sep 2003 12:36:51 +0000 (12:36 +0000)]
.
Jim Meyering [Sun, 28 Sep 2003 08:39:37 +0000 (08:39 +0000)]
*** empty log message ***
Jim Meyering [Sun, 28 Sep 2003 08:39:31 +0000 (08:39 +0000)]
(sc_cast_of_alloca_return_value): New rule.
(syntax-check-rules): Add it.
Jim Meyering [Sun, 28 Sep 2003 08:25:40 +0000 (08:25 +0000)]
*** empty log message ***
Jim Meyering [Sun, 28 Sep 2003 08:25:24 +0000 (08:25 +0000)]
(sc_cast_of_x_alloc_return_value): Also check for alloca casts.
Jim Meyering [Sun, 28 Sep 2003 08:23:28 +0000 (08:23 +0000)]
Remove unnecessary casts of alloca, since now it's guaranteed to be (void *).
Jim Meyering [Sun, 28 Sep 2003 08:22:35 +0000 (08:22 +0000)]
Remove unnecessary casts of alloca, since now it's guaranteed to be (void *).
Jim Meyering [Sun, 28 Sep 2003 08:22:15 +0000 (08:22 +0000)]
(ASSIGN_STRDUPA):
Remove unnecessary casts of alloca, since now it's guaranteed to be (void *).
Jim Meyering [Sun, 28 Sep 2003 08:21:35 +0000 (08:21 +0000)]
Remove unnecessary casts of alloca, since now it's guaranteed to be (void *).
Jim Meyering [Sun, 28 Sep 2003 08:21:14 +0000 (08:21 +0000)]
Remove unnecessary casts of alloca, since now it's guaranteed to be (void *).
Jim Meyering [Sun, 28 Sep 2003 08:20:52 +0000 (08:20 +0000)]
Remove unnecessary cast of alloca, since now it's guaranteed to be (void *).
Jim Meyering [Sun, 28 Sep 2003 08:17:39 +0000 (08:17 +0000)]
Remove unnecessary cast of alloca, since now it's guaranteed to be (void *).
Jim Meyering [Sun, 28 Sep 2003 08:14:34 +0000 (08:14 +0000)]
Minor efficiency tweak.
(PATH_BASENAME_CONCAT): Use memcpy rather than strcpy.
(do_link): Likewise.
Jim Meyering [Sun, 28 Sep 2003 08:09:46 +0000 (08:09 +0000)]
*** empty log message ***
Jim Meyering [Sun, 28 Sep 2003 08:09:28 +0000 (08:09 +0000)]
Update from gnulib.
Jim Meyering [Sun, 28 Sep 2003 08:00:50 +0000 (08:00 +0000)]
(Translating): Correct typo in menu description.
Jim Meyering [Sun, 28 Sep 2003 08:00:35 +0000 (08:00 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Sep 2003 17:26:26 +0000 (17:26 +0000)]
sync from gnulib -- just changes comments
Jim Meyering [Sat, 27 Sep 2003 06:57:20 +0000 (06:57 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Sep 2003 06:57:15 +0000 (06:57 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Sep 2003 06:57:07 +0000 (06:57 +0000)]
Don't exhaust virtual memory when processing large inputs.
Fix this by removing csplit's internal free-list management;
instead rely on malloc for that.
(free_list): Remove global.
(clear_all_line_control): Remove function.
(get_new_buffer): Always use create_new_buffer to obtain a
new buffer, rather than searching free_list.
(free_buffer): Just call free.
Jim Meyering [Sat, 27 Sep 2003 06:52:38 +0000 (06:52 +0000)]
*** empty log message ***
Jim Meyering [Fri, 26 Sep 2003 20:11:15 +0000 (20:11 +0000)]
.
Jim Meyering [Fri, 26 Sep 2003 13:47:26 +0000 (13:47 +0000)]
*** empty log message ***
Jim Meyering [Fri, 26 Sep 2003 13:47:19 +0000 (13:47 +0000)]
Also list `chattr' in SEE ALSO section.
Jim Meyering [Fri, 26 Sep 2003 13:47:05 +0000 (13:47 +0000)]
*** empty log message ***
Jim Meyering [Thu, 25 Sep 2003 18:01:32 +0000 (18:01 +0000)]
*** empty log message ***
Jim Meyering [Thu, 25 Sep 2003 18:01:25 +0000 (18:01 +0000)]
Don't invoke AC_AIX or AC_MINIX explicitly, now
that we use gl_USE_SYSTEM_EXTENSIONS, since it AC_REQUIREs them.
Jim Meyering [Thu, 25 Sep 2003 17:50:05 +0000 (17:50 +0000)]
*** empty log message ***
Jim Meyering [Wed, 24 Sep 2003 17:57:03 +0000 (17:57 +0000)]
.
Jim Meyering [Wed, 24 Sep 2003 08:21:30 +0000 (08:21 +0000)]
(check_and_close, dump, dump_strings): Don't report bogus errno value
after ferror discovers an output error. We don't know the proper
errno value, since it might have been caused by any of a whole
bunch of calls, and it might have been trashed in the meantime.
Fixing this problem will require much more extensive changes;
in the meantime just say "write error".
(skip): If a read fails, don't retry it later, so
that we report the proper errno.
Jim Meyering [Tue, 23 Sep 2003 22:02:44 +0000 (22:02 +0000)]
.
Jim Meyering [Tue, 23 Sep 2003 22:02:26 +0000 (22:02 +0000)]
(TESTS): Add deref-args.
Jim Meyering [Tue, 23 Sep 2003 22:00:51 +0000 (22:00 +0000)]
*** empty log message ***
Jim Meyering [Tue, 23 Sep 2003 21:57:52 +0000 (21:57 +0000)]
(get_line): Report error right away if I/O fails,
so that the proper errno value is used.
Jim Meyering [Tue, 23 Sep 2003 21:57:19 +0000 (21:57 +0000)]
*** empty log message ***
Jim Meyering [Tue, 23 Sep 2003 21:57:13 +0000 (21:57 +0000)]
(close_output_file): Don't report bogus errno value
after ferror discovers an output error. We don't know the proper
errno value, since it might have been caused by any of a whole
bunch of calls, and it might have been trashed in the meantime.
Fixing this problem will require much more extensive changes;
in the meantime just say "write error".
Jim Meyering [Tue, 23 Sep 2003 17:47:59 +0000 (17:47 +0000)]
(paste_serial): Save errno after input error,
to report proper errno value.
Based on a patch from Paul Eggert.
Jim Meyering [Tue, 23 Sep 2003 12:12:25 +0000 (12:12 +0000)]
(fold_file): Save errno after input error, to report proper errno value.
Jim Meyering [Tue, 23 Sep 2003 12:09:33 +0000 (12:09 +0000)]
(compare_files): Save errno after input error, to report proper errno value.
Jim Meyering [Tue, 23 Sep 2003 08:01:26 +0000 (08:01 +0000)]
(unexpand): Save errno after input error, to report proper errno value.
Jim Meyering [Tue, 23 Sep 2003 07:53:25 +0000 (07:53 +0000)]
*** empty log message ***
Jim Meyering [Tue, 23 Sep 2003 07:51:02 +0000 (07:51 +0000)]
(tee): Adjust fwrite arguments so that the return
value is the number of bytes written.
Jim Meyering [Mon, 22 Sep 2003 21:49:18 +0000 (21:49 +0000)]
*** empty log message ***
Jim Meyering [Mon, 22 Sep 2003 18:58:34 +0000 (18:58 +0000)]
*** empty log message ***
Jim Meyering [Mon, 22 Sep 2003 18:58:30 +0000 (18:58 +0000)]
(XGETTEXT_OPTIONS): Add --from-code=UTF-8 to accommodate the
non-ASCII comment to translators in ptx.c regarding the author's name.
Jim Meyering [Mon, 22 Sep 2003 16:03:21 +0000 (16:03 +0000)]
(tac_mem): Don't return a value; nobody uses it.
Jim Meyering [Mon, 22 Sep 2003 16:00:49 +0000 (16:00 +0000)]
(tee): Once a write failure has occurred, don't bother
writing anything more to that stream.
Jim Meyering [Mon, 22 Sep 2003 15:59:29 +0000 (15:59 +0000)]
(check_file): Report error right away if I/O fails,
so that the proper errno value is used.
(check_file): Check for ferror (stdout) even if ostream == stdout.
(check_file): Don't report bogus errno value
after ferror discovers an output error. We don't know the proper
errno value, since it might have been caused by any of a whole
bunch of calls, and it might have been trashed in the meantime.
Fixing this problem will require much more extensive changes;
in the meantime just say "write error".
Jim Meyering [Mon, 22 Sep 2003 15:41:05 +0000 (15:41 +0000)]
(UNROLL): Remove.
(main): Exit immediately when write failure is detected.
Simplify code by assigning to argv when argc == 1.
Jim Meyering [Mon, 22 Sep 2003 15:31:06 +0000 (15:31 +0000)]
.
Jim Meyering [Mon, 22 Sep 2003 15:29:51 +0000 (15:29 +0000)]
.
Jim Meyering [Mon, 22 Sep 2003 15:29:02 +0000 (15:29 +0000)]
.
Jim Meyering [Mon, 22 Sep 2003 07:26:17 +0000 (07:26 +0000)]
*** empty log message ***
Jim Meyering [Mon, 22 Sep 2003 07:07:16 +0000 (07:07 +0000)]
Switch encoding from Latin-1 to UTF-8.
(WRITTEN_BY): Change "Franc,ois" (actually using
c-with-cedilla in Latin-1) to "F.", so that it's ASCII, as
xgettext requires.
Jim Meyering [Sat, 20 Sep 2003 08:05:51 +0000 (08:05 +0000)]
*** empty log message ***
Jim Meyering [Fri, 19 Sep 2003 08:29:09 +0000 (08:29 +0000)]
*** empty log message ***
Jim Meyering [Fri, 19 Sep 2003 08:27:29 +0000 (08:27 +0000)]
*** empty log message ***
Jim Meyering [Fri, 19 Sep 2003 07:40:55 +0000 (07:40 +0000)]
*** empty log message ***
Jim Meyering [Fri, 19 Sep 2003 07:39:04 +0000 (07:39 +0000)]
`du -D symlink-to-dir' would mistakenly omit the slash in
lines like this: 24 symlink-to-dir/subdir
(process_file): Fix offset calculation.
Reported by Jeff Sheinberg as Debian bug #211591;
http://bugs.debian.org/205251
Jim Meyering [Fri, 19 Sep 2003 07:38:26 +0000 (07:38 +0000)]
*** empty log message ***
Jim Meyering [Fri, 19 Sep 2003 06:52:12 +0000 (06:52 +0000)]
*** empty log message ***
Jim Meyering [Fri, 19 Sep 2003 06:51:59 +0000 (06:51 +0000)]
(process_file): Remove useless disjunct.
Jim Meyering [Thu, 18 Sep 2003 22:23:09 +0000 (22:23 +0000)]
*** empty log message ***
Jim Meyering [Thu, 18 Sep 2003 22:22:37 +0000 (22:22 +0000)]
.
Jim Meyering [Thu, 18 Sep 2003 22:22:17 +0000 (22:22 +0000)]
*** empty log message ***
Jim Meyering [Thu, 18 Sep 2003 22:21:41 +0000 (22:21 +0000)]
(version_etc): Rename parameter, authors, to written_by.
Jim Meyering [Thu, 18 Sep 2003 22:21:10 +0000 (22:21 +0000)]
*** empty log message ***
Jim Meyering [Thu, 18 Sep 2003 22:20:44 +0000 (22:20 +0000)]
(version_etc): Rename parameter, authors, to written_by.
Combine fprintf and following putc('\n'.
Jim Meyering [Thu, 18 Sep 2003 22:19:03 +0000 (22:19 +0000)]
(WRITTEN_BY): Rename from AUTHORS.
Begin each WRITTEN_BY string with `Written by ' and end it with `.'.
Mark each WRITTEN_BY string as translatable.
Jim Meyering [Thu, 18 Sep 2003 22:16:00 +0000 (22:16 +0000)]
(case_GETOPT_VERSION_CHAR): Rename parameter, Authors, to Written_by.
Jim Meyering [Thu, 18 Sep 2003 22:09:05 +0000 (22:09 +0000)]
*** empty log message ***
Jim Meyering [Thu, 18 Sep 2003 19:39:12 +0000 (19:39 +0000)]
revert previous change
Jim Meyering [Thu, 18 Sep 2003 18:23:19 +0000 (18:23 +0000)]
*** empty log message ***
Jim Meyering [Thu, 18 Sep 2003 18:22:23 +0000 (18:22 +0000)]
Update AUTHORS definition to be a comma-separated list of strings and/or update
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
Jim Meyering [Thu, 18 Sep 2003 18:13:57 +0000 (18:13 +0000)]
*** empty log message ***
Jim Meyering [Thu, 18 Sep 2003 18:13:44 +0000 (18:13 +0000)]
(parse_long_options): Update prototype.
Jim Meyering [Thu, 18 Sep 2003 18:13:18 +0000 (18:13 +0000)]
Include stdarg.h.
(parse_long_options): Make this function variadic (authors), too.
Call version_etc_va, not version_etc.
Jim Meyering [Thu, 18 Sep 2003 18:10:22 +0000 (18:10 +0000)]
(version_etc_va): Declare it.
Jim Meyering [Thu, 18 Sep 2003 18:09:44 +0000 (18:09 +0000)]
This lets translators provide better translations for the
`Written by ...' part of --version output.
Include stdarg.h, stdlib.h, string.h, and xalloc.h.
(version_etc): Make this function variadic,
with a NULL-terminated list of author name strings.
(version_etc_va): New function.
Jim Meyering [Thu, 18 Sep 2003 18:09:00 +0000 (18:09 +0000)]
*** empty log message ***
Jim Meyering [Thu, 18 Sep 2003 17:39:02 +0000 (17:39 +0000)]
(case_GETOPT_VERSION_CHAR): Append NULL to version_etc argument list.
Jim Meyering [Thu, 18 Sep 2003 17:38:47 +0000 (17:38 +0000)]
(main): Append NULL to version_etc argument list.