extensions: Enable extensions on MacOS X 10.5 and later.
[gnulib.git] / ChangeLog
index e300977..0a90446 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,271 @@
+2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       extensions: Enable extensions on MacOS X 10.5 and later.
+       * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
+
+2011-07-22  Kamil Dudka  <kdudka@redhat.com>
+
+       file-has-acl: use acl_extended_file_nofollow if available
+       * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
+       (acl_extended_file): New macro.
+       * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
+       * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
+
+2011-07-21  Bruno Haible  <bruno@clisp.org>
+
+       Declare system functions in a way that works with C++.
+       * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
+       declare fdopendir as extern "C".
+       * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
+       declare frexpl as extern "C".
+       * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
+       declare gai_strerror as extern "C".
+       * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
+       programs, declare gai_strerror as extern "C".
+       * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
+       declare getlogin_r as extern "C".
+       * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
+       as extern "C".
+       * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
+       declare ldexpl as extern "C".
+       * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
+       as extern "C".
+       * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
+       program, declare getmntinfo as extern "C".
+       * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
+       stpncpy as extern "C".
+       * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
+       program, declare __xpg_strerror_r as extern "C".
+       * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
+       strndup as extern "C".
+       * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
+       declare memset and bzero as extern "C".
+       Reported by Sam Steingold <sds@gnu.org>.
+
+2011-07-12  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: prohibit inclusion of "verify.h" without use
+       * top/maint.mk (sc_prohibit_verify_without_use): New rule.
+
+2011-07-19  Pádraig Brady  <P@draigBrady.com>
+
+       timer-time: A new module to check for timer_settime()
+       * m4/timer_time.m4: Check for the posix function.
+       * modules/timer-time: Add the new module.
+       * MODULES.html.sh (Compat checks for POSIX:2008 functions):
+       Mention it.
+
+2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
+           Bruno Haible  <bruno@clisp.org>
+
+       pthread_sigmask: assume POSIX threads if --avoid=threadlib
+       * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
+       not defined, assume POSIX threads and look for pthread_sigmask in
+       $LIBS, without changing $CPPFLAGS.
+
+2011-07-19  Bruno Haible  <bruno@clisp.org>
+
+       strstr: Update cross-compilation guess.
+       * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
+       CPUs, guess no, in view of glibc
+       BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
+       Suggested by Eric Blake. Reported by Reuben Thomas.
+
+2011-07-19  Pádraig Brady  <P@draigBrady.com>
+
+       getopt-gnu: suppress core dumps from detection code
+       * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
+       to suppress core dumps that may well occur on glibc systems.
+       * modules/getopt-gnu: Depend on nocrash.
+
+2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       pthread_sigmask: ensure usleep is declared
+       * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
+       Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
+
+2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
+
+       doc: Document NonStop portability issues.
+       * doc/posix-functions/sigaction.texi (sigaction):
+       * doc/posix-headers/signal.texi (signal.h):
+       Document NonStop.  See Joachim Schmitz in
+       http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
+
+2011-07-15  Bruno Haible  <bruno@clisp.org>
+
+       ffsl, ffsll: Avoid unportable behaviour.
+       * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
+
+2011-07-15  Bruno Haible  <bruno@clisp.org>
+
+       ffs: More tests.
+       * tests/test-ffs.c (NBITS): New macro.
+       (main): Add more tests.
+       * tests/test-ffsl.c (NBITS): New macro.
+       (main): Add more tests.
+       * tests/test-ffsll.c (NBITS): New macro.
+       (main): Add more tests.
+
+2011-07-15  Eric Blake  <eblake@redhat.com>
+
+       ffsl, ffsll: new modules
+       * modules/ffsl: New file.
+       * modules/ffsll: Likewise.
+       * m4/ffsl.m4: Likewise.
+       * m4/ffsll.m4: Likewise.
+       * lib/ffsl.c: Likewise.
+       * lib/ffsl.h: Likewise.
+       * lib/ffsll.c: Likewise.
+       * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
+       (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
+       * modules/string (Makefile.am): Substitute witnesses.
+       * lib/strings.in.h (ffsl, ffsll): Declare.
+       * modules/ffsl-tests: New test file.
+       * modules/ffsll-tests: Likewise.
+       * tests/test-ffsl.c: Likewise.
+       * tests/test-ffsll.c: Likewise.
+       * MODULES.html.sh (Integer arithmetic functions): Mention it.
+       * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
+       * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
+
+       ffs: fix m4 prerequisite
+       * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
+
+       ffs: avoid undefined behavior
+       * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
+       * tests/test-ffs.c (naive, main): Avoid signed shifts.
+       Reported by Bruno Haible.
+
+2011-07-12  Bruno Haible  <bruno@clisp.org>
+
+       pthread_sigmask: Rely on module 'threadlib'.
+       * modules/pthread_sigmask (Depends-on): Add threadlib.
+       * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
+       is defined.
+
+2011-07-12  Bruno Haible  <bruno@clisp.org>
+
+       regex: Depend on module 'strcase'.
+       * modules/regex (Depends-on): Add strcase, for strcasecmp().
+
+2011-07-12  Jim Meyering  <meyering@redhat.com>
+
+       warn-on-use: fix typo in file name
+       * modules/snippet/warn-on-use (Files): Correct file name:
+       include /snippet/ component in "build-aux/snippet/warn-on-use.h".
+
+2011-07-12  Bruno Haible  <bruno@clisp.org>
+
+       strings: Document module.
+       * doc/posix-headers/strings.texi: Mention module 'strings'.
+
+2011-07-12  Bruno Haible  <bruno@clisp.org>
+
+       Rename module '_Noreturn' to 'snippet/_Noreturn'.
+       * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
+       (Files, Makefile.am): Update.
+       * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
+       * modules/stdlib (Depends-on): Update.
+
 2011-07-12  Bruno Haible  <bruno@clisp.org>
 
+       * NEWS: Mention the changes.
+
+       Rename module 'warn-on-use' to 'snippet/warn-on-use'.
+       * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
+       (Files, Makefile.am): Update.
+       * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
+       * modules/arpa_inet (Depends-on): Update.
+       * modules/ctype (Depends-on): Update.
+       * modules/dirent (Depends-on): Update.
+       * modules/fcntl-h (Depends-on): Update.
+       * modules/glob (Depends-on): Update.
+       * modules/iconv-h (Depends-on): Update.
+       * modules/inttypes-incomplete (Depends-on): Update.
+       * modules/langinfo (Depends-on): Update.
+       * modules/locale (Depends-on): Update.
+       * modules/math (Depends-on): Update.
+       * modules/netdb (Depends-on): Update.
+       * modules/poll-h (Depends-on): Update.
+       * modules/pty (Depends-on): Update.
+       * modules/search (Depends-on): Update.
+       * modules/signal (Depends-on): Update.
+       * modules/spawn (Depends-on): Update.
+       * modules/stdio (Depends-on): Update.
+       * modules/stdlib (Depends-on): Update.
+       * modules/string (Depends-on): Update.
+       * modules/strings (Depends-on): Update.
+       * modules/sys_file (Depends-on): Update.
+       * modules/sys_ioctl (Depends-on): Update.
+       * modules/sys_select (Depends-on): Update.
+       * modules/sys_socket (Depends-on): Update.
+       * modules/sys_stat (Depends-on): Update.
+       * modules/sys_time (Depends-on): Update.
+       * modules/sys_times (Depends-on): Update.
+       * modules/sys_utsname (Depends-on): Update.
+       * modules/sys_wait (Depends-on): Update.
+       * modules/termios (Depends-on): Update.
+       * modules/time (Depends-on): Update.
+       * modules/unistd (Depends-on): Update.
+       * modules/wchar (Depends-on): Update.
+       * modules/wctype-h (Depends-on): Update.
+       * MODULES.html.sh (Support for building libraries and executables):
+       Update.
+
+       Rename module 'unused-parameter' to 'snippet/unused-parameter'.
+       * modules/snippet/unused-parameter: Renamed from
+       modules/unused-parameter.
+       (Files, Makefile.am): Update.
+       * build-aux/snippet/unused-parameter.h: Renamed from
+       build-aux/unused-parameter.h.
+       * modules/selinux-h (Depends-on): Update.
+       * modules/unistr/base (Depends-on): Update.
+       * MODULES.html.sh (Core language properties): Update.
+
+       Rename module 'link-warning' to 'snippet/link-warning'.
+       * modules/snippet/link-warning: Renamed from modules/link-warning.
+       (Files, Makefile.am): Update.
+       * build-aux/snippet/link-warning.h: Renamed from
+       build-aux/link-warning.h.
+       * MODULES.html.sh (Support for building libraries and executables):
+       Update.
+
+       Rename module 'c++defs' to 'snippet/c++defs'.
+       * modules/snippet/c++defs: Renamed from modules/c++defs.
+       (Files, Makefile.am): Update.
+       * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
+       * modules/arpa_inet (Depends-on): Update.
+       * modules/ctype (Depends-on): Update.
+       * modules/dirent (Depends-on): Update.
+       * modules/fcntl-h (Depends-on): Update.
+       * modules/glob (Depends-on): Update.
+       * modules/iconv-h (Depends-on): Update.
+       * modules/langinfo (Depends-on): Update.
+       * modules/locale (Depends-on): Update.
+       * modules/math (Depends-on): Update.
+       * modules/netdb (Depends-on): Update.
+       * modules/poll-h (Depends-on): Update.
+       * modules/pty (Depends-on): Update.
+       * modules/search (Depends-on): Update.
+       * modules/signal (Depends-on): Update.
+       * modules/spawn (Depends-on): Update.
+       * modules/stdio (Depends-on): Update.
+       * modules/stdlib (Depends-on): Update.
+       * modules/string (Depends-on): Update.
+       * modules/strings (Depends-on): Update.
+       * modules/sys_ioctl (Depends-on): Update.
+       * modules/sys_select (Depends-on): Update.
+       * modules/sys_socket (Depends-on): Update.
+       * modules/sys_stat (Depends-on): Update.
+       * modules/sys_time (Depends-on): Update.
+       * modules/sys_wait (Depends-on): Update.
+       * modules/termios (Depends-on): Update.
+       * modules/time (Depends-on): Update.
+       * modules/unistd (Depends-on): Update.
+       * modules/wchar (Depends-on): Update.
+       * modules/wctype-h (Depends-on): Update.
+
        Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
        * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
        (Files, Makefile.am): Update.