* lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
[gnulib.git] / ChangeLog
index 4b6cbdc..aae8c64 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,339 @@
+2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
+       New function and macro, to work around _DARWIN_C_SOURCE problem.
+       Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
+
+2013-11-11  Pádraig Brady <P@draigBrady.com>
+
+       base64: provide a fast path for encoding well sized buffers
+       Avoid conditionals in the base64 encoding loop,
+       which was seen to give 60% better throughput.
+       * lib/base64.c (base64_encode_fast): A new function to be called
+       when we don't want to NUL terminate, and we have enough space
+       in the output to encode the given input.
+       (base64_encode): Call the _fast() version when appropriate.
+       Also remove a redundant mask with 0x3F on the first encoded byte.
+
+2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       extern-inline: port better to OS X 10.9
+       * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
+       (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
+       OS X 10.9, except for g++ where the bug is still present.
+       See <http://trac.macports.org/ticket/41033>.
+
+2013-11-08  Eric Blake  <eblake@redhat.com>
+
+       fpending: fix regression on DragonFly BSD
+       * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
+       * lib/fpending.h (__fpending): Don't declare twice.
+       Reported by GW in
+       <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
+
+2013-11-05  Jim Meyering  <meyering@fb.com>
+
+       hash: relax license to LGPLv2+, for libguestfs
+       * modules/hash (License): Change from GPL to LGPLv2+.
+
+2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       intprops: port to Oracle Studio c99
+       * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
+       Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
+
+2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
+
+       obstack: pacify HP C
+       * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
+       warning "conversion from pointer to smaller integer" from HP
+       C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
+       C89 or later nowadays, so cast to void instead of int.  Privately
+       reported by H.Merijn Brand.  Also, change header to match glibc's,
+       to make checking against glibc easier.
+
+2013-10-29  Jim Meyering  <meyering@fb.com>
+
+       maint.mk: prefer gpgv2 over gpgv
+       * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
+       (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
+       Reported by Gary Vaughan.
+
+2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
+
+       isnan: port to VAX
+       Reported by John Klos for NetBSD-5/VAX in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
+       * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
+       (FUNC): Use it.
+
+2013-10-28  Jim Meyering  <meyering@fb.com>
+
+       gnulib-tool: protect against CDPATH
+       * gnulib-tool: Many "cd" built-in functions print a directory name
+       to stdout when CDPATH is set, e.g.,
+         $ bash -c 'CDPATH=/; cd tmp'
+         /tmp
+       Unset it, when possible.  Prompted by a comment from Bruce Korb.
+
+       maint.mk: restore functionality removed by recent change...
+       Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
+       the context of a shallow-cloned gnulib repository: "git describe"
+       would fail in such a directory.  However, that change made it so
+       the reported gnulib revision no longer includes the version number
+       or a commit count, even when run from a full clone.
+       * top/maint.mk (gnulib-version): Use the full "git describe"
+       output when possible, e.g., the form above, rather than the
+       abbreviated, no-tag, no-commit-count string, and fall back to
+       using a 10-byte hash, rather than the default minimal-length
+       hash prefix, since while the minimal-length one may be fine today,
+       it is likely not to be unique for very long.
+
+2013-10-26  Jim Meyering  <meyering@fb.com>
+
+       maint.mk: fix "release" target to build _version
+       This fixes a bug in README-release whereby following the outlined
+       steps, one would publish a tarball whose programs would report
+       --version output not consistent with the package version number.
+       This bug caused grep-2.15 to produce a grep program whose
+       --version option made it print 2.14.56-1e3d rather than 2.15.
+       * top/maint.mk (release): Making this target build "_version"
+       ensures that the new version number is reflected in configure.
+
+2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
+
+       install-reloc: Support multi-binary installation.
+       * build-aux/install-reloc: Support installing multiple programs in
+       one invocation, as done by Automake starting with commit
+       4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
+       Haible <bruno@clisp.org>, archived at
+       http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
+       Reported by Sylvain <beuc@gnu.org>.
+
+2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
+
+       selinux-h: Really build without selinux when library is missing.
+       * m4/selinux-selinux-h.m4: When the selinux library is missing, really
+       continue without selinux, as already told in the warning message.
+
+2013-10-21  Jim Meyering  <meyering@fb.com>
+
+       regex: also remove dependency on HAVE_WCSCOLL
+       * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
+
+2013-10-21  Reuben Thomas <rrt@sc3d.org>
+
+       xfreopen: Fix typo. s/frepoen/freopen/
+       * lib/xfreopen.c: Fix description.
+       * modules/xfreopen: Likewise.
+
+2013-10-21  Jim Meyering  <meyering@fb.com>
+
+       regex: don't depend on wcscoll
+       * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
+       It is no longer used.
+
+2013-10-20  Jim Meyering  <meyering@fb.com>
+
+       error: add the printf attribute to a static function
+       * lib/error.c (error_tail): Add the printf attribute, to placate
+       gcc's -Werror=suggest-attribute=format option.
+
+2013-09-30  Jim Meyering  <meyering@fb.com>
+
+       fpending, obstack, strerror-override: use pure+const function attrs
+       * lib/fpending.h (__fpending): Declare with the "pure" attribute.
+       * lib/obstack.c (_obstack_allocated_p): Likewise.
+       * lib/obstack.h (_obstack_memory_used): Likewise.
+       (_obstack_memory_used): Likewise.
+       * lib/strerror-override.h (strerror_override): Declare with
+       the "const" attribute.
+
+2013-10-18  Eric Blake  <eblake@redhat.com>
+
+       extern-inline: make safe for -Wundef usage
+       Reported by Vladimir 'phcoder' Serbinenko in
+       https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
+       * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
+
+2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       mkfifo-tests, etc.: allow HP-UX 11.11 bug
+       Problem reported by Daniel Richard G. in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
+       * doc/posix-functions/mkfifo.texi (mkfifo):
+       * doc/posix-functions/mkfifoat.texi (mkfifoat):
+       * doc/posix-functions/mknod.texi (mknod):
+       * doc/posix-functions/mknodat.texi (mknodat):
+       Document the HP-UX 11.11 bug.
+       * tests/test-mkfifo.h (test_mkfifo):
+       Allow the HP-UX 11.11 bug.
+
+2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
+
+       acl: allow cross-compilation to Gentoo
+       Problem reported by Gabriel Marcano in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
+       * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
+       test only whether it links.
+
+2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
+
+       mgetgroups: remove dependency on realloc-gnu
+       The dependency violates the comment in realloc-gnu, which
+       says that tests can't depend on realloc-gnu; some tests depend
+       on mgetgroups, so mgetgroups can't depend on realloc-gnu.
+       Problem reported by Daniel Richard G. in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
+       * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
+       * modules/mgetgroups (Depends-on): Depend on realloc-posix,
+       not realloc-gnu.
+
+2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       regex-tests: port to HP-UX 11.11
+       Problem reported by Daniel Richard G. in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
+       * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
+
+2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
+
+       verify: document some 'assume' pitfalls
+       * doc/verify.texi (Compile-time Assertions):
+       Mention that 'assume (E)' can sometimes slow things down.
+       Use CHAR_MAX + 1, not UCHAR_MAX + 1.
+
+2013-10-10  Eric Blake  <eblake@redhat.com>
+
+       strtoumax: fix typo in previous commit.
+       * modules/strtoumax (Depends-on): Fix typo.
+       * modules/strtoimax (Depends-on): Likewise.
+
+2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
+
+       strtoumax: port to Solaris 8
+       This problem was introduced in the recent HP-UX patch.
+       Reported by Tom G. Christensen in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
+       * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
+       and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
+
+2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
+
+       strtoimax, strtoumax: port to HP-UX 11.11
+       Problem reported by Daniel Richard G. in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
+       * lib/inttypes.in.h (strtoumax): Replace strtoumax if
+       REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
+       * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
+       REPLACE_STRTOUMAX.
+       * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
+       * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
+       Replace the function if defined as a macro but not as a function.
+       * modules/inttypes-incomplete (inttypes.h): Substitute
+       REPLACE_STRTOUMAX.
+       * modules/strtoumax (configure.ac): Replace strtoumax if
+       REPLACE_STRTOUMAX.
+
+2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       strtoimax: port to HP-UX 11.11
+       Problem reported by Daniel Richard G.
+       * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
+       (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
+       they might clash with inttypes.h.
+
+2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
+
+       New module 'count-trailing-zeros'.
+       * MODULES.html.sh: Mention it.
+       * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
+       * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
+       * modules/count-trailing-zeros-tests:
+       * tests/test-count-trailing-zeros.c:
+       New files.
+
+       count-leading-zeros: port to MSC; support types wider than 64 bits
+       The ideas behind the MSC port are stolen from Emacs.
+       * lib/count-leading-zeros.h:
+       Don't include verify.h: it's no longer needed, as types wider than
+       64 bits are now supported.
+       (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
+       performance with MSC.  All uses changed.  Do not assume that TYPE
+       has at most 64 bits.
+       (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
+       All uses changed.  Fold the subtraction from 31 into the table.
+
+       count-one-bits: port to MSC; support types wider than 64 bits
+       The ideas behind the MSC port are stolen from Emacs.
+       * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
+       * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
+       Don't include verify.h: it's no longer needed, as types wider than
+       64 bits are now supported.
+       (COUNT_ONE_BITS_GENERIC): New macro.
+       (popcount_supported) [_MSC_VER]: New inline function.
+       (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
+       performance with MSC.  All uses changed.  Do not assume that TYPE
+       has at most 64 bits.
+       * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
+
+2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
+
+       mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
+       * lib/mountlist.c (read_file_system_list): fix leak of directory
+       streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
+
+2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
+
+       tests: improve diagnostic when an assertion fails
+       * tests/macros.h (ASSERT): Report the assertion that failed.
+
+2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
+
+       verify: new macro 'assume'
+       This is taken from Emacs, and should be generally useful.
+       * doc/verify.texi (assume): Document it.
+       * lib/verify.h (assume): New macro.
+       (__has_builtin): Expand to 0 if not defined.
+
+2013-09-26  Eric Blake  <eblake@redhat.com>
+
+       dup2, dup3: work around another cygwin crasher
+       * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
+       * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
+       * tests/test-dup2.c (main): Likewise.
+       * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
+       * lib/dup3.c (dup3): Likewise.
+       * doc/posix-functions/dup2.texi (dup2): Document it.
+       * doc/glibc-functions/dup3.texi (dup3): Likewise.
+
+       getdtablesize: work around cygwin issue
+       * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
+       * modules/getdtablesize (configure.ac): Build replacement.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
+       * modules/unistd (Makefile.am): Expose the witness.
+       * lib/unistd.in.h (getdtablesize): Declare replacement.
+       * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
+       * tests/test-getdtablesize.c (main): Test it.
+       * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
+
+2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
+
+       pmccabe2html: escaping of special characters
+       Escape all '<', '>', and '&' in HTML output.
+       * build-aux/pmccabe2html (html_fnc): Call gsub()
+       instead of sub() to capture all '<', '>', and '&'.
+       Neither of '<' and '>' is special in a regexp,
+       so first arguments to gsub() are corrected. Also,
+       in replacement strings, ampersand must be escaped.
+       Finally, '&' must be handled first, then '<' and '>'.
+
+2013-09-24  Eric Blake  <eblake@redhat.com>
+
+       manywarnings: enable nicer gcc warning messages
+       * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
+       some -f options for optimal warnings.
+
 2013-09-21  Jim Meyering  <meyering@fb.com>
 
        timespec: use the new TIMESPEC_RESOLUTION in a few more places