Take into account the role of SIGABRT_COMPAT on Windows 2008.
[gnulib.git] / ChangeLog
index 92c2d67..86b9c18 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,267 @@
+2008-10-20  Bruno Haible  <bruno@clisp.org>
+
+       Take into account the role of SIGABRT_COMPAT on Windows 2008.
+       * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
+       (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
+       as an alias for SIGABRT.
+       * lib/sigaction.c (SIGABRT_COMPAT): New macro.
+       (sigaction): Map it to SIGABRT.
+       Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
+
+2008-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * lib/fts.c: Don't include lstat.h.
+       * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
+
+       Move the lstat() declaration to <sys/stat.h>.
+       * lib/lstat.h: Remove file.
+       * lib/sys_stat.in.h: Add special invocation convention.
+       (lstat): New declaration.
+       * lib/lstat.c (orig_lstat): New function.
+       (rpl_lstat): Use orig_lstat instead of lstat.
+       * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
+       AC_C_INLINE. Set REPLACE_LSTAT.
+       * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
+       and REPLACE_LSTAT.
+       * modules/lstat (Files): Remove lib/lstat.h.
+       (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
+       (Include): Specify <sys/stat.h> instead of lstat.h.
+       * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
+       REPLACE_LSTAT.
+       * NEWS: Mention the change.
+
+2008-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * modules/posix_spawn-tests: New file.
+       * tests/test-posix_spawn3.c: New file.
+
+2008-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
+       * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
+       WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
+       * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
+       WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
+
+2008-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
+       of posix_spawn on AIX 5.3.
+
+2008-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
+
+2008-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
+       of AC_LANG_PROGRAM.
+
+2008-10-20  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/netdb.in.h: Don't define GNU specific constants until they
+       are supported or needed.  Reported by Bruno Haible
+       <bruno@clisp.org>.
+
+2008-10-20  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
+
+2008-10-20  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/getaddrinfo.h: Remove file.
+       * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
+       * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
+       * lib/netdb.in.h: Add declarations from getaddrinfo.h.
+       * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
+       * modules/netdb: Substitute GNULIB_GETADDRINFO.
+       * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
+       * tests/test-getaddrinfo.c: Likewise.
+       * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
+       * NEWS: Mention change.
+
+2008-10-19  Bruno Haible  <bruno@clisp.org>
+
+       * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
+
+2008-10-19  Bruno Haible  <bruno@clisp.org>
+
+       * lib/wait-process.c: Include simply <sys/wait.h>.
+       (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
+       WIFSTOPPED): Remove fallback definitions.
+       * modules/wait-process (Depends-on): Add sys_wait.
+
+       New module 'sys_wait'.
+       * modules/sys_wait: New file.
+       * lib/sys_wait.in.h: New file, partially copied from
+       lib/wait-process.c.
+       * m4/sys_wait_h.m4: New file.
+       * doc/posix-headers/sys_wait.texi: Mention the new module.
+
+2008-10-19  Bruno Haible  <bruno@clisp.org>
+
+       * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
+
+2008-10-19  Bruno Haible  <bruno@clisp.org>
+
+       Assume that waitpid() fills an 'int' status, not a 'union wait'.
+       * lib/wait-process.c (WAIT_T): Remove type.
+       (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
+       (wait_subprocess): Update.
+
+2008-10-19  Bruno Haible  <bruno@clisp.org>
+
+       New module 'atoll'.
+       * modules/atoll: New file.
+       * lib/stdlib.in.h (atoll): New declaration.
+       * lib/atoll.c: New file, from glibc with modifications.
+       * m4/atoll.m4: New file.
+       * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
+       HAVE_ATOLL.
+       * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
+       * doc/posix-functions/atoll.texi: Mention the new module.
+
+2008-10-19  Bruno Haible  <bruno@clisp.org>
+
+       Add strtoull() declaration to <stdlib.h>.
+       * lib/stdlib.in.h (strtoull): New declaration.
+       * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
+       Set HAVE_STRTOULL.
+       * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
+       HAVE_STRTOULL.
+       * modules/strtoull (Depends-on): Add stdlib.
+       (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
+       * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
+       HAVE_STRTOULL.
+
+2008-10-19  Bruno Haible  <bruno@clisp.org>
+
+       Add strtoll() declaration to <stdlib.h>.
+       * lib/stdlib.in.h (strtoll): New declaration.
+       * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
+       Set HAVE_STRTOLL.
+       * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
+       HAVE_STRTOLL.
+       * modules/strtoll (Depends-on): Add stdlib.
+       (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
+       * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
+
+2008-10-19  Bruno Haible  <bruno@clisp.org>
+
+       * modules/bcopy (Depends-on): Add strings.
+       (Include): Specify <strings.h>.
+
+2008-10-19  Bruno Haible  <bruno@clisp.org>
+
+       * doc/posix-functions/atexit.texi: Update doc regarding mingw.
+
+2008-10-19  Bruno Haible  <bruno@clisp.org>
+
+       * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
+       the parameter from 'errno' to 'errnum'. Fixes a compilation error on
+       mingw.
+
+2008-10-19  Bruno Haible  <bruno@clisp.org>
+
+       * lib/atanl.c: Don't include isnanl.h.
+       * lib/cosl.c: Likewise.
+       * lib/ldexpl.c: Likewise.
+       * lib/logl.c: Likewise.
+       * lib/sinl.c: Likewise.
+       * lib/sqrtl.c: Likewise.
+       * lib/tanl.c: Likewise.
+
+       Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
+       * lib/isnanf.h: Remove file.
+       * lib/isnand.h: Remove file.
+       * lib/isnanl.h: Remove file.
+       * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
+       lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
+       macros.
+       * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
+       HAVE_ISNANF, don't define it as a C macro.
+       * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
+       HAVE_ISNAND, don't define it as a C macro.
+       * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
+       HAVE_ISNANL, don't define it as a C macro.
+       * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
+       HAVE_ISNAN[FDL].
+       * modules/isnanf (Files): Remove lib/isnanf.h.
+       (Depends-on): Add math.
+       (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
+       (Include): Specify <math.h> instead of isnanf.h.
+       * modules/isnand (Files): Remove lib/isnand.h.
+       (Depends-on): Add math.
+       (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
+       (Include): Specify <math.h> instead of isnand.h.
+       * modules/isnanl (Files): Remove lib/isnanl.h.
+       (Depends-on): Add math.
+       (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
+       (Include): Specify <math.h> instead of isnanl.h.
+       * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
+       HAVE_ISNAN[FDL].
+       * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
+       * tests/test-isnand.c: Include <math.h> instead of isnand.h.
+       * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
+       * NEWS: Mention the change.
+
+2008-10-18  Bruno Haible  <bruno@clisp.org>
+
+       Add getusershell(), setusershell(), endusershell() declarations to
+       <unistd.h>.
+       * lib/unistd.in.h (getusershell, setusershell, endusershell): New
+       declarations.
+       * lib/getusershell.c: Include unistd.h.
+       * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
+       gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
+       HAVE_GETUSERSHELL.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
+       and HAVE_GETUSERSHELL.
+       * modules/getusershell (Depends-on): Add unistd, extensions.
+       (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
+       (Include): Specify <unistd.h>.
+       * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
+       HAVE_GETUSERSHELL.
+
+2008-10-18  Bruno Haible  <bruno@clisp.org>
+
+       Add a getloadavg() declaration to <stdlib.h>.
+       * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
+       getloadavg declaration.
+       (getloadavg): New declaration.
+       * lib/getloadavg.c: Include <stdlib.h> first.
+       * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
+       AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
+       HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
+       * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
+       HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
+       * modules/getloadavg (Depends-on): Add stdlib, extensions.
+       (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
+       (Include): Specify <stdlib.h>.
+       * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
+       HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
+
+2008-10-18  Bruno Haible  <bruno@clisp.org>
+
+       * lib/dirchownmod.c: Don't include lchmod.h.
+
+       Move the lchmod() declaration to <sys/stat.h>.
+       * lib/lchmod.h: Remove file.
+       * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
+       (lchmod): New declaration, moved here from lib/lchown.h.
+       * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
+       AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
+       * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
+       and HAVE_LCHMOD.
+       * modules/lchmod (Files): Remove lib/lchmod.h.
+       (Depends-on): Add sys_stat, extensions.
+       (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
+       (Include): Specify <sys/stat.h> instead of lchmod.h.
+       * modules/sys_stat (Depends-on): Add link-warning.
+       (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
+       definition of GL_LINK_WARNING.
+       * NEWS: Mention the change.
+
 2008-10-18  Bruno Haible  <bruno@clisp.org>
 
        * lib/fchdir.c: Don't include dirfd.h.