Paul Eggert [Sat, 6 Sep 2003 21:34:07 +0000 (21:34 +0000)]
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
and gmtime_r, now supplied by the time_r module. This fixes some timegm
bugs and cleans up mktime and strftime a bit.
Paul Eggert [Wed, 3 Sep 2003 19:57:54 +0000 (19:57 +0000)]
(human_readable): Fix bug that rounded 10501 to 10k.
Bug reported by Lute Kamstra in
<http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
Paul Eggert [Wed, 3 Sep 2003 07:11:45 +0000 (07:11 +0000)]
(relative_time_table): Use tDAY_UNIT for "tomorrow", "yesterday",
"today", and "now" rather than tMINUTE_UNIT. Of course with
correspondingly smaller numbers for tomorrow and yesterday. From
Tadayoshi Funaba. Originally installed into sh-utils on 1999-08-07,
but the patch got lost (I guess during the coreutils merge?).
Jim Meyering [Wed, 27 Aug 2003 11:13:17 +0000 (11:13 +0000)]
Require that the system mkstemp be able to create
70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
would fail after 32. Reported by Danny Levinson. Details here:
http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
Paul Eggert [Sun, 17 Aug 2003 00:09:27 +0000 (00:09 +0000)]
(AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
to 1MB, so as not to render systems with no stack size limit (e.g.,
linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
Include <unistd.h>. On some systems,
it is required for the definition of _SC_PAGESIZE.
Paul Eggert [Sat, 16 Aug 2003 09:37:15 +0000 (09:37 +0000)]
(GL_FUNC_READDIR): Change name to have GL_ (not jm_)
prefix. Adjust cache variables similarly. Create 500 rather than
just 300 files, to exercise bug on Darwin6.5, too.
Paul Eggert [Sat, 16 Aug 2003 09:25:58 +0000 (09:25 +0000)]
(gl_SYS__SYSTEM_CONFIGURATION): New macro.
(gl_PHYSMEM): Use it.
Also check for `table' function.
Check for new headers and functions.
Add check for sys/sysmp.h.
With suggestions from Kaveh Ghazi.
Ignore headers that are present but cannot be compiled. This
avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
C 5.4.
Paul Eggert [Sat, 16 Aug 2003 09:04:11 +0000 (09:04 +0000)]
Require AC_SYS_POSIX_TERMIOS, not AM_SYS_POSIX_TERMIOS.
Reported by mkc@mathdogs.com.
Also change use of $am_cv_sys_posix_termios
to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
Paul Eggert [Sat, 16 Aug 2003 08:28:42 +0000 (08:28 +0000)]
[__GLIBC__]: GNU libc's statvfs stats each mount point in
/proc/mounts until it finds one with matching device number. This is
unnecessary when the FILE argument *is* a mount point. No stat call
is necessary in that case. So, disable the statvfs-testing code on
systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
as RedHat bug# 84846.
Paul Eggert [Fri, 15 Aug 2003 06:03:15 +0000 (06:03 +0000)]
Use the `$(VAR)' notation for AC_REPLACED variable names, rather than @VAR@.
Use `$@' in the commands, in place of the three copies of the literal target.
Paul Eggert [Fri, 15 Aug 2003 03:23:11 +0000 (03:23 +0000)]
Merge in portability changes from gcc/libiberty
to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
for credits and details. Thanks to Kaveh Ghazi for helping
to keep these files in sync.
(ARRAY_SIZE): Define it.
(physmem_total, physmem_available): Add comments. From Kaveh Ghazi.