Jim Meyering [Wed, 19 Jun 2002 11:12:59 +0000 (11:12 +0000)]
Report an error if neither S_ISREG nor
S_IFREG is defined, instead of using a test specific to glibc
2.2. This should be safe, since POSIX requires S_ISREG and
Unix Version 7 had S_IFREG. We don't need to check for
<sys/types.h> since we don't use any symbols that it defines.
Jim Meyering [Sat, 15 Jun 2002 08:46:59 +0000 (08:46 +0000)]
(lstat.c, stat.c, .sin.sed): Use t-$@, rather than $@-t,
so that each temporary file name is unique and valid in the first
8 characters, for operation under DOS.
Jim Meyering [Sat, 15 Jun 2002 08:43:45 +0000 (08:43 +0000)]
(FILE_TYPE_H): Guard entire contents with #ifndef.
For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
have been included before this file.
Jim Meyering [Fri, 7 Jun 2002 14:43:36 +0000 (14:43 +0000)]
(jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
They're needed at least for NetBSD 1.5.2.
($statxfs_includes): Include those same headers.
($statxfs_includes): Include sys/vfs.h if available.
($statxfs_includes): Likewise for sys/statvfs.h.
Check for the following members in both structs statfs and statvfs:
f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
Jim Meyering [Mon, 27 May 2002 16:42:55 +0000 (16:42 +0000)]
Fix a problem seen only on nonconforming systems whereby ls.c's
use of localtime, and then of gettimeofday would cause trouble:
the localtime call used to initialize rpl_gettimeofday's save
mechanism would clobber ls's current local time information so
that in any long listing the first file would always be listed
with date 1970-01-01. Analysis by Volker Borchert.
(localtime): Undefine.
(rpl_localtime): New function.
Jim Meyering [Tue, 30 Apr 2002 09:20:19 +0000 (09:20 +0000)]
(jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
Do not check for alloca.h (no longer used) or stdbool.h (was never
used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
Jim Meyering [Mon, 29 Apr 2002 06:59:24 +0000 (06:59 +0000)]
(SIGNUM_BOUND): Do not use WTERMSIG, to avoid
depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
of 127, since 64 is the largest conceivable number for ancient
nonstandard hosts.
Jim Meyering [Fri, 12 Apr 2002 20:50:53 +0000 (20:50 +0000)]
(checking for getmntinfo function...): Remove now-bogus
check for f_type in sys/mount.h. Instead, just test for the existence
of the getmntinfo function. Needed for Darwin 5.3.
Jim Meyering [Fri, 12 Apr 2002 11:02:59 +0000 (11:02 +0000)]
Don't AC_REPLACE(strnlen), now that we use
AC_FUNC_STRNLEN. That would end up putting two copies of strnlen.o
in the library, and that makes some versions of ranlib object.
Jim Meyering [Tue, 9 Apr 2002 17:55:36 +0000 (17:55 +0000)]
(jm_FUNC_REALLOC): Change the `checking ...' message
to be more precise. Rather than saying we're checking whether the
function `works', say what we're testing.
Jim Meyering [Tue, 9 Apr 2002 17:55:23 +0000 (17:55 +0000)]
(jm_FUNC_MALLOC): Change the `checking ...' message
to be more precise. Rather than saying we're checking whether the
function `works', say what we're testing.