update and refinalise NEWS.stable
[gnulib.git] / ChangeLog
index 3bc63aa..be6cff3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,188 @@
+2011-04-10  Bruno Haible  <bruno@clisp.org>
+
+       stdint test: Fix compilation failure on OSF/1 with DTK compiler.
+       * modules/stdint-tests (Depends-on): Add wchar.
+
+2011-04-10  Jim Meyering  <meyering@redhat.com>
+
+       test-chown.h: correct a cast
+       * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
+       when the destination is a stat.st_gid.
+
+2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
+
+       getaddrinfo: Fix test for sa_len member.
+       * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
+       include <sys/types.h> before <sys/socket.h>.
+
+2011-04-08  Eric Blake  <eblake@redhat.com>
+
+       fcntl-h: fix O_ACCMODE on cygwin
+       * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
+       * lib/fcntl.in.h (O_ACCMODE): Fix it.
+
+2011-04-06  Eric Blake  <eblake@redhat.com>
+
+       binary-io: relicense under LGPLv2+
+       * modules/binary-io (License): Relax to LGPLv2+.
+       Requested for libvirt, and required by pipe2.
+
+2011-04-05  Bruno Haible  <bruno@clisp.org>
+
+       pipe2: Relicense under LGPLv2+.
+       * modules/pipe2 (License): Change to LGPLv2+.
+       Requested by Eric Blake, for libvirt.
+
+2011-04-05  Simon Josefsson  <simon@josefsson.org>
+
+       * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
+       sc_space_tab check.
+
+2011-04-01  Bruno Haible  <bruno@clisp.org>
+
+       wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
+       * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
+       _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
+       systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
+       Reported by Bruce Korb <bruce.korb@gmail.com>.
+
+2011-04-01  Bruno Haible  <bruno@clisp.org>
+
+       wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
+       * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
+       * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
+       * modules/wcpcpy (Depends-on): Add extensions.
+       * modules/wcpncpy (Depends-on): Likewise.
+       * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
+       systems.
+       * doc/posix-functions/wcpncpy.texi: Likewise.
+       * doc/posix-functions/wcwidth.texi: Likewise.
+
+2011-03-31  Eric Blake  <eblake@redhat.com>
+
+       nonblocking: fix mingw test failures
+       * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
+       non-blocking flag on regular file.
+       (get_nonblocking_flag): Set errno on invalid fd.
+       * tests/test-nonblocking.c (main): Avoid test failure on
+       directories if fchdir is not active.
+       * modules/nonblocking-tests (Depends-on): Drop unused dependency.
+
+2011-03-31  Bruno Haible  <bruno@clisp.org>
+
+       Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
+       * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
+       gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
+       Reported by Simon Josefsson <simon@josefsson.org>.
+
+2011-03-31  Bruno Haible  <bruno@clisp.org>
+       and Eric Blake  <eblake@redhat.com>
+
+       nonblocking: new module
+       * modules/nonblocking: New module.
+       * modules/nonblocking-tests: Likewise.
+       * lib/nonblocking.h: New file.
+       * lib/nonblocking.c: Likewise.
+       * tests/test-nonblocking.c: New test.
+       * lib/ioctl.c (ioctl) [mingw]: Update comment.
+
+2011-03-30  Bruno Haible  <bruno@clisp.org>
+
+       stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
+       * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
+       instead of 'printf' format for GCC >= 4.4.
+       (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
+       (fprintf, printf, vfprintf, vprintf): Declare with
+       _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
+       the system's vfprintf() function.
+       Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
+
+2011-03-30  Eric Blake  <eblake@redhat.com>
+
+       passfd: fix scoping bug
+       * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
+       before sendmsg/recvmsg.
+
+       passfd: standardize coding conventions
+       * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
+       can be learned at compile time.
+       * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
+       ifdefs.
+       (sendfd, recvfd): Follow gnulib code conventions.
+
+       passfd: fix incorrect sendmsg arguments
+       * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
+       incorrect msg_controllen value.
+       * modules/passfd-tests (Depends-on): Check for alarm.
+       * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
+       Reported by Bastien ROUCARIES.
+
+2011-03-30  Bruno Haible  <bruno@clisp.org>
+
+       c-strcasestr: Relicense under LGPLv2+.
+       * modules/c-strcasestr (License): Change to LGPLv2+.
+       Requested by Eric Blake, for libvirt.
+
+2011-03-30  Simon Josefsson  <simon@josefsson.org>
+
+       * users.txt: Add libidn2.  Fix libtasn1 link.
+
+2011-03-30  Jim Meyering  <meyering@redhat.com>
+
+       tests: readlink* ("",... fails with EINVAL on newer kernels
+       readlink and readlinkat have typically failed with ENOENT for
+       the invalid, empty file name,  "".  However, with the advent
+       of linux-2.6.39, they fail with EINVAL.
+       * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
+       when operating on the empty file name.
+       * tests/test-readlink.h (test_readlink): Likewise.
+
+2011-03-29  Bruno Haible  <bruno@clisp.org>
+
+       Relicense some modules under LGPLv2+, for libidn2.
+       * modules/array-mergesort (License): Change to LGPLv2+.
+       * modules/c-strcaseeq (License): Likewise.
+       * modules/striconveh (License): Likewise.
+       * modules/striconveha (License): Likewise.
+       * modules/uniconv/base (License): Likewise.
+       * modules/uniconv/u8-conv-from-enc (License): Likewise.
+       * modules/uniconv/u8-strconv-from-enc (License): Likewise.
+       * modules/uniconv/u8-strconv-from-locale (License): Likewise.
+       * modules/unictype/base (License): Likewise.
+       * modules/unictype/bidiclass-of (License): Likewise.
+       * modules/unictype/category-M (License): Likewise.
+       * modules/unictype/category-none (License): Likewise.
+       * modules/unictype/category-of (License): Likewise.
+       * modules/unictype/category-test (License): Likewise.
+       * modules/unictype/category-test-withtable (License): Likewise.
+       * modules/unictype/combining-class (License): Likewise.
+       * modules/unictype/joiningtype-of (License): Likewise.
+       * modules/unictype/scripts (License): Likewise.
+       * modules/uninorm/base (License): Likewise.
+       * modules/uninorm/canonical-decomposition (License): Likewise.
+       * modules/uninorm/composition (License): Likewise.
+       * modules/uninorm/decompose-internal (License): Likewise.
+       * modules/uninorm/decomposition-table (License): Likewise.
+       * modules/uninorm/nfc (License): Likewise.
+       * modules/uninorm/nfd (License): Likewise.
+       * modules/uninorm/u32-normalize (License): Likewise.
+       * modules/unistr/base (License): Likewise.
+       * modules/unistr/u32-cpy (License): Likewise.
+       * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
+       * modules/unistr/u32-to-u8 (License): Likewise.
+       * modules/unistr/u32-uctomb (License): Likewise.
+       * modules/unistr/u8-check (License): Likewise.
+       * modules/unistr/u8-mblen (License): Likewise.
+       * modules/unistr/u8-mbtouc (License): Likewise.
+       * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
+       * modules/unistr/u8-mbtoucr (License): Likewise.
+       * modules/unistr/u8-prev (License): Likewise.
+       * modules/unistr/u8-strlen (License): Likewise.
+       * modules/unistr/u8-to-u32 (License): Likewise.
+       * modules/unistr/u8-uctomb (License): Likewise.
+       * modules/unitypes (License): Likewise.
+       Requested by Simon Josefsson.
+
 2011-03-29  Simon Josefsson  <simon@josefsson.org>
 
        lib-symbol-visibility: Add a notice.
 
 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
 
-       Allow the user to avoid the GNULIB_TEST_* macros.
+       Allow the user to avoid the HAVE_RAW_DECL_* macros.
        * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
 
 2011-01-23  Bruno Haible  <bruno@clisp.org>