X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=0f15302ef65d4b5ae7912de3dee47c4935e73062;hb=7ef6c64e210ac0979d7e8ac69bc5b5208c2405ab;hp=994c6d7333a910a91e4f27e362394a2f35d35c17;hpb=cd42bcb45eef3172dab2a62eca73e7ce0aea28aa;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index 994c6d733..0f15302ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,855 @@ +2014-01-06 Eric Blake + + include_next: port to autoconf 2.63 + * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing. + +2014-01-03 Paul Eggert + + doc: use ASCII in .texi files where UTF-8 isn't needed + * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi: + * doc/posix-functions/setkey.texi, doc/regex.texi: + Use ASCII input, not UTF-8. + +2014-01-02 Jim Meyering + + manywarnings: remove -Wmudflap + * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since + it is no longer supported in gcc-4.9-to-be. + +2014-01-01 Jim Meyering + + maint: fix public-submodule-commit to work with newer git + * top/maint.mk (public-submodule-commit): Remove excess quoting. + We were over-quoting the test arguments, and somewhere prior to + version 1.8.5.2.229, git stopped removing those excess quotes, + which made the test fail, since the unexpanded strings would + always differ; using GIT_TRACE=1 confirmed that the git merge-base + command wasn't even being run. + +2014-01-01 Paul Eggert + + doc: update main copyright year + * doc/gnulib.texi: Update copyright date. + +2014-01-01 Eric Blake + + version-etc: new year + * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014. + * all files: run 'make update-copyright' + +2013-12-24 Eric Blake + + passfd: give nicer error for recvfd at eof + * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early. + * tests/test-passfd.c (main): Enhance test to cover this. + +2013-12-17 Paul Eggert + + gettimeofday: port recent C++ fix to Emacs + Without this further patch, Emacs won't build due to + the portcheck failing. Also, this simplifies the patch a bit. + * lib/time.in.h (localtime, gmtime): Don't replace unless + GNULIB_GETTIMEOFDAY. Treat them more like mktime. + * lib/time.in.h (localtime, gmtime): + * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): + * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): + * modules/time (time.h): + Don't worry about about the possibility of localtime and gmtime + being absent; they're present in all C libraries we know about. + * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): + Don't assume sys_time is present and has been initialized. + Instead, use a hack that should work even if it hasn't been. + Don't use a portcheck for gmtime or localtime; this supports + the hack. + * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY. + +2013-12-17 John W. Eaton + + gettimeofday: fix C++ crosscompilation + + Never replace gmtime and localtime by macros when compiling with + C++, this prevents from being included. + + * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not + define gmtime and localtime as preprocessor macros. Instead + define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and + REPLACE_LOCALTIME substitutions. + * lib/time.in.h: Declare gmtime and localtime when needed. + * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME, + HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME. + * modules/time: Depend on gettimeofday, and substitute the above + variables in time.h. + +2013-12-17 Paul Eggert + + qacl: port to Windows better + See Eli Zaretskii in + . + * lib/file-has-acl.c (acl_access_nontrivial): + Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY && + !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT. + +2013-12-12 Alexander V. Lukyanov + + md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode. + * lib/gl_openssl.h: Cast void pointers to a specific type. + +2013-12-07 Pádraig Brady + + open-tests: fix build failure with -Werror=old-style-declaration + * tests/test-open.h: Reorder the inline to avoid the issue. + +2013-12-07 Pádraig Brady + + md5, sha1, sha256, sha512: fix link error with partial libcrypto + * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at + init time, so that if early checks find crypto routines, + while the last does not, then @LIB_CRYPTO@ is replaced correctly, + avoiding link failures. + +2013-12-07 Paul Eggert + + md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT + This provides a new way to specify the default for + gl_CRYPTO_CHECK, one that is reflected in the --help message. + Emacs uses this, as well as the old way. + This attempts to implement a suggestion by Pádraig Brady in + . + * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro. + (gl_CRYPTO_CHECK): Use it. Mention the default in --help output. + + md5, sha1, sha256, sha512: add 'auto', and a way to specify default + * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): + Add support for a new option, --with-openssl=auto, which causes + the library to be used if available and silently ignored if not. + Add support to allow allow configure.ac to specify its own + default, by setting with_openssl_default before invoking gl_INIT. + +2013-12-05 Paul Eggert + + open-tests: port to glibc with _FORTIFY_SOURCE and -O1 + Problem reported by Daiki Ueno in: + http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html + * tests/test-open.h (__always_inline): + New macro, if not already defined. + (test_open): Use it. + +2013-12-04 Eric Blake + + include_next: minimize code duplication + * modules/include_next (Depends-on): Add absolute-header. + * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse + gl_ABSOLUTE_HEADER_ONE instead of open-coding it. + +2013-12-04 Pádraig Brady + + getcwd: fix compile error in configure check + * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h + +2013-12-04 Pádraig Brady + + regex: suppress core dumps from detection code + * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM + to suppress core dumps that may well occur on glibc systems. + These core dumps might not be cleaned up automatically, or could + trigger some system core dump handling logic. + +2013-12-03 Pádraig Brady + + md5, sha1, sha256, sha512: support mandating use of openssl + * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl + description, to list the now 3 separate options. also don't + mention the default=no, since this is implicit given the option + is described as --with-openssl rather than --without-openssl. + If projects change the default they're free to document that. + with --with-openssl[=yes] we now error out when the specified + hash algorithm is not available in libcrypto. + +2013-12-03 Ivailo + + test-xvasprintf: (trivial) fix to disable some -Wformat-security diags + * tests/test-xvasprintf.c: Disable -Wformat-zero-length and + -Wformat-nonliteral checks, as these edge cases are part of the test. + +2013-12-03 Eric Blake + + regex: avoid glibc deadlock during configure + * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when + glibc bug 15078 in turn triggers bug 16159. + Reported by Michal Privoznik. + +2013-12-02 Pádraig Brady + + md5, sha1, sha256, sha512: use openssl routines if available. + --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256 + routines will be used if available, requiring apps to link @LIB_CRYPTO@ + * lib/gl_openssl.h: Provide wrappers for specified openssl hash. + * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto + in the standard system location. + * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1. + * m4/sha256.m4: Likewise with SHA256. + * m4/sha512.m4: Likewise with SHA512. + * m4/md5.m4: Likewise with MD5. + * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests. + * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1. + * lib/sha256.h: Likewise with SHA256. + * lib/sha512.h: Likewise with SHA512. + * lib/md5.h: Likewise with MD5. + * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1. + * lib/sha256.c: Likewise with SHA256. + * lib/sha512.c: Likewise with SHA512. + * lib/md5.c: Likewise with MD5. + * modules/crypto/sha1 (Link:): Add the new optional lib. + (Depends-on:): Add dependency on extern-inline. + * modules/crypto/sha256: Likewise. + * modules/crypto/sha512: Likewise. + * modules/crypto/md5: Likewise. + * modules/crypto/sha1-tests: Reference the lib here too. + * modules/crypto/md5-tests: Likewise. + * modules/crypto/gc-des-tests: Likewise. + * modules/crypto/gc-hmac-md5-tests: Likewise. + * modules/crypto/gc-hmac-sha1-tests: Likewise. + * modules/crypto/gc-hmac-sha256-tests: Likewise. + * modules/crypto/gc-hmac-sha512-tests: Likewise. + * modules/crypto/gc-md5-tests: Likewise. + * modules/crypto/gc-pbkdf2-sha1-tests: Likewise. + * modules/crypto/gc-sha1-tests: Likewise. + * modules/crypto/gc-tests: Likewise. + * modules/crypto/hmac-md5-tests: Likewise. + * modules/crypto/hmac-sha1-tests: Likewise. + * modules/crypto/hmac-sha256-tests: Likewise. + * modules/crypto/hmac-sha512-tests: Likewise. + +2013-11-29 RV1971 + + base64: (trivial) fix compilation regression on some compilers + * lib/base64.c: Don't return the void function, + instead split to a separate return statement. + +2013-11-28 Paul Eggert + + ignore-value: revert previous code change + * lib/ignore-value.h (ignore_value): Use __extension__ and + __typeof__ only for GCC 3.4 and later. Reported by Eric Blake in + . + Change the comment to try to explain this better. + +2013-11-27 Pádraig Brady + + selinux-h: improve stub types and add more stub functions + + * lib/se-selinux.in.h: Change security_context_t to a typedef + rather than a define, as it's a pointer type and so is better + as a typedef to avoid issues declaring multiple variables + with the comma operator. Also add stub for string_to_security_class(). + * lib/se-context.in.h: Add stub functions for + context_{type,range,role,user}_get(). + +2013-11-27 Paul Eggert + + ignore-value: prefer GCC version back through 2.0 + The code didn't match the comments, so I did a bit of software + archaeology. GCC 2.0 seems to support __extension__ and + __typeof__, so fix both code and comments to use 2.0. + * lib/ignore-value.h (ignore_value): Use __extension__ and + __typeof__ for GCC 2.0 through 3.3, too. + +2013-11-25 Mats Erik Andersson + + pty: Activate the signature wrapper of forkpty. + The intended preprocessor macro HAVE_FORKPTY is + never defined, yet `lib/forkpty.c' depends on it. + + * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis, + apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value + $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'. + +2013-11-18 Jim Meyering + and Paul Eggert + + quotearg: don't attempt to store 1 << 31 into an "int" + * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with + gcc's new -fsanitize=undefined and running its tests triggered some + new test failures due to undefined behavior, all with this diagnostic: + lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \ + cannot be represented in type int + Rather than shifting "1" left to form a mask, shift the bits right and + simply use "1" as the mask. + +2013-11-21 Paul Eggert + + error: depend on stdio + Problem reported by Nikos Mavrogiannopoulos in + + * modules/error (Depends-on): Add stdio. + +2013-11-18 Ben Pfaff + + * doc/relocatable-maint.texi (Supporting Relocation): Improve + wording. + Reported by Reuben Thomas . + +2013-11-13 Paul Eggert + + * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]: + New function and macro, to work around _DARWIN_C_SOURCE problem. + Reported by Jack Howarth in . + +2013-11-11 Pádraig Brady + + 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 + + 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 . + +2013-11-08 Eric Blake + + 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 + + +2013-11-05 Jim Meyering + + hash: relax license to LGPLv2+, for libguestfs + * modules/hash (License): Change from GPL to LGPLv2+. + +2013-11-03 Paul Eggert + + 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 + + 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 + + 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 + + isnan: port to VAX + Reported by John Klos for NetBSD-5/VAX in + . + * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs. + (FUNC): Use it. + +2013-10-28 Jim Meyering + + 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 + + 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 + + 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 , archived at + http://lists.debian.org/debian-bsd/2012/05/msg00032.html. + Reported by Sylvain . + +2013-10-21 Michael Haubenwallner + + 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 + + regex: also remove dependency on HAVE_WCSCOLL + * lib/regex_internal.h: Remove final vestige of the wcscoll dependency. + +2013-10-21 Reuben Thomas + + xfreopen: Fix typo. s/frepoen/freopen/ + * lib/xfreopen.c: Fix description. + * modules/xfreopen: Likewise. + +2013-10-21 Jim Meyering + + 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 + + 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 + + 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 + + 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 + + mkfifo-tests, etc.: allow HP-UX 11.11 bug + Problem reported by Daniel Richard G. in + . + * 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 + + acl: allow cross-compilation to Gentoo + Problem reported by Gabriel Marcano in + . + * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling, + test only whether it links. + +2013-10-13 Paul Eggert + + 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 + . + * 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 + + regex-tests: port to HP-UX 11.11 + Problem reported by Daniel Richard G. in + . + * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD. + +2013-10-10 Paul Eggert + + 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 + + strtoumax: fix typo in previous commit. + * modules/strtoumax (Depends-on): Fix typo. + * modules/strtoimax (Depends-on): Likewise. + +2013-10-10 Paul Eggert + + strtoumax: port to Solaris 8 + This problem was introduced in the recent HP-UX patch. + Reported by Tom G. Christensen in + . + * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX + and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax. + +2013-10-09 Paul Eggert + + strtoimax, strtoumax: port to HP-UX 11.11 + Problem reported by Daniel Richard G. in + . + * 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 + + 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 + + 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 + + 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 + + tests: improve diagnostic when an assertion fails + * tests/macros.h (ASSERT): Report the assertion that failed. + +2013-10-02 Paul Eggert + + 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 + + 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 + + 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 + + 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 + + timespec: use the new TIMESPEC_RESOLUTION in a few more places + * lib/timespec-add.c (timespec_add): Also replace 999999999 + with TIMESPEC_RESOLUTION - 1. + * lib/timespec-sub.c (timespec_sub): Likewise. + +2013-09-23 Paul Eggert + + warnings: port --enable-gcc-warnings to Solaris Studio 12.3 + Problem reported by Dagobert Michelsen via Eric Blake in + . + * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE, + not AC_COMPILE_IFELSE. + +2013-09-23 Eric Blake + + configmake: support new --runstatedir option + * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir + even if autoconf was too old to provide the command line option. + * modules/configmake (Makefile.am): Propagate it to .h file. + +2013-09-22 Paul Eggert + + ctype, string: depend on extern-inline + This is needed to complete the recent OS X fixes. + Also, fix related documentation as suggested by Eric Blake. + * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi: + * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi: + * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi: + * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi: + * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi: + * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi: + * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi: + * doc/posix-functions/toupper.texi: + List the 'ctype' gnulib module. + * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi: + * doc/posix-functions/strncpy.texi: + List the 'string' gnulib module. + * modules/memcpy, modules/memmove, modules/memset (Depends-on): + Add string. + * modules/ctype, modules/string (Depends-on): Add extern-inline. + +2013-09-19 Pádraig Brady + + userspec: support optional parameters to parse_user_spec() + * lib/userspec.c (parse_user_spec): If the GID param is NULL, + then avoid group processing and treat the full spec as a user. + (parse_with_separator): Allow the USERNAME and GROUPNAME to + be optional params (NULL), in which case they're ignored. + +2013-09-19 Paul Eggert + + timespec: new function make_timespec, and new constants + * lib/timespec.h: Incorporate recent changes on the Emacs trunk. + (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants. + (make_timespec): New function. + * lib/dtotimespec.c (dtotimespec): + * lib/timespec-add.c (timespec_add): + * lib/timespec-sub.c (timespec_sub): + * lib/utimens.c (validate_timespec): + * lib/utimensat.c (rpl_utimensat): + Use these new constants and functions. + + stdio: OS X port of putc_unlocked + extern inline + * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms. + * doc/posix-functions/putc_unlocked.texi: + * doc/posix-functions/putchar_unlocked.texi: + Document this portability problem. + + signal: OS X port of sigaddset etc. + extern inline + * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset) + (sigismember): #undef on problematic Apple platforms. + * doc/posix-functions/sigaddset.texi: + * doc/posix-functions/sigdelset.texi: + * doc/posix-functions/sigemptyset.texi: + * doc/posix-functions/sigfillset.texi: + * doc/posix-functions/sigismember.texi: + Document this portability problem. + + extern-inline: do not always suppress extern inline on OS X + * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of + extern inline on Apple only if the particular compile-time + configuration is known to have the problem. + (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this. + (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by + other Gnulib modules. + + extern-inline: document fixes for ctype and wctype macros + * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi: + * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi: + * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi: + * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi: + * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi: + * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi: + * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi: + * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi: + * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi: + * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi: + * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi: + * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi: + * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi: + * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi: + * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi: + * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi: + * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi: + * doc/posix-functions/strncpy.texi: + * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi: + * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi: + Document that Gnulib fixes portability problems with these + functions on OS X 10.8 and earlier when called from plain inline + or extern inline functions. + +2013-09-17 Kevin Cernekee + + fflush, freadahead, fseeko: Fix for Android + Suggested by Bruno Haible in: + + * lib/stdio-impl.h: Use local __sfileext definition. + +2013-09-17 Mats Erik Andersson + + pmccabe2html: Portability to other awk versions. + The functions systime() and strftime() are available + in Gawk only. Properly close two HTML-tags 'style' + and 'span'. + * build-aux/pmccabe2html (BEGIN): Store timing + strings in EPOCH_TIME and CHRONOS_TIME. Replace + systime() in HTML_COMMENT. + (html_header): Correctly close tag 'style'. + (END): Replace strftime() by CHRONOS_TIME. Close + tag 'span' correctly, not as 'div'. + +2013-09-17 Mats Erik Andersson (tiny change) + + getgroups: statement without effect + * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]: + Change equality conditional to expected assignment. + +2013-09-09 Eric Blake + + glob: fix compilation + * lib/glob.in.h (__THROW): Fix missing line in previous commit. + +2013-09-07 Eric Blake + + glob: fix build for platforms without __THROW + * lib/glob.in.h (__THROW): Add definition again. + +2013-09-04 Anton Ovchinnikov (tiny change) + + regex-quote: fix buffer access out of bounds + http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html + * lib/regex-quote.c (regex_quote_spec_pcre): + Fix typo that resulted in an out-of-bounds read. + +2013-09-04 Eric Blake + + glob: avoid -Wattribute warnings on glibc + * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use + __THROWNL, not __THROW, on static functions. + * lib/glob.in.h (__THROW): Adjust... + (__THROWNL): ...accordingly. + +2013-08-28 Paul Eggert + + headers: check that _GL_INLINE_HEADER_BEGIN is defined + Suggested by Bruce Korb in: + http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html + * doc/extern-inline.texi (extern inline): + Suggest checking that _GL_INLINE_HEADER_BEGIN is defined. + * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h: + * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h: + * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h: + * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h: + * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h: + * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h: + * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h: + * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h: + * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h: + * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h: + * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h: + * lib/xtime.h: + Check that _GL_INLINE_HEADER_BEGIN is defined. + +2013-08-29 Pádraig Brady + + bootstrap: remove the --version requirement from ancillary tools + * build-aux/bootstrap (check_exists): A new refactored function to + determine if a command exists. + (find_tool): Use the new function which does not require the + --version option to be supported. + (check_versions): Use the new function. + +2013-08-26 Simon Josefsson + + gc: support HMAC-SHA256 and HMAC-SHA512. + * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512. + * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New + functions. + (gc_hmac_md5): Use symbolic constant. + * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too. + (gc_hmac_sha256, gc_hmac_sha512): New functions. + * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes. + * m4/sha256.m4: Protect against empty expansion. + * m4/sha512.m4: Likewise. + * lib/hmac-sha256.c: New file. + * lib/hmac-sha512.c: Likewise. + * m4/gc-hmac-sha256.m4: Likewise. + * m4/gc-hmac-sha512.m4: Likewise. + * m4/gc-sha256.m4: Likewise. + * m4/gc-sha512.m4: Likewise. + * modules/crypto/gc-hmac-sha256: Likewise. + * modules/crypto/gc-hmac-sha256-tests: Likewise. + * modules/crypto/gc-hmac-sha512: Likewise. + * modules/crypto/gc-hmac-sha512-tests: Likewise. + * modules/crypto/hmac-sha256: Likewise. + * modules/crypto/hmac-sha256-tests: Likewise. + * modules/crypto/hmac-sha512: Likewise. + * modules/crypto/hmac-sha512-tests: Likewise. + * tests/test-gc-hmac-sha256.c: Likewise. + * tests/test-gc-hmac-sha512.c: Likewise + * tests/test-hmac-sha256.c: Likewise. + * tests/test-hmac-sha512.c: Likewise + 2013-08-24 Daiki Ueno * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse @@ -100335,7 +101187,7 @@ coding: utf-8 End: - Copyright (C) 1997-2013 Free Software Foundation, Inc. + Copyright (C) 1997-2014 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted provided the copyright notice