Jim Meyering [Sat, 29 Jan 2005 00:20:50 +0000 (00:20 +0000)]
* Makefile.am (libfetish_a_SOURCES): Remove many files from this
list, now that automake determines their names automatically,
thanks to the new AC_LIBSOURCES and AC_LIBOBJ uses in the
corresponding ../m4/*.m4 files.
(EXTRA_DIST): Add getdate.c here, so that we continue to distribute it.
Jim Meyering [Sat, 29 Jan 2005 00:16:39 +0000 (00:16 +0000)]
Use AC_LIBSOURCES to list corresponding source (.c, .h, .y) files
so that automake automatically knows to distribute those files.
Use AC_LIBOBJ to ensure that automake automatically knows the
names of always-compiled source files. Automake already knows
the names of conditionally compiled ones, e.g., due to preexisting
uses of AC_LIBOBJ and AC_REPLACE_FUNCS.
[This is a start. Many still remain to be fixed...]
Jim Meyering [Tue, 25 Jan 2005 12:30:01 +0000 (12:30 +0000)]
Don't include assert.h.
(path_concat): Remove assertion that would have triggered
for ABASE starting with more than one slash.
Reported by Andreas Schwab.
Jim Meyering [Tue, 25 Jan 2005 09:07:49 +0000 (09:07 +0000)]
(path_concat): Set *BASE_IN_RESULT
properly when ABASE is an absolute file name.
Correct the description of this function.
Include <assert.h>.
Add an assertion and a test driver.
This fixes a bug introduced on 2004-07-02.
Jim Meyering [Wed, 19 Jan 2005 10:21:43 +0000 (10:21 +0000)]
(chdir_long): Rewrite to remove limitation on
component length. This included changing the parameter to be
of type `char *' rather than `char const *'.
Jim Meyering [Sat, 15 Jan 2005 17:19:47 +0000 (17:19 +0000)]
(isaac_seed) [HAVE_GETHRTIME]: #if-0 this block,
because just calling gethrtime evokes an `illegal instruction'
failure when compiled with Sun's c89 on Solaris 8 and 9.
Jim Meyering [Fri, 14 Jan 2005 16:30:15 +0000 (16:30 +0000)]
The test, tests/tail/f-1, failed on powerpc-apple-darwin7.7.0.
(IS_TAILABLE_FILE_TYPE): Adjust definition also to include
sockets, since that's what you get when reading from a command-line-
supplied pipe on Darwin 7.7.
(IS_PIPE_LIKE_FILE_TYPE): Define.
(main): Use new IS_PIPE_LIKE_FILE_TYPE rather than simply S_ISFIFO.
This same change is also required on NetBSD/sparc-1.5.
Reported by Adrian Bunk.
Jim Meyering [Fri, 14 Jan 2005 14:15:25 +0000 (14:15 +0000)]
(toarith): Rewrite to detect/diagnose integer overflow,
rather than suffering silently.
Before, expr would silently overflow and wrap around:
$ expr 9223372036854775808 = 0 # $(echo 2^63|bc)
1
Now it detects the problem and exits nonzero:
$ ./expr $(echo 2^63|bc) = 0
./expr: 9223372036854775808: integer is too large
Jim Meyering [Fri, 14 Jan 2005 13:33:26 +0000 (13:33 +0000)]
Work around tests/touch/empty-file failure on a system
(sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
NULL-means-set-to-current-time semantics.
Remove temporary file immediately, rather than waiting
for configure's at-exit trap code to do it.
Jim Meyering [Fri, 14 Jan 2005 10:39:05 +0000 (10:39 +0000)]
(id_gn): Exit 77, not 1, for a test-framework
failure, so that doesn't cause `make check' to stop. Nelson Beebe
reported that this test would fail with this diagnostic
`cannot find name for group ID 10' on one of his systems.
Jim Meyering [Tue, 11 Jan 2005 16:54:02 +0000 (16:54 +0000)]
(main): Check for overflow in tabstop values
specified via the obsolete form. E.g., now this command fails:
_POSIX2_VERSION=1 ./expand -$(echo '2^64+1'|bc)
Before it would act like `_POSIX2_VERSION=1 ./expand -1'.