verify: new macro 'assume'
[gnulib.git] / ChangeLog
index 5d17fbd..9eb2479 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,307 @@
+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
+       * 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  <eggert@cs.ucla.edu>
+
+       warnings: port --enable-gcc-warnings to Solaris Studio 12.3
+       Problem reported by Dagobert Michelsen via Eric Blake in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
+       * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
+       not AC_COMPILE_IFELSE.
+
+2013-09-23  Eric Blake  <eblake@redhat.com>
+
+       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  <eggert@cs.ucla.edu>
+
+       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  <P@draigBrady.com>
+
+       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  <eggert@cs.ucla.edu>
+
+       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  <cernekee@gmail.com>
+
+       fflush, freadahead, fseeko: Fix for Android
+       Suggested by Bruno Haible in:
+       <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
+       * lib/stdio-impl.h: Use local __sfileext definition.
+
+2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
+
+       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  <gnu@gisladisker.se>  (tiny change)
+
+       getgroups: statement without effect
+       * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
+       Change equality conditional to expected assignment.
+
+2013-09-09  Eric Blake  <eblake@redhat.com>
+
+       glob: fix compilation
+       * lib/glob.in.h (__THROW): Fix missing line in previous commit.
+
+2013-09-07  Eric Blake  <eblake@redhat.com>
+
+       glob: fix build for platforms without __THROW
+       * lib/glob.in.h (__THROW): Add definition again.
+
+2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (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  <eblake@redhat.com>
+
+       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  <eggert@cs.ucla.edu>
+
+       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  <P@draigBrady.com>
+
+       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  <simon@josefsson.org>
+
+       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  <ueno@gnu.org>
+
+       * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
+       of AC_CHECK_DECLS.
+
+2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       selinux-at: omit unnecessary include
+       * lib/selinux-at.c: Don't include dosname.h; not needed, since
+       this source file doesn't use its macros, and subsidiary files that
+       use the macros already include it.
+
+2013-08-21  Eric Blake  <eblake@redhat.com>
+
+       d-ino: avoid false negative on symlink
+       * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
+       Reported by Stephane Chazelas.
+
+2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
+
+       bootstrap: port to OpenBSD sed
+       * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
+       does not interpret `-' as a file argument to mean stdin.
+
+2013-08-15  Eric Blake  <eblake@redhat.com>
+
+       warnings: minor optimization
+       * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
+
+       warnings: check -Wfoo rather than -Wno-foo
+       * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
+       -Wno-, test if the compiler recognizes the positive form instead.
+
 2013-08-15  Karl Berry  <karl@gnu.org>
 
        * config/srclist-update: add option "doclicense" to placate