Bruno Haible [Thu, 3 Mar 2005 20:38:38 +0000 (20:38 +0000)]
From Derek Price:
(pagealign_alloc): Set var to const as possible.
Check for MAP_FAILED return from mmap. Set errno on failure of
posix_memalign(). Catch munmap failure.
Paul Eggert [Tue, 1 Mar 2005 17:25:09 +0000 (17:25 +0000)]
Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
The workaround isn't strictly needed for POSIX conformance, and
it's too much of a pain to configure and maintain. We'll ask
people to fix their kernels instead.
* modules/xnanosleep (Depends-on): Remove gethrxtime.
* lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
(NANOSLEEP_BUG_WORKAROUND): Remove.
(xnanosleep): Remove the workaround.
* m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
to detect nanosleep bug.
* lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
* lib/timespec.h (gettime): Return void, since it always
succeeds now. All uses changed.
* lib/gettime.c (gettime) Likewise.
[HAVE_NANOTIME]: Prefer nanotime.
Assume gettimeofday succeeds, as POSIX requires.
Assime time () succeeds, since other code already does.
* lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
(timespec_subtract): Remove.
(NANOSLEEP_BUG_WORKAROUND): New constant.
(xnanosleep): Use gethrxtime rather than gettime; this simplifies
things considerably. Use it only on GNU/Linux hosts, since the
workaround shouldn't be needed elsewhere.
* m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
* m4/gettime.m4 (gl_GETTIME): Check for nanotime.
Paul Eggert [Thu, 3 Feb 2005 20:38:14 +0000 (20:38 +0000)]
* modules/chdir-long (Depends-on): Add memrchr.
* modules/memrchr (Files): Add lib/memrchr.h.
(Include): "memrchr.h".
* lib/memrchr.h: New file.
* lib/chdir-long.c: Include it.
* lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
Don't bother including stddef.h.
* m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
Paul Eggert [Tue, 1 Feb 2005 23:56:46 +0000 (23:56 +0000)]
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
inclusion.
Include <sys/types.h>, for dev_t.
(ME_DUMMY, ME_REMOTE): Move from here....
* mountlist.c (ME_DUMMY, ME_REMOTE): To here.
(ME_DUMMY): Count "subfs" as a dummy. Problem reported by
Dmitry V. Levin.
Include mountlist.h first, to test the interface.
(gl_SYSEXITS): Reverted logic. SYSEXITS_H
must be defined if the header file was not found, in order
to provide a replacement. Reported by Todd Vierling <tv@duh.org>
* lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
same value as for Solaris 9.
* lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
component length. This included changing the parameter to be
of type `char *' rather than `char const *'.
* lib/chdir-long.h (chdir_long): Update prototype.
* lib/openat.c (fdopendir, fstatat): New functions.
* lib/openat.h: Include headers required for use of DIR and struct stat.
[AT_SYMLINK_NOFOLLOW]: Define.
(fdopendir, fstatat): Add prototypes.
Paul Eggert [Fri, 21 Jan 2005 00:24:52 +0000 (00:24 +0000)]
* MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
* modules/version-etc-fsf: New file.
* lib/version-etc-fsf.c: New file, with version_etc_copyright.
* lib/version-etc.c: Remove version_etc_copyright.
* lib/version-etc.h (version_etc_copyright): Use [] instead of * in
prototype.
Paul Eggert [Thu, 20 Jan 2005 22:21:01 +0000 (22:21 +0000)]
* lib/save-cwd.c (save_cwd): Remove code to support the case
where fchdir is missing or flaky.
* m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume it.
Simon Josefsson [Thu, 20 Jan 2005 12:22:11 +0000 (12:22 +0000)]
* base64.h (isbase64): Add.
* base64.c (isb64): Rename to isbase64, use to_uchar instead of
using a unsigned prototype, don't inline.
(base64_decode): Use it.
Paul Eggert [Tue, 18 Jan 2005 23:52:18 +0000 (23:52 +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.