Jim Meyering [Wed, 21 Jan 2004 23:31:33 +0000 (23:31 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Initialize exit_failure to EXIT_FAIL.
(main): Use EXIT_ENOENT and EXIT_CANNOT_INVOKE
rather than roll-your-own symbols or integers.
(NOHUP_FOUND_BUT_CANNOT_INVOKE): Remove; all uses
changed to EXIT_CANNOT_INVOKE.
Jim Meyering [Wed, 21 Jan 2004 23:30:09 +0000 (23:30 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
(main): Exit with status 1, not 2, on errors detected by nl proper.
Jim Meyering [Wed, 21 Jan 2004 23:28:19 +0000 (23:28 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Initialize exit_failure to EXIT_FAIL.
(main): Exit with status EXIT_FAIL, not EXIT_FAILURE,
on error; this is in case EXIT_FAILURE is unusual.
Jim Meyering [Wed, 21 Jan 2004 23:21:17 +0000 (23:21 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
(main): Use int, not size_t, to store boolean int.
Jim Meyering [Wed, 21 Jan 2004 23:10:54 +0000 (23:10 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
(main): Don't assume EXIT_FAILURE == 1, as POSIX doesn't require it.
(problems): Now a boolean int, not a counter,
so that we don't have to worry about int overflow. All uses changed.
Jim Meyering [Wed, 21 Jan 2004 23:02:45 +0000 (23:02 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Use initialize_exit_failure rather than
setting exit_failure directly; this optimizes away redundant assignments.
(EXPR_FAILURE): Renamed from EXPR_ERROR, for
consistency with the other programs' naming conventions.
All uses changed.
Jim Meyering [Wed, 21 Jan 2004 22:59:14 +0000 (22:59 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Initialize exit_failure to EXIT_FAIL.
(main): Use initialize_exit_failure rather than
setting exit_failure directly; this optimizes away redundant
assignments.
(main): Use EXIT_ENOENT and EXIT_CANNOT_INVOKE
rather than roll-your-own symbols or integers.
(main): Exit with status 1, not 2, on errors detected by env proper.
Jim Meyering [Wed, 21 Jan 2004 22:53:49 +0000 (22:53 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(dd_copy): Exit with status EXIT_FAILURE, not 2, on errors.
(write_output, skip, dd_copy): Don't assume EXIT_FAILURE == 1,
as POSIX doesn't require it.
Jim Meyering [Wed, 21 Jan 2004 19:57:35 +0000 (19:57 +0000)]
* tests/touch/relative: Test only year/month/day, not hours/min/sec,
so as to avoid problems with systems using TAI clocks.
Although it's no longer necessary, set TZ=UTC0 also for the
initial touch command. Reported by Paul Jarc here:
http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/1504
Jim Meyering [Tue, 20 Jan 2004 09:19:37 +0000 (09:19 +0000)]
Use TZ=UTC0, not TZ=utc (which isn't portable).
Problem reported by Christian Krackowizer. Also, use
+0000 rather than +0 to specify a time zone, as the documentation
requires four digits.
Jim Meyering [Fri, 16 Jan 2004 09:58:08 +0000 (09:58 +0000)]
Merge from gnulib.
Include <stdio.h>, so that the caller
doesn't have to include <stdio.h> before us.
(clearerr_unlocked, feof_unlocked, ferror_unlocked,
fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
if not declared, so that we can use getpass.c code from libc without
rewriting it.
(flockfile, ftrylockfile, funlockfile): New macros.
Jim Meyering [Fri, 16 Jan 2004 09:55:15 +0000 (09:55 +0000)]
(ALLOCA_LIMIT): Remove macro, which collided
with like-named macro in fnmatch.c.
(EXT): Use an internal constant instead.
Merge fnmatch patches from glibc.
(FCT): Cast to int32_t and UCHAR when appropriate.
Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
Jim Meyering [Fri, 16 Jan 2004 09:53:28 +0000 (09:53 +0000)]
Remove dependency on xalloc module.
(xalloc_die): Remove.
(memory_full) [!defined emacs]: New macro.
[!defined emacs]: Don't include xalloc.h.
(alloca): Invoke memory_full, not xalloc_die, if malloc fails or
address arithmetic overflows. Change datatypes a bit to avoid
unnecessary casts.
Jim Meyering [Fri, 16 Jan 2004 09:03:32 +0000 (09:03 +0000)]
(_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
followed by '#define fnmatch fnmatch_posix' gives an error.