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.
Jim Meyering [Thu, 18 Sep 2003 16:41:18 +0000 (16:41 +0000)]
*** empty log message ***
Jim Meyering [Thu, 18 Sep 2003 16:41:11 +0000 (16:41 +0000)]
Update from gnulib.
(gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
to avoid spurious warnings like "AC_RUN_IFELSE was called before
gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
Jim Meyering [Thu, 18 Sep 2003 16:28:53 +0000 (16:28 +0000)]
*** empty log message ***
Jim Meyering [Thu, 18 Sep 2003 16:28:47 +0000 (16:28 +0000)]
(numcompare): Rename local, logb, to log_b to avoid
shadowing the math function name. Also rename loga to log_a.
Jim Meyering [Wed, 17 Sep 2003 18:49:41 +0000 (18:49 +0000)]
*** empty log message ***
Jim Meyering [Wed, 17 Sep 2003 18:49:34 +0000 (18:49 +0000)]
(read_utmp): Likewise.
Check for fstat error. Close stream and free storage when failing.
Jim Meyering [Wed, 17 Sep 2003 18:46:57 +0000 (18:46 +0000)]
(getndelim2): Don't trash errno when a read
fails, so that the caller gets the proper errno.
Jim Meyering [Wed, 17 Sep 2003 18:45:24 +0000 (18:45 +0000)]
(readlinebuffer): Return NULL immediately upon
input error, instead of returning NULL the next time we are called
(and therefore losing track of errno).
Jim Meyering [Wed, 17 Sep 2003 18:43:25 +0000 (18:43 +0000)]
Add comment from Bruno Haible.
Jim Meyering [Mon, 15 Sep 2003 09:34:29 +0000 (09:34 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Sep 2003 17:25:25 +0000 (17:25 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Sep 2003 17:25:16 +0000 (17:25 +0000)]
(print_factors): Give a separate diagnostic
for numbers that are too large, but otherwise valid.
Jim Meyering [Sun, 14 Sep 2003 17:24:38 +0000 (17:24 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Sep 2003 08:29:44 +0000 (08:29 +0000)]
.
Jim Meyering [Sat, 13 Sep 2003 22:12:21 +0000 (22:12 +0000)]
Update from gnulib.
Jim Meyering [Sat, 13 Sep 2003 22:04:16 +0000 (22:04 +0000)]
.
Jim Meyering [Sat, 13 Sep 2003 22:03:55 +0000 (22:03 +0000)]
.
Jim Meyering [Sat, 13 Sep 2003 22:03:50 +0000 (22:03 +0000)]
*** empty log message ***
Jim Meyering [Sat, 13 Sep 2003 22:03:45 +0000 (22:03 +0000)]
(libfetish_a_SOURCES): Add exit.h, strndup.h, time_r.c, time_r.h.
Jim Meyering [Sat, 13 Sep 2003 22:03:02 +0000 (22:03 +0000)]
*** empty log message ***
Jim Meyering [Sat, 13 Sep 2003 22:01:20 +0000 (22:01 +0000)]
Update from gnulib.
Jim Meyering [Sat, 13 Sep 2003 21:54:35 +0000 (21:54 +0000)]
Update from gnulib.
Jim Meyering [Sat, 13 Sep 2003 21:53:33 +0000 (21:53 +0000)]
New file, from gnulib.
Jim Meyering [Sat, 13 Sep 2003 19:54:00 +0000 (19:54 +0000)]
Update from gnulib.
Jim Meyering [Sat, 13 Sep 2003 19:53:18 +0000 (19:53 +0000)]
Update from gnulib.
Jim Meyering [Sat, 13 Sep 2003 19:52:30 +0000 (19:52 +0000)]
Update from gnulib.
Jim Meyering [Sat, 13 Sep 2003 19:50:59 +0000 (19:50 +0000)]
New file, from gnulib.
Jim Meyering [Sat, 13 Sep 2003 18:02:10 +0000 (18:02 +0000)]
New file, from GNU gettext, via gnulib.
Jim Meyering [Sat, 13 Sep 2003 18:00:43 +0000 (18:00 +0000)]
from gnulib
Jim Meyering [Sat, 13 Sep 2003 18:00:08 +0000 (18:00 +0000)]
from gnulib
Jim Meyering [Sat, 13 Sep 2003 17:59:53 +0000 (17:59 +0000)]
(my_mktime_localtime_r): Remove; all uses changed to __localtime_r.
(__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
(__mktime_internal) [!defined _LIBC]: Now extern, not static.
Jim Meyering [Sat, 13 Sep 2003 17:58:57 +0000 (17:58 +0000)]
(my_strftime_gmtime_r): Remove; all uses changed to __gmtime_r.
(my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
(__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
Include <time_r.h>.
Jim Meyering [Sat, 13 Sep 2003 12:29:15 +0000 (12:29 +0000)]
.
Jim Meyering [Sat, 13 Sep 2003 11:58:35 +0000 (11:58 +0000)]
.
Jim Meyering [Sat, 13 Sep 2003 11:53:36 +0000 (11:53 +0000)]
.
Jim Meyering [Sat, 13 Sep 2003 10:49:33 +0000 (10:49 +0000)]
(gl_FUNC_STRTOL): Do not check for limits.h.
Jim Meyering [Sat, 13 Sep 2003 10:49:25 +0000 (10:49 +0000)]
(gl_PREREQ_STRTOIMAX): Do not check for stdlib.h, strtol.
Jim Meyering [Sat, 13 Sep 2003 10:49:17 +0000 (10:49 +0000)]
(gl_FUNC_STRTOD): Do not check for float.h.
Jim Meyering [Sat, 13 Sep 2003 10:48:46 +0000 (10:48 +0000)]
(_jm_STRFTIME_PREREQS): Don't check for limits.h, memcpy, memset.
(jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
Jim Meyering [Sat, 13 Sep 2003 10:48:09 +0000 (10:48 +0000)]
(gl_PREREQ_XSTRTOL): Do not check for string.h, strtol, strtoul.
Jim Meyering [Sat, 13 Sep 2003 10:47:56 +0000 (10:47 +0000)]
(gl_XSTRTOD): Likewise.
Jim Meyering [Sat, 13 Sep 2003 10:47:43 +0000 (10:47 +0000)]
(gl_PREREQ_XMALLOC): Likewise.
Jim Meyering [Sat, 13 Sep 2003 10:47:05 +0000 (10:47 +0000)]
(gl_USERSPEC): Do not require standard C headers.
(gl_USERSPEC): Do not check for string.h.
Jim Meyering [Sat, 13 Sep 2003 10:46:07 +0000 (10:46 +0000)]
(jm_PREREQ_TEMPNAME): Do not require standard C headers.
Jim Meyering [Sat, 13 Sep 2003 10:41:15 +0000 (10:41 +0000)]
*** empty log message ***
Jim Meyering [Sat, 13 Sep 2003 10:39:48 +0000 (10:39 +0000)]
Update from gnulib.
Jim Meyering [Sat, 13 Sep 2003 10:38:39 +0000 (10:38 +0000)]
(gl_FUNC_STRDUP): Don't check for standard C headers.
Jim Meyering [Sat, 13 Sep 2003 10:34:43 +0000 (10:34 +0000)]
*** empty log message ***
Jim Meyering [Sat, 13 Sep 2003 10:34:12 +0000 (10:34 +0000)]
(jm_PREREQ_ADDEXT): Remove. All uses removed.
This macro has been superseded by gl_BACKUPFILE.
Jim Meyering [Sat, 13 Sep 2003 10:33:39 +0000 (10:33 +0000)]
(gl_PREREQ_STRTOUMAX): Don't check for stdlb.h or strtoul.
Jim Meyering [Sat, 13 Sep 2003 10:33:26 +0000 (10:33 +0000)]
(gl_PREREQ_READUTMP): Don't check for standard C headers or for string.h.
Jim Meyering [Sat, 13 Sep 2003 10:33:14 +0000 (10:33 +0000)]
(GL_FUNC_READDIR): Don't check for string.h.
Jim Meyering [Sat, 13 Sep 2003 10:32:55 +0000 (10:32 +0000)]
(gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
Jim Meyering [Sat, 13 Sep 2003 10:32:07 +0000 (10:32 +0000)]
(AC_FUNC_GETTIMEOFDAY_CLOBBER):
Include <string.h>, <stdlib.h> unconditionally.
Jim Meyering [Sat, 13 Sep 2003 10:31:57 +0000 (10:31 +0000)]
(gl_CLOSEOUT): Don't check for stdlib.h.
Jim Meyering [Sat, 13 Sep 2003 10:31:48 +0000 (10:31 +0000)]
(jm_CHECK_DECLS): Include <string.h>, <stdlib.h> unconditionally.
Jim Meyering [Sat, 13 Sep 2003 10:30:48 +0000 (10:30 +0000)]
*** empty log message ***
Jim Meyering [Sat, 13 Sep 2003 10:29:49 +0000 (10:29 +0000)]
(gl_ERROR): Don't check for vprintf.
Require AC_FUNC_STRERROR_R rather than invoking it.
Jim Meyering [Sat, 13 Sep 2003 10:29:28 +0000 (10:29 +0000)]
(error_tail): Assume vprintf.