+2012-02-24 Paul Eggert <eggert@cs.ucla.edu>
+
+ stdnoreturn: new module
+ This implements a replacement for C11's <stdnoreturn.h>.
+ * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
+ * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
+ * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
+ * tests/test-stdnoreturn.c: New files.
+
+2012-02-24 Stanislav Brabec <sbrabec@suse.cz> (tiny change)
+
+ regex: fix false multibyte matches in some regular expressions
+ See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
+ and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
+ * lib/regex_internal.c (re_string_skip_chars):
+ Fix miscomputation of remain_len that may cause incomplete
+ multi-byte character and false match.
+
+2012-02-24 Jim Meyering <meyering@redhat.com>
+
+ maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
+ * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
+ uses with "==" *before* the call, e.g., 0 == strcmp (...)
+ Remove now-unnecessary str''cmp obfuscation.
+ Suggested by Akim Demaille.
+
+2012-02-24 Bruno Haible <bruno@clisp.org>
+
+ streq: Rename macro.
+ * lib/streq.h (STREQ_OPT): Renamed from STREQ.
+ * NEWS: Mention the change.
+ * lib/mbrtowc.c (mbrtowc): Update.
+ * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
+ * lib/wcwidth.c (wcwidth): Update.
+ Suggested by Akim Demaille and Jim Meyering.
+
+2012-02-20 Paul Eggert <eggert@cs.ucla.edu>
+
+ regex: fix typo in definition of MIN
+ * lib/regex_internal.h (MIN): Fix typo. Problem reported by Thomas
+ Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
+
+2012-02-19 Paul Eggert <eggert@cs.ucla.edu>
+ Bruno Haible <bruno@clisp.org>
+
+ acl: Don't use ACL_CNT and similar ops, since they are unreliable.
+ * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
+ entries into a stack-allocated buffer directly.
+ * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
+
+2012-02-19 Paul Eggert <eggert@cs.ucla.edu>
+ Bruno Haible <bruno@clisp.org>
+
+ acl: Don't use GETACLCNT and similar ops, since they are unreliable.
+
+ - There were several instances of this pattern:
+
+ for (;;) {
+ n = acl (f, GETACLCNT, 0, NULL);
+ [ allocate an array A of size N ]
+ if (acl (f, GETACL, n, a) == n)
+ break;
+ }
+
+ This loop might never terminate if some other process is constantly
+ manipulating the file's ACL. The loop should be rewritten to
+ terminate.
+
+ - The acl (... GETACLNT ...) call is merely an optimization; its value
+ is merely a hint as to how big to make the array. A better
+ optimization is to avoid the acl (... GETACLNT ...) call entirely,
+ and just guess a reasonably-big size, growing the size and trying
+ again if it's not large enough. This guarantees termination, and
+ saves a system call.
+
+ * lib/acl-internal.h: Include <limits.h>.
+ (MIN, SIZE_MAX): New macros.
+ * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
+ a stack-allocated buffer, and use malloc if it does not fit. Don't
+ use GETACLCNT.
+ * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
+
+2012-02-19 Bruno Haible <bruno@clisp.org>
+
+ acl: Fix endless loop on Solaris with vxfs.
+ * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
+ acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
+ * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
+ * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
+ * tests/test-sameacls.c (main)[Solaris]: Likewise.
+ Reported by Bill Jones in
+ <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
+
+2012-02-19 Bruno Haible <bruno@clisp.org>
+
+ acl: Fix copy-acl test failure on Solaris 11 2011-11.
+ * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
+ (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
+ that this function returns 0 in some more cases.
+
+2012-02-19 Bruno Haible <bruno@clisp.org>
+
+ acl: Update doc references.
+ * doc/acl-resources.txt: Update links to Solaris documentation.
+
+2012-02-19 Bruno Haible <bruno@clisp.org>
+
+ Fix test failure in many locales on Solaris 11.
+ * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
+ 'tr' arguments.
+ * tests/test-pipe-filter-ii1.c (main): Likewise.
+ * build-aux/bootstrap (check_versions): Run 'tr' command with range
+ expressions in the C locale.
+ * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
+ * m4/host-os.m4 (gl_HOST_OS): Likewise.
+
+2012-02-19 Bruno Haible <bruno@clisp.org>
+
+ gnulib-tool: Improve usage message.
+ * gnulib-tool (func_usage): Move doc of --help and --version to the
+ section "Operation modes".
+
+2012-02-18 Reuben Thomas <rrt@sc3d.org>
+
+ README-release: make it easier to execute commands
+ * top/README-release: break commands out on to separate lines.
+
+2012-02-16 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ GNUmakefile: simplify detection of unconfigured trees
+ * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
+ whether the tree make is being run from is already configured or
+ not. Related simplifications.
+
+2012-02-13 Simon Josefsson <simon@josefsson.org>
+
+ * gnulib-tool (func_usage): Document --help and --version.
+
+2012-02-11 Jim Meyering <meyering@redhat.com>
+
+ bootstrap: don't exit 0 upon gnulib-tool failure
+ * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
+ its exit status, not 0.
+
+2011-12-19 Reuben Thomas <rrt@sc3d.org>
+
+ README-release: various improvements
+ * top/README-release: Give a command to push changes for the
+ release. Add "distcheck" to list of other pre-release checks.
+ Fix instance of "make stable" which should be "make TYPE".
+
+2012-02-09 Paul Eggert <eggert@cs.ucla.edu>
+
+ maint: replace FSF snail-mail addresses with URLs
+ * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
+ * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
+ * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
+ * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
+ * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
+ * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
+ * lib/check-version.c, lib/check-version.h, lib/config.charset:
+ * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
+ * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
+ * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
+ * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
+ * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
+ * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
+ * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
+ * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
+ * lib/glthread/thread.c, lib/glthread/thread.h:
+ * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
+ * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
+ * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
+ * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
+ * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
+ * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
+ * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
+ * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
+ * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
+ * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
+ * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
+ * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
+ * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
+ * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
+ * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
+ * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
+ * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
+ * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
+ * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
+ * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
+ * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
+ * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
+ * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
+ * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
+ * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
+ * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
+ * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
+ * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
+ * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
+ * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
+ * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
+ * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
+ * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
+ * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
+ * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
+ * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
+ * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
+ * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
+ * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
+ * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
+ * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
+ * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
+ * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
+ * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
+ * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
+ * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
+ * tests/test-poll.c, tests/test-quotearg-simple.c:
+ * tests/test-quotearg.c, tests/test-quotearg.h:
+ * tests/test-round-ieee.c, tests/test-round1.c:
+ * tests/test-roundf-ieee.c, tests/test-roundf1.c:
+ * tests/test-roundl-ieee.c, tests/test-roundl.c:
+ * tests/test-safe-alloc.c, tests/test-sigpipe.c:
+ * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
+ * tests/test-strerror.c, tests/test-strerror_r.c:
+ * tests/test-strsignal.c, tests/test-strverscmp.c:
+ * tests/test-xmemdup0.c:
+ Replace FSF snail mail addresses with URLs, as per GNU coding
+ standards. See glibc bug
+ <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
+
+2011-12-22 Reuben Thomas <rrt@sc3d.org>
+
+ README-release: capitalize a word and split a line
+ * top/README-release: Fix punctuation and spacing.
+
+2012-02-08 Akim Demaille <demaille@gostai.com>
+
+ fatal-signal: use C prototypes (with explicit void).
+ * lib/fatal-signal.c (uninstall_handlers, install_handlers)
+ (init_fatal_signal_set, block_fatal_signals): Fix signatures.
+
+2012-02-07 Paul Eggert <eggert@cs.ucla.edu>
+
+ regex: spelling fix
+ * lib/regexec.c: spelling fix
+
+ regex: rely on stdint.h for SIZE_MAX
+ * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
+
+2012-02-07 Paul Eggert <eggert@cs.ucla.edu>
+
+ regex: merge glibc changes
+
+ * lib/regcomp.c (init_dfa): Tighten overflow checks to test
+ for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
+ (init_word_char): Work even if bitset words are not exactly 32 or
+ 64 bits wide. Don't assume there are no padding bits.
+ * lib/regex.c [_LIBC]: Do not include <config.h>.
+ [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
+ and -Wtype-limits.
+ * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
+ needless disagreement with glibc. All uses changed. Define it to
+ 1 only if _GNU_SOURCE, to match glibc.
+ (_REG_RM_NAME): Remove; no longer needed, since the names in
+ question are now all protected by __USE_GNU.
+ (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
+ (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
+ * lib/regex_internal.h (MIN): New macro.
+
+ 2012-01-03 Ulrich Drepper <drepper@gmail.com>
+ * lib/regcomp.c (init_word_char): Optimize regex a bit.
+
+ 2011-12-30 Jakub Jelinek <jakub@redhat.com>
+ * lib/regex_internal.c (re_string_fetch_byte_case):
+ Fix up regcomp/regexec. The problem is that parse_bracket_symbol
+ is miscompiled, and it turns out it is because of an incorrect
+ attribute on re_string_fetch_byte_case. Unlike
+ re_string_peek_byte_case, this one is really not pure, it modifies
+ memory (increments pstr->cur_idx), and with the pure attribute GCC
+ assumed it doesn't and it cached the presumed value of
+ regexp->cur_idx in a variable across the
+ for (;; ++i)
+ {
+ if (i >= BRACKET_NAME_BUF_SIZE)
+ return REG_EBRACK;
+ if (token->type == OP_OPEN_CHAR_CLASS)
+ ch = re_string_fetch_byte_case (regexp);
+ else
+ ch = re_string_fetch_byte (regexp);
+ if (re_string_eoi(regexp))
+ return REG_EBRACK;
+ if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
+ break;
+ elem->opr.name[i] = ch;
+ }
+
+ 2011-11-29 Andreas Schwab <schwab@redhat.com>
+ * lib/regcomp.c (build_equiv_class):
+ Fix access after end of search string in regex matcher.
+
+ 2011-11-12 Ulrich Drepper <drepper@redhat.com>
+ * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
+
+ 2011-10-12 Ulrich Drepper <drepper@redhat.com>
+ * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
+
+ 2011-10-11 Ulrich Drepper <drepper@redhat.com>
+ * lib/regcomp.c (parse_branch, parse_sub_exp):
+ More regex memory leak fixes and tests.
+ (parse_sub_exp, parse_bracket_exp):
+ Fix memory leak for some invalid regular expressions.
+
+ 2011-05-28 Ulrich Drepper <drepper@gmail.com>
+ * lib/regex_internal.c, lib/regexec.c:
+ Fix unnecessary overallocation due to incomplete character. When
+ incomplete characters are found at the end of a string the code
+ ran amok and allocated lots of memory. Stricter limits are now in
+ place.
+
+ 2011-05-20 Reuben Thomas <rrt@sc3d.org>
+ * lib/regex.h: Update documentation.
+
+ 2011-05-16 Aharon Robbins <arnold@skeeve.com>
+ * lib/regex.h: Update RE_SYNTAX*_AWK constants.
+
+ 2010-05-05 Andreas Schwab <schwab@redhat.com>
+ * lib/regexec.c (find_collation_sequence_value):
+ Fix lookup of collation sequence value during regexp matching.
+
+ 2010-01-22 Ulrich Drepper <drepper@redhat.com>
+ * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
+
+ 2008-01-16 Ulrich Drepper <drepper@redhat.com>
+ * lib/regex.h: Cleanup namespace.
+
+ 2007-11-26 Ulrich Drepper <drepper@redhat.com>
+ * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
+
+ 2007-08-26 Ulrich Drepper <drepper@redhat.com>
+ * lib/regex_internal.h: Prevent some declarations and definitions
+ to be seen when used in tests.
+
+ 2005-05-06 Ulrich Drepper <drepper@redhat.com>
+ * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
+ __libc_lock_* macros if not _LIBC.
+ (struct re_dfa_t): Add lock.
+
+2012-02-07 Eric Blake <eblake@redhat.com>
+
+ maint.mk: also prohibit lower-case @var@
+ * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
+ lower case, like @top_srcdir@.
+
+2012-02-04 Eric Blake <eblake@redhat.com>
+
+ canonicalize: avoid uninitialized memory use
+ * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
+ random '/' left in dest.
+ * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
+
+2012-02-04 Bruno Haible <bruno@clisp.org>
+
+ isatty: Fix test failure of ptsname_r on native Windows.
+ * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
+ and don't set errno.
+ (isatty): Test first whether fd is valid. Set errno when returning 0.
+
+2012-02-04 Bruno Haible <bruno@clisp.org>
+
+ spawn-pipe tests: Fix a NULL program name in a diagnostic.
+ * tests/test-spawn-pipe-main.c: Include progname.h.
+ (main): Invoke set_program_name.
+ * modules/spawn-pipe-tests (Depends-on): Add progname.
+
+ nonblocking-socket tests: Fix a NULL program name in a diagnostic.
+ * tests/test-nonblocking-socket-main.c: Include progname.h.
+ (main): Invoke set_program_name.
+ * modules/nonblocking-socket-tests (Depends-on): Add progname.
+
+ nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
+ * tests/test-nonblocking-pipe-main.c: Include progname.h.
+ (main): Invoke set_program_name.
+ * modules/nonblocking-pipe-tests (Depends-on): Add progname.
+
+2012-02-04 Eric Blake <eblake@redhat.com>
+
+ canonicalize-lgpl: fix // handling
+ * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
+
+ canonicalize: fix // handling
+ * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
+ /// to //, since only // is special.
+
+2012-02-04 Bruno Haible <bruno@clisp.org>
+
+ ioctl: Fix test failure on native Windows.
+ * lib/ioctl.c: Include msvc-nothrow.h.
+ (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
+
+2012-02-04 Bruno Haible <bruno@clisp.org>
+
+ fsync: Avoid test failure on native Windows.
+ * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
+ read-only.
+
+2012-02-04 Bruno Haible <bruno@clisp.org>
+
+ sys_select: Avoid syntax error on OpenBSD 5.0.
+ * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
+ currently being included, just include the system's <sys/select.h>.
+
+2012-02-04 Bruno Haible <bruno@clisp.org>
+
+ sys_select: Avoid syntax error on OpenBSD 5.0.
+ * lib/sys_select.in.h: Include <signal.h> only after the include_next
+ <sys/select.h>, not before.
+ Reported by Jiri B <jirib@devio.us>.
+
+2012-02-04 Bruno Haible <bruno@clisp.org>
+
+ get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
+ * tests/test-get-rusage-as.c (main): Assign the malloc() results to
+ global variables.
+ * tests/test-get-rusage-data.c (main): Likewise.
+ Reported by Jim Meyering.
+
+2012-02-04 Bruno Haible <bruno@clisp.org>
+
+ stdioext: Fix last commit.
+ * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
+
+2012-02-03 Bruno Haible <bruno@clisp.org>
+
+ stdioext: Add tentative support for Plan9.
+ * lib/stdio-impl.h: Include <errno.h>.
+ * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
+ * lib/freadable.c (freadable): Likewise.
+ * lib/fwritable.c (fwritable): Likewise.
+ * lib/fbufmode.c (fbufmode): Likewise.
+ * lib/freading.c (freading): Likewise.
+ * lib/fwriting.c (fwriting): Likewise.
+ * lib/freadptr.c (freadptr): Likewise.
+ * lib/freadseek.c (freadptrinc): Likewise.
+ * lib/freadahead.c (freadahead): Likewise.
+ * lib/fpurge.c (fpurge): Likewise.
+ * lib/fseeko.c (rpl_fseeko): Likewise.
+ * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
+ Reported by Jens Staal <staal1978@gmail.com>.
+
+2012-02-02 Jim Meyering <meyering@redhat.com>
+
+ file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
+ * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
+ would evoke a new gcc warning. Given all of the #ifdefs, it is better
+ not even to try to add the attribute. Instead, add a pragma to suppress
+ the suggestion/warning.
+
+2012-01-31 Karl Berry <karl@gnu.org>
+
+ setstate doc: typo.
+ * doc/posix-functions/setstate.texi (setstate): { not (.
+
+2012-01-31 Bruno Haible <bruno@clisp.org>
+
+ popen: Make more robust on Windows.
+ * lib/popen.c: On native Windows, use the _popen based code even if
+ HAVE_POPEN is set.
+ * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
+ environment variable on native Windows.
+
+2012-01-30 Bruno Haible <bruno@clisp.org>
+
+ pclose: Fix typo.
+ * lib/stdio.in.h (pclose): Fix typo in warning message.
+
+2012-01-30 Bruno Haible <bruno@clisp.org>
+
+ doc about getlogin_r, setstate.
+ * doc/posix-functions/getlogin_r.texi: List the incompatible
+ declaration problem under "not fixed by gnulib".
+ * doc/posix-functions/setstate.texi: Mention incompatible declaration
+ problem on Solaris 11 and other platforms.
+
+2012-01-30 Chuanchang Jia <chuanchang.jia@gmail.com> (tiny change)
+ Bruno Haible <bruno@clisp.org>
+
+ poll tests: Make test more robust.
+ * tests/test-poll.c: Include macros.h.
+ (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
+ return value of various I/O operations.
+ * modules/poll-tests (Files): Add tests/macros.h.
+
+2012-01-30 Bruno Haible <bruno@clisp.org>
+
+ sys_stat: Fix support for mingw64 and MSVC.
+ * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
+ header files already do it.
+ (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
+ stat itself.
+ Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
+
+2012-01-30 Bruno Haible <bruno@clisp.org>
+
+ wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
+ * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
+ * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
+
+2012-01-29 Bruno Haible <bruno@clisp.org>
+
+ quotearg: Fix test failure on MacOS X 10.5.
+ * tests/test-quotearg-simple.c: Include localcharset.h.
+ (main): If the locale encoding is not ASCII, bypass the tests of
+ locale_quoting_style and clocale_quoting_style.
+ * modules/quotearg-tests (Depends-on): Add 'localcharset'.
+
+2012-01-29 Jim Meyering <meyering@redhat.com>
+
+ maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
+ * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
+ detect uses of canonicalize_file_name.
+
+2012-01-28 Bruno Haible <bruno@clisp.org>
+
+ test-framework-sh: Fix test failure with AIX 7.1 diff.
+ * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
+ in column 1, like 'diff -c' does.
+ * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
+ whether 'diff -u' is used. Instead, test whether the output contains
+ some '@' character.
+
+2012-01-28 Paul Eggert <eggert@cs.ucla.edu>
+
+ strtoimax: eliminate need for stdint.h, inttypes.h checks
+ * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
+ gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H. This reduces
+ the prerequisites for a recently-introduced strtoimax test.
+ I guess this might cause strtoimax to be replaced when not
+ strictly necessary on older hosts, but this shouldn't introduce
+ any bugs and it should make Emacs 'configure' faster on typical
+ modern hosts. Problem discovered when importing the latest gnulib
+ to an Emacs test version.
+ * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
+
+2012-01-28 Bruno Haible <bruno@clisp.org>
+
+ sys_time: Override 'struct timeval' on some native Windows platforms.
+ * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
+ has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
+ (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
+ * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
+ needs to be overridden.
+ (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
+ * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
+ * tests/test-sys_select.c: Check that the tv_sec member has the same
+ size as a 'time_t'.
+ * tests/test-sys_time.c: Likewise.
+ * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
+ is set, set also REPLACE_GETTIMEOFDAY.
+ * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
+ convert the resulting 'struct timeval' before returning.
+ * lib/select.c: Include <sys/time.h>.
+ (select, timeval): Undefine at the right place.
+ * modules/select (Depends-on): Add sys_time.
+ * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
+ some Windows platforms.
+ Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
+
+2012-01-28 Marc-André Lureau <marcandre.lureau@redhat.com> (tiny change)
+
+ accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
+ * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
+ an integer.
+ * lib/fcntl.c (dupfd): Likewise.
+ * lib/w32sock.h (SOCKET_TO_FD): Likewise.
+
+2012-01-28 Bruno Haible <bruno@clisp.org>
+
+ fcntl: Avoid compilation error on native Windows.
+ * modules/fcntl (Depends-on): Add 'close'.
+
+2012-01-28 Marc-André Lureau <marcandre.lureau@redhat.com> (tiny change)
+
+ select, poll, isatty: Avoid warnings on x86_64 mingw64.
+ * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
+ pointer to an integer.
+ * lib/poll.c (IsConsoleHandle): Likewise.
+ * lib/isatty.c (IsConsoleHandle): Likewise.
+
+2012-01-28 Jim Meyering <meyering@redhat.com>
+
+ doc: clarify README-release
+ * top/README-release: Clarify: you should make a point to have
+ the latest stable versions of build tools in your PATH, and the
+ reference to buildreq is solely for its list of tool names, not
+ for its minimal-functional version numbers.
+ Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
+
+ maint.mk: use more readable (yet functionally equivalent) quoting
+ It is common to quote a single quote in a single quoted string like
+ this: '...'\''...'. Unless you know the idiom, that looks like
+ gibberish, so prefer to double-quote the string when possible.
+ Then you can use a more readable, lone single quote: "...'..."
+ * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
+ "don't" is more readable than the equivalent 'don'\''t'.
+ (sc_cast_of_x_alloc_return_value): Likewise.
+ (sc_cast_of_alloca_return_value): Likewise.
+ (sc_makefile_path_separator_check): Similar: use ":" in '...',
+ rather than '\'':'\''.
+
+2012-01-27 Paul Eggert <eggert@cs.ucla.edu>
+
+ stdalign: relax _Alignof and tighten _Alignas test
+ * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
+ as it was too strict: alignof must divide offsetof, but it need
+ not equal offsetof. Inspired by Joseph S. Myers's comment
+ <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
+ Conversely, tighten the _Alignas test a bit, as the resulting
+ alignment must be exactly 8.
+
+2012-01-27 Bruno Haible <bruno@clisp.org>
+
+ stdalign: Document the last change.
+ * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
+
+2012-01-27 Paul Eggert <eggert@cs.ucla.edu>
+
+ stdalign: check that alignof and offsetof are consistent
+ * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
+ Problem reported for gnulib by Richard W.M. Jones in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
+
+2012-01-27 Jim Meyering <meyering@redhat.com>
+
+ update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
+ * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
+ convert a sequence with gaps to the minimal containing range.
+ For example, convert 2000, 2004-2007, 2009 to 2000-2009.
+ * tests/test-update-copyright.sh: Test for this.
+ The FSF confirmed it is ok to do this, assuming there is at
+ least one significant change per year in the affected range:
+ http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
+
+2012-01-26 Bruno Haible <bruno@clisp.org>
+
+ pipe2: refine doc about thread-safety
+ * doc/glibc-functions/pipe2.texi: Clarify the extent of the
+ multithread-safety problem.
+ * doc/glibc-functions/accept4.texi: Likewise.
+
+2012-01-26 Bruno Haible <bruno@clisp.org>
+
+ posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
+ * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
+ In the test program, include <fcntl.h>, for O_RDONLY.
+
+2012-01-26 Eric Blake <eblake@redhat.com>
+
+ pipe2: document lack of thread-safety in replacement
+ * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
+ issue in replacement.
+ * doc/glibc-functions/accept4.texi (accept4): Likewise.
+ Based on a report by Eric Wong.
+
+2012-01-24 Marc-André Lureau <marcandre.lureau@redhat.com> (tiny change)
+ Bruno Haible <bruno@clisp.org>
+
+ malloca: Avoid warnings on x86_64 mingw64.
+ * lib/malloca.c: Include <stdint.h>.
+ (mmalloca, freea): Use uintptr_t to convert pointers to integers.
+ * modules/malloca (Depends-on): Add stdint.
+ * modules/relocatable-prog-wrapper (Depends-on): Likewise.
+
+2012-01-25 Paul Eggert <eggert@cs.ucla.edu>
+
+ obstack: remove __STDC__ conditionals
+ * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
+ S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
+ This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
+ m4/include_next.m4 as the only gnulib-maintained places that still
+ refer to __STDC__.
+
+2012-01-24 Bruno Haible <bruno@clisp.org>
+
+ havelib: Modern quoting.
+ * build-aux/config.rpath: Quote 'like this', not `like this', as per
+ the recent change to the GNU coding standards.
+
+2012-01-24 Bruno Haible <bruno@clisp.org>
+
+ stdint: Improve support for Android.
+ * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
+ Reported by Simon Josefsson <simon@josefsson.org>.
+
+2012-01-23 Paul Eggert <eggert@cs.ucla.edu>
+
+ doc: omit trailing empty lines from INSTALL etc.
+ * doc/Makefile (INSTALL): Omit trailing empty lines.
+ (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
+ omit trailing empty lines. This simplifies the build procedure.
+
+2012-01-23 Jim Meyering <meyering@redhat.com>
+
+ tests: avoid spurious warnings about gl_sockets_startup
+ Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
+ would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
+ reporting a "statement with no effect".
+ * tests/test-accept.c (main): Mark as "(void)".
+ * tests/test-accept4.c (main): Likewise.
+ * tests/test-bind.c (main): Likewise.
+ * tests/test-connect.c (main): Likewise.
+ * tests/test-getpeername.c (main): Likewise.
+ * tests/test-getsockname.c (main): Likewise.
+ * tests/test-getsockopt.c (main): Likewise.
+ * tests/test-listen.c (main): Likewise.
+ * tests/test-recv.c (main): Likewise.
+ * tests/test-recvfrom.c (main): Likewise.
+ * tests/test-send.c (main): Likewise.
+ * tests/test-sendto.c (main): Likewise.
+ * tests/test-setsockopt.c (main): Likewise.
+ * tests/test-shutdown.c (main): Likewise.
+
+2012-01-21 Bruno Haible <bruno@clisp.org>
+
+ locale-fr.m4: Fix for Android.
+ * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
+ failure of the test program on Bionic libc.
+
+2012-01-21 Jim Meyering <meyering@redhat.com>
+
+ bootstrap: fail when bootstrap_post_import_hook fails
+ Otherwise, it's far too easy to miss diagnostics emitted
+ between gnulib-tool's output and that of running configure.
+ * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
+
+2012-01-17 Jim Meyering <meyering@redhat.com>
+
+ maint: enable sc_trailing_blank
+ * build-aux/pmccabe.css: Remove trailing blanks.
+ * doc/acl-cygwin.txt: Likewise.
+ * doc/gnu-oids.texi: Likewise
+ * cfg.mk: Enable sc_trailing_blank.
+ Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
+
+2012-01-17 Jim Meyering <meyering@redhat.com>
+
+ maint: enable sc_prohibit_openat_without_use
+ * cfg.mk: Enable sc_prohibit_openat_without_use.
+ Exempt lib/selinux-at.c.
+
+2012-01-17 Jim Meyering <meyering@redhat.com>
+
+ maint: enable sc_prohibit_cloexec_without_use
+ * cfg.mk: Enable sc_prohibit_cloexec_without_use.
+ * lib/dup-safer-flag.c: Don't include "cloexec.h". Not needed.
+
+2012-01-17 Jim Meyering <meyering@redhat.com>
+
+ maint: enable sc_prohibit_intprops_without_use
+ * cfg.mk: Enable sc_prohibit_intprops_without_use
+ * tests/test-nanosleep.c: Don't include "intprops.h". Not needed.
+
+2012-01-17 Jim Meyering <meyering@redhat.com>
+
+ maint: enable sc_prohibit_hash_pjw_without_use
+ * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
+ * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
+ to match any use of \<hash_pjw\>, i.e., not necessarily with a
+ following " (".
+
+2012-01-17 Jim Meyering <meyering@redhat.com>
+
+ maint: enable double-word-prohibiting rule
+ * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
+ Exempt three files.
+
+2012-01-17 Jim Meyering <meyering@redhat.com>
+
+ maint: remove empty lines at EOF, but excluding modules/*
+ Apply syntax rules at home as well as abroad. Most changes
+ were induced by running this:
+ make srcdir=. _build-aux=build-aux -f top/maint.mk \
+ sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
+ | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
+ * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
+ Exempt modules/* and two binary files.
+ Also exempt doc/INSTALL*, per request from Bruno Haible.
+ * doc/regexprops-generic.texi: *Add* a newline at EOF. There was none.
+ * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
+ * doc/Copyright/request-assign.future: Likewise.
+ * doc/Copyright/request-disclaim.changes: Likewise.
+ * doc/INSTALL: Likewise.
+ * doc/INSTALL.ISO: Likewise.
+ * doc/INSTALL.UTF-8: Likewise.
+ * doc/acl-cygwin.txt: Likewise.
+ * doc/acl-resources.txt: Likewise.
+ * doc/fdl-1.2.texi: Likewise.
+ * doc/fdl-1.3.texi: Likewise.
+ * doc/fdl.texi: Likewise.
+ * lib/argp-pin.c: Likewise.
+ * lib/round.c: Likewise.
+ * lib/unicase/u16-totitle.c: Likewise.
+ * lib/unictype/block_test.c: Likewise.
+ * lib/uninorm/canonical-decomposition.c: Likewise.
+ * m4/README: Likewise.
+ * m4/relocatable-lib.m4: Likewise.
+ * tests/test-isnand-nolibm.c: Likewise.
+ * tests/test-isnand.c: Likewise.
+ * tests/uninorm/NormalizationTest.txt: Likewise.
+
+2012-01-17 Jim Meyering <meyering@redhat.com>
+
+ maint: add framework to run syntax-check rules against gnulib sources
+ * cfg.mk: New file, to disable all currently-failing tests.
+ We'll enable them one by one, as they are made to pass.
+ * Makefile (sc_maint): New rule.
+
+2012-01-21 Bruno Haible <bruno@clisp.org>
+
+ stdint: Add support for Android.
+ * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
+ include the system's <stdint.h>.
+ Reported by Simon Josefsson <simon@josefsson.org>.
+
+2012-01-19 Jim Meyering <meyering@redhat.com>
+
+ bootstrap: add bootstrap_post_import_hook
+ Bison does still need something like the gnulib_mk_hook whose
+ invocation I had to remove along with slurp in commit 767ccd40.
+ Technically, we could get along without it, but doing so would
+ have required living with a warning and a mandatory post-bootstrap
+ automake rerun.
+ * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
+ (bootstrap_post_import_hook): New function.
+ Invoke it after gnulib-tool --import and before autoreconf.
+
+2012-01-18 Jim Meyering <meyering@redhat.com>
+
+ gitlog-to-changelog: don't use "no_"-prefixed variable name
+ * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
+ to enable both --cluster and --no-cluster. Change variable name,
+ s/\$no_cluster/$cluster/, and reverse usage to match.
+
+ gitlog-to-changelog: use "||", not "or" in expressions
+ * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
+ expressions.
+
+2012-01-17 Joel E. Denny <joeldenny@joeldenny.org>
+
+ gitlog-to-changelog: new option --no-cluster
+ * build-aux/gitlog-to-changelog: New option --no-cluster, disables
+ clustering of adjacent commit messages.
+
+2012-01-17 Jim Meyering <meyering@redhat.com>
+
+ maint: spell file systems with two words, not one
+ * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
+ two words, not one.
+
+2012-01-16 Jim Meyering <meyering@redhat.com>
+
+ bootstrap: add a FIXME comment to ensure we eventually remove the hack
+ * build-aux/bootstrap (gnulib_tool_options): Add comment.
+
+2012-01-16 Eric Blake <eblake@redhat.com>
+
+ bootstrap: cater to autoconf 2.59
+ * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
+ is not available.
+
+ bootstrap: properly check for libtool
+ * build-aux/bootstrap (libtoolize): Also run libtool when older
+ usage is detected.
+
+2012-01-15 Bruno Haible <bruno@clisp.org>
+
+ Improve support for MSVC 9.
+ * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
+ clashes on MSVC.
+ * lib/fcntl.in.h: Likewise.
+ * lib/stdlib.in.h: Likewise.
+ * lib/sys_stat.in.h: Likewise.
+
+2011-01-15 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ gnupload: we hold the master copy of this script now
+ For motivation and more information, see:
+ <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
+ * build-aux/gnupload: Make it clear in the heading comments that the
+ master copy of this file is maintained by gnulib. Since we are at
+ it, bump its copyright year and ...
+ ($scriptversion): ... the date in its version.
+ ($usage): Patches and bug reports should be sent to the gnulib list,
+ not the automake one.
+ * config/srclist.txt: Don't try to sync 'gnupload' from automake
+ anymore.
+
+2012-01-15 Bruno Haible <bruno@clisp.org>
+
+ Fix module 'random'.
+ * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
+ initstate, setstate are declared.
+
+2012-01-14 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'random'.
+ * modules/random-tests: New file.
+ * tests/test-random.c: New file, based on tests/test-random_r.c.
+
+ New module 'random'.
+ * lib/stdlib.in.h (random, srandom, initstate, setstate): New
+ declarations.
+ * lib/random.c: New file, based on glibc/stdlib/random.c.
+ * m4/random.m4: New file.
+ * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
+ HAVE_RANDOM.
+ * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
+ * modules/random: New file.
+ * config/srclist.txt: Add an entry for random.c.
+ * doc/posix-functions/random.texi: Mention the 'random' module.
+ * doc/posix-functions/initstate.texi: Likewise.
+ * doc/posix-functions/setstate.texi: Likewise.
+ * doc/posix-functions/srandom.texi: Likewise.
+
+2012-01-12 Bruno Haible <bruno@clisp.org>
+
+ random_r: Use common idioms.
+ * lib/random_r.c: Include <stdlib.h> first.
+
+ random_r: Override incompatible API on AIX, OSF/1.
+ * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
+ Override the system function if REPLACE_RANDOM_R is 1.
+ * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
+ and OSF/1, set REPLACE_RANDOM_R.
+ * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
+ * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
+ * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
+ * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
+ * doc/glibc-functions/random_r.texi: Likewise.
+ * doc/glibc-functions/setstate_r.texi: Likewise.
+
+ random_r: Support for MSVC 9.
+ * lib/random_r.c: Include stdint.h, not inttypes.h.
+
+2012-01-12 Eric Blake <eblake@redhat.com>
+
+ inet_ntop: guard extra work by IF_LINT
+ * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
+ better code generation when not checking for warnings.
+ Suggested by Paul Eggert and Jim Meyering.
+
+ strptime: fix regression on mingw
+ * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
+ Fix regression. Reported by Bruno Haible.
+
+2012-01-11 Reuben Thomas <rrt@sc3d.org>
+ Bruno Haible <bruno@clisp.org>
+
+ copy-file: add error-code-returning variant.
+ * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
+ (qcopy_file_preserving): New declaration.
+ * lib/copy-file.c (qcopy_file_preserving): Renamed from
+ copy_file_preserving. Change return type to 'int'. Don't emit an error
+ message here.
+ (copy_file_preserving): New function.
+ * tests/test-copy-file.c: Include <stdlib.h>.
+ (main): Test qcopy_file_preserving if the environment variable
+ NO_STDERR_OUTPUT is set.
+ * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
+ with NO_STDERR_OUTPUT
+ * tests/test-copy-file-2.sh: Likewise.
+
+2012-01-10 Bruno Haible <bruno@clisp.org>
+
+ copy-file: Use 'quote' module consistently.
+ * lib/copy-file.c (copy_file_preserving): Use quote().
+
+ copy-file: Refactor.
+ * lib/copy-file.c: Include quote.h.
+ (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
+ message here.
+ * modules/copy-file (Depends-on): Add quote.
+
+ acl: Export qcopy_acl.
+ * lib/acl.h (qcopy_acl): New declaration.
+ * lib/copy-acl.c (qcopy_acl): Make non-static.
+
+ acl: Rename a local variable.
+ * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
+
+ acl: Align return values of copy_acl and qcopy_acl.
+ * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
+ maybe < -1.
+
+2012-01-11 Eric Blake <eblake@redhat.com>
+
+ strptime: silence gcc warnings
+ * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
+ [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
+ Reported by Daniel P. Berrange.
+
+ inet_ntop: silence gcc warning
+ * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
+ Reported by Daniel P. Berrange.
+
+2012-01-11 Dmitry V. Levin <ldv@altlinux.org>
+
+ getloadavg test: skip the test on GNU/Linux without /proc mounted
+ GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
+ file. When /proc is not mounted, it always fails with ENOENT.
+ * tests/test-getloadavg.c (main): Treat ENOENT return code from
+ getloadavg(3) the same way as ENOSYS and ENOTSUP.
+
+2012-01-10 Bruno Haible <bruno@clisp.org>
+
+ regex: Avoid link error on MSVC 9.
+ * modules/regex (Depends-on): Add wctype.
+
+2012-01-10 Bruno Haible <bruno@clisp.org>
+
+ doc: Mention --with-tests option.
+ * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
+ * doc/gnulib.texi (Extra tests modules): Mention the need to pass
+ --with-tests.
+ Reported by Reuben Thomas.
+
+2012-01-10 Reuben Thomas <rrt@sc3d.org>
+
+ users.txt: order package names lexicographically.
+ * users.txt: Order package names lexicographically.
+
+2012-01-10 Jim Meyering <meyering@redhat.com>
+
+ maint.mk: fix description in comment
+ * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
+
+ ignore-value: remove deprecated ignore_ptr function
+ * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
+ * NEWS: Note this.
+
+2012-01-09 Jim Meyering <meyering@redhat.com>
+
+ test-init.sh: avoid a subshell
+ * tests/test-init.sh: Remove protective subshell.
+ Suggested by Bernhard Voelker. While a subshell is normally
+ required to protect against older shells (Solaris, FreeBSD) that
+ warn about a missing program before performing redirection, the
+ shell-selection tests performed by init.sh probably exclude any
+ offending shell.
+
+2012-01-08 Bruno Haible <bruno@clisp.org>
+
+ setlocale tests: Avoid test failure on Solaris 11 2011-11.
+ * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
+ variable.
+
+2012-01-08 Bruno Haible <bruno@clisp.org>
+
+ posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
+ * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
+ REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
+ * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
+ macro.
+ * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
+ REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
+ * lib/spawn_faction_addopen.c: Add workaround implementation if
+ HAVE_WORKING_POSIX_SPAWN.
+ * modules/spawn (Makefile): Substitute
+ REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
+ * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
+ gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
+ REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
+ (Depends-on): Update conditions.
+ * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
+ the Solaris 11 bug.
+
+2012-01-08 Bruno Haible <bruno@clisp.org>
+
+ posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
+ * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
+ REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
+ * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
+ macro.
+ * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
+ REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
+ * lib/spawn_faction_adddup2.c: Add workaround implementation if
+ HAVE_WORKING_POSIX_SPAWN.
+ * modules/spawn (Makefile): Substitute
+ REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
+ * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
+ gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
+ REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
+ (Depends-on): Update conditions.
+ * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
+ the Solaris 11 bug.
+
+2012-01-08 Bruno Haible <bruno@clisp.org>
+
+ posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
+ * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
+ REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
+ * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
+ HAVE_WORKING_POSIX_SPAWN.
+ (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
+ * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
+ REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
+ * lib/spawn_faction_addclose.c: Add workaround implementation if
+ HAVE_WORKING_POSIX_SPAWN.
+ * modules/spawn (Makefile): Substitute
+ REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
+ * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
+ gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
+ REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
+ (Depends-on): Update conditions.
+ * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
+ the Solaris 11 bug.
+
+2012-01-08 Bruno Haible <bruno@clisp.org>
+
+ doc: Update for Solaris 11 2011-11.
+ * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
+ * m4/printf.m4: Update comments.
+
+2012-01-08 Bruno Haible <bruno@clisp.org>
+
+ mktime: Avoid compilation error on Solaris 11.
+ * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
+
+2012-01-08 Bruno Haible <bruno@clisp.org>
+
+ doc: Small fix.
+ * doc/posix-headers/nl_types.texi: Correct platforms list.
+
+2012-01-08 Simon Josefsson <simon@josefsson.org>
+
+ Add lgpl-3.0 module.
+ * MODULES.html.sh (Support for building documentation): Add
+ lgpl-3.0.
+ * modules/lgpl-3.0: New file.
+
+2012-01-08 Jim Meyering <meyering@redhat.com>
+
+ select.c: indent with spaces, not TABs
+ * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
+
+2012-01-07 Paolo Bonzini <bonzini@gnu.org>
+
+ quotearg: do not use grave accent for left quote
+ * lib/quotearg.c (gettext_quote): Map "`" to "'" for
+ locale_quoting_style.
+ (quotearg_buffer_restyled): Fix example.
+ * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
+
+2012-01-07 Paolo Bonzini <bonzini@gnu.org>
+
+ quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
+ Most programs do not have translation catalogs for English and much
+ less separate catalogs for British and American English. Drop the
+ suggestion to translators about these two, and provide it
+ automatically for Unicode locales. Like most programs, even those
+ using American English, we use single quotation marks. This conflicts
+ with the American typographic convention, but works better when you
+ cite the entire error message within double quotes. It also tries not
+ to clash with established practice and with what non-gnulib programs
+ will usually do.
+ * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
+ using an UTF-8 or GB-18030 locale. The list of other locales with
+ quotes was provided by Bruno Haible.
+ (quotearg_buffer_restyled): Adjust instructions to translators.
+ * lib/quotearg.h (locale_quoting_style): Do not put an example in the
+ text, since this would be wrong when using Unicode.
+ * modules/quotearg: Depend on c-strcaseeq.
+
+2012-01-07 Paolo Bonzini <bonzini@gnu.org>
+
+ quotearg: fix Wikipedia link
+ * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
+
+2012-01-07 Simon Josefsson <simon@josefsson.org>
+
+ Fix for mingw with MSVC9.
+ * m4/ld-version-script.m4: Check that compiler rejects version
+ scripts with syntax errors. Reported by Bruno Haible
+ <bruno@clisp.org>.
+
+2012-01-06 Bruno Haible <bruno@clisp.org>
+
+ Talk about "native Windows API", not "Woe32".
+ * lib/accept4.c: Update comments to mention native Windows.
+ * lib/execute.c: Likewise.
+ * lib/fatal-signal.c: Likewise.
+ * lib/localcharset.c: Likewise.
+ * lib/nanosleep.c: Likewise.
+ * lib/nl_langinfo.c: Likewise.
+ * lib/pclose.c: Likewise.
+ * lib/pipe-filter-gi.c: Likewise.
+ * lib/pipe-filter-ii.c: Likewise.
+ * lib/pipe.c: Likewise.
+ * lib/pipe2.c: Likewise.
+ * lib/popen.c: Likewise.
+ * lib/progreloc.c: Likewise.
+ * lib/relocatable.c: Likewise.
+ * lib/sigaction.c: Likewise.
+ * lib/sigprocmask.c: Likewise.
+ * lib/spawn-pipe.h: Likewise.
+ * lib/spawn-pipe.c: Likewise.
+ * lib/spawni.c: Likewise.
+ * lib/stat-time.h: Likewise.
+ * lib/w32spawn.h: Likewise.
+ * tests/test-isatty.c: Likewise.
+ * lib/config.charset: More comments.
+ * doc/gnulib-intro.texi: Mention native Windows.
+ * doc/posix-functions/_Exit_C99.texi: Likewise.
+ * doc/posix-headers/fcntl.texi: Likewise.
+
+2012-01-06 Guillem Jover <guillem@hadrons.org> (tiny change)
+
+ argp: Avoid crash if translator uses % characters in a translation.
+ * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
+ Reported by Mats Erik Andersson <gnu@gisladisker.se>.
+
+2012-01-06 Paul Eggert <eggert@cs.ucla.edu>
+
+ doc: C11 and C++11 are now official
+ * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
+ * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
+ * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
+ * modules/stdalign:
+ Replace references to draft C1X to C11, and to draft C++0X to C++11.
+
+2012-01-06 Bruno Haible <bruno@clisp.org>
+
+ uc-is-grapheme-break tests: Tweak.
+ * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
+ message.
+
+2012-01-06 Bruno Haible <bruno@clisp.org>
+
+ test-init.sh: correct the test for diff -u
+ * tests/test-init.sh: Also redirect stdout to /dev/null.
+
+2012-01-05 Paul Eggert <eggert@cs.ucla.edu>
+
+ Use ', not `, for quoting output.
+ * build-aux/announce-gen (usage, sizes, print_news_deltas)
+ (print_changelog_deltas, get_tool_versions, main program):
+ * build-aux/git-version-gen:
+ * build-aux/gitlog-to-changelog (usage, parse_amend_file):
+ * build-aux/move-if-change (help):
+ * build-aux/useless-if-before-free (usage, main program):
+ * check-module (parse_module_file, usage)
+ (find_included_lib_files, check_module):
+ * lib/argmatch.c (main) [TEST]:
+ * lib/argp-help.c (_help):
+ * lib/getopt1.c (main) [TEST]:
+ * lib/git-merge-changelog.c (usage):
+ * lib/xstrtol-error.c (xstrtol_error):
+ * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
+ * m4/argz.m4 (gl_FUNC_ARGZ):
+ * m4/bison.m4 (gl_BISON):
+ * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
+ * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
+ * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
+ * m4/fpending.m4 (gl_PREREQ_FPENDING):
+ * m4/gc-random.m4 (gl_GC_RANDOM):
+ * m4/intl.m4 (gt_CHECK_DECL):
+ * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
+ * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
+ (AC_TYPE_UNSIGNED_LONG_LONG_INT):
+ * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
+ * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
+ * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
+ * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
+ * tests/test-dirname.c (main):
+ * tests/test-getpass.c (main):
+ * tests/test-iconvme.c (main):
+ * tests/test-parse-datetime.c (LOG):
+ * tests/test-xstrtoimax.sh:
+ * tests/test-xstrtol.sh:
+ * tests/test-xstrtoll.sh:
+ * tests/test-xstrtoumax.sh:
+ * tests/unigbrk/test-uc-is-grapheme-break.c (main):
+ * top/GNUmakefile (abort-due-to-no-makefile):
+ Quote 'like this', not `like this', as per the recent change to
+ the GNU coding standards.
+
+2012-01-05 Bruno Haible <bruno@clisp.org>
+
+ strtoimax: Don't force a replacement on systems where intmax_t is int.
+ * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
+ 'intmax_t' is not larger than 'int'.
+ Reported by Pádraig Brady <P@draigBrady.com>.
+
+2012-01-05 Bruno Haible <bruno@clisp.org>
+
+ doc: Mention NetBSD bugs.
+ * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
+ * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
+
+2012-01-05 Bruno Haible <bruno@clisp.org>
+
+ strtoumax tests: Enhance tests.
+ * tests/test-strtoumax.c (main): Add tests for large values.
+
+2012-01-05 Bruno Haible <bruno@clisp.org>
+
+ strtoimax: Work around AIX 5.1 bug.
+ * lib/inttypes.in.h (strtoimax): Allow overriding the system's
+ definition.
+ * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
+ Set HAVE_STRTOIMAX.
+ * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
+ REPLACE_STRTOIMAX.
+ * modules/inttypes-incomplete (Makefile.am): Substitute
+ REPLACE_STRTOIMAX.
+ * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
+ (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
+ (Depends-on): Update conditions.
+ * tests/test-strtoimax.c (main): Add tests for large values.
+ * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
+
+2012-01-05 Bruno Haible <bruno@clisp.org>
+
+ inttypes: Modernize.
+ * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
+ * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
+ (Makefile.am): Update inttypes.h rule.
+
+2012-01-05 Jim Meyering <meyering@redhat.com>
+
+ init.sh: don't waste a subshell just to redirect stderr
+ * tests/init.sh: In testing for diff -u and diff -c, use a
+ stderr-redirecting exec inside `...` rather than a subshell.
+
+ test-init.sh: avoid failure on HP-UX 11.00
+ * tests/test-init.sh: Skip "diff -u"-comparing step when compare
+ resolves to diff -c or cmp. Reported by Bruno Haible.
+
+2012-01-05 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'strtoull'.
+ * modules/strtoull-tests: New file.
+ * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
+
+2012-01-05 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'strtoll'.
+ * modules/strtoll-tests: New file.
+ * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
+
+2012-01-05 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'strtoul'.
+ * modules/strtoul-tests: New file.
+ * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
+
+2012-01-05 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'strtol'.
+ * modules/strtol-tests: New file.
+ * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
+
+2012-01-04 Jim Meyering <meyering@redhat.com>
+
+ test-init.sh: accommodate Solaris 5.10's different diff -u output
+ * tests/test-init.sh: Also exempt @@ lines from the comparison
+ of diff output, since Solaris 5.10 and GNU diff formats differ.
+ Reported by Stefano Lattarini.
+
+2012-01-04 Paul Eggert <eggert@cs.ucla.edu>
+
+ test-posixtm: don't assume signed integer wraparound
+ * tests/test-posixtm.c (main): Don't assume wraparound semantics
+ after signed integer overflow. Inspired by (though it may not
+ fix) Bruno Haible's bug report in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
+
+ Spell out "Windows 9x" and "Windows XP".
+ * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
+ "Windows 9x" and "WinXP" with "Windows XP".
+
+2012-01-04 Jim Meyering <meyering@redhat.com>
+
+ test-vc-list-files-cvs.sh: remove obsolete comment
+ * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
+ double exit. Now that's all encapsulated via skip_ and Exit.
+
+2012-01-04 Bruno Haible <bruno@clisp.org>
+
+ Talk about "native Windows API", not "Win32".
+ * lib/classpath.c: Update comments to mention native Windows.
+ * lib/csharpexec.c: Likewise.
+ * lib/dup2.c: Likewise.
+ * lib/error.c: Likewise.
+ * lib/fcntl.c: Likewise.
+ * lib/filename.h: Likewise.
+ * lib/findprog.c: Likewise.
+ * lib/get-rusage-as.c: Likewise.
+ * lib/get-rusage-data.c: Likewise.
+ * lib/getpagesize.c: Likewise.
+ * lib/javaexec.c: Likewise.
+ * lib/msvc-inval.c: Likewise.
+ * lib/msvc-nothrow.c: Likewise.
+ * lib/nanosleep.c: Likewise.
+ * lib/nonblocking.c: Likewise.
+ * lib/printf-parse.c: Likewise.
+ * lib/setlocale.c: Likewise.
+ * lib/sigaction.c: Likewise.
+ * lib/strerror_r.c: Likewise.
+ * lib/tmpdir.c: Likewise.
+ * lib/vasnprintf.c: Likewise.
+ * lib/w32spawn.h: Likewise.
+ * lib/waitpid.c: Likewise.
+ * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
+ * m4/locale-ar.m4: Likewise.
+ * m4/locale-fr.m4: Likewise.
+ * m4/locale-ja.m4: Likewise.
+ * m4/locale-tr.m4: Likewise.
+ * m4/locale-zh.m4: Likewise.
+ * m4/printf.m4: Likewise.
+ * tests/test-cloexec.c: Likewise.
+ * tests/test-copy-acl.sh: Likewise.
+ * tests/test-copy-file.sh: Likewise.
+ * tests/test-file-has-acl.sh: Likewise.
+ * tests/test-set-mode-acl.sh: Likewise.
+ * tests/test-dup-safer.c: Likewise.
+ * tests/test-dup2.c: Likewise.
+ * tests/test-dup3.c: Likewise.
+ * tests/test-fcntl.c: Likewise.
+ * tests/test-nonblocking-pipe.h: Likewise.
+ * tests/test-nonblocking-socket.h: Likewise.
+ * tests/test-pipe.c: Likewise.
+ * tests/test-pipe2.c: Likewise.
+ * tests/test-spawn-pipe-child.c: Likewise.
+ * doc/acl-resources.txt: Likewise.
+ * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
+ * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
+ * tests/test-select.h (WINDOWS_NATIVE): Likewise.
+ * lib/localcharset.c: Update comments to mention native Windows.
+ (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
+ * lib/localename.c: Likewise.
+ * lib/progreloc.c: Likewise.
+ * lib/relocatable.c: Likewise.
+ * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
+ (windows_compute_revents): Renamed from win32_compute_revents.
+ (windows_compute_revents_socket): Renamed from
+ win32_compute_revents_socket.
+ * lib/select.c: Update comments to mention native Windows.
+ (windows_poll_handle): Renamed from win32_poll_handle.
+ * m4/threadlib.m4: Update comments to mention native Windows.
+ (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
+ --enable-threads=windows instead of --enable-threads=win32. Set
+ USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
+ * lib/glthread/lock.h: Update comments to mention native Windows.
+ (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
+ * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
+ USE_WIN32_THREADS.
+ * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
+ * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
+ * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
+ * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
+ * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
+ * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
+ * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
+ * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
+ * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
+ * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
+ (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
+ * tests/test-tls.c: Likewise.
+ Rationale:
+ Microsoft renamed the "Win32 API" to "Windows API", as it is available
+ on both 32-bit and 64-bit Windows systems.
+ But in gnulib, we treat Cygwin like a Unix platform, therefore the main
+ line of distinction is between "native Windows" on one side and Unix/
+ POSIX systems on the other side. More details in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
+ Suggested by Paul Eggert.
+
+2012-01-03 Bruno Haible <bruno@clisp.org>
+
+ isatty: Support for MSVC 9.
+ * doc/posix-functions/isatty.texi: Mention the MSVC problem.
+ * lib/isatty.c: Include <errno.h>, msvc-inval.h.
+ (_isatty_nothrow): New function.
+ (isatty): Use it instead of _isatty.
+ (IsConsoleHandle): Add comment, from Paolo Bonzini.
+ * lib/poll.c (IsConsoleHandle): Likewise.
+ * lib/select.c (IsConsoleHandle): Likewise.
+ * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
+ (gl_PREREQ_ISATTY): New macro.
+ * modules/isatty (Depends-on): Add msvc-inval.
+ (configure.ac): Invoke gl_PREREQ_ISATTY.
+
+2012-01-03 Jim Meyering <meyering@redhat.com>
+
+ maint.mk: remove temporary transition aid from over 1.5 years ago
+ * top/maint.mk (_prohibit_regexp): Remove definition whose sole
+ purpose was to aid in the transition (avoiding silent malfunction)
+ from that old name to the new _sc_search_regexp. This shim was
+ added by commit 219c504b.
+
+ init.sh: do not try to accommodate compare arguments starting with "-"
+ * tests/init.sh (compare_dev_null_): Do not try to accommodate
+ compare arguments that start with "-". Besides, we do not worry
+ about this when invoking diff or cmp; why start now with sed?
+ Using "--" to separate options from argument would trigger sed
+ failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
+ OpenBSD 4.9 and NetBSD 5.1. Reported by Bruno Haible.
+
+2012-01-02 Bruno Haible <bruno@clisp.org>
+
+ Enhance tests for module 'isatty'.
+ * modules/isatty-tests (Depends-on): Add pipe-posix.
+ * tests/test-isatty.c: Include <fcntl.h>.
+ (DEV_NULL): New macro.
+ (main): Test the resut of isatty() also on regular files, pipes, and
+ /dev/null.
+
+ New module 'isatty'.
+ * lib/unistd.in.h (isatty): New declaration.
+ * lib/isatty.c: New file, based on an idea of
+ Bastien Roucariès <roucaries.bastien@gmail.com>.
+ * m4/isatty.m4: New file.
+ * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
+ (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
+ * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
+ REPLACE_ISATTY.
+ * modules/isatty: New file.
+ * doc/posix-functions/isatty.texi: Mention the new module.
+ Suggested by Paolo Bonzini.
+
+2012-01-02 Bruno Haible <bruno@clisp.org>
+
+ canonicalize: Tweak 2011-12-29 commit.
+ * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
+ * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
+
+2012-01-02 Jim Meyering <meyering@redhat.com>
+
+ gitlog-to-changelog: describe input syntax in --help output
+ * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
+
+ gitlog-to-changelog: fix typo in --help: show backslash before email @
+ * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
+ in sources, but not in actual output.
+
+2011-12-30 Jim Meyering <meyering@redhat.com>
+
+ gitlog-to-changelog: don't malfunction when name contains %-directive
+ * build-aux/gitlog-to-changelog (main): Don't let a %-directive
+ in a name string cause trouble. E.g., with a user name of "%s",
+ gitlog-to-changelog would fail with "Missing argument in sprintf at..."
+
+2011-12-30 Gary V. Vaughan <gary@gnu.org>
+
+ gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
+ * build-aux/gitlog-to-changelog (main): Map the string, at beginning
+ of line in a git commit log, "Copyright-paperwork-exempt: yes", to
+ the " (tiny change)" notation that is appended to the standard
+ ChangeLog "date name email" header line.
+
+2012-01-01 Jim Meyering <meyering@redhat.com>
+
+ test-framework-sh: init.sh: fix "make dist" failure
+ When using gnulib-tool's --with-tests option and any module that
+ depends on test-framework-sh, "make dist" would fail due to the
+ lack of init.sh *in lib/*. The EXTRA_DIST += init.sh is required
+ in the gltests directory, and not in the gllib/ directory.
+ One way to work around that is to move the EXTRA_DIST += init.sh
+ from the primary module to the -tests one:
+ * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
+ * modules/test-framework-sh (Makefile.am): ...not here.
+ Reported by Tom G. Christensen in
+ http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
+
+ version-etc: update copyright year reported by --version
+ * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
+
+2011-12-31 Pádraig Brady <P@draigBrady.com>
+
+ canonicalize: only stat() if required
+ * lib/canonicalize.c (canonicalize_filename_mode):
+ Avoid calling l?stat() when both CAN_MISSING,
+ and CAN_NOLINKS are set, as we neither need
+ to resolve symlinks or test component existence.
+
+2011-12-31 Paul Eggert <eggert@cs.ucla.edu>
+
+ doc: cover st_ino issues once; add OpenVMS etc.
+ * doc/posix-functions/stat.texi (stat):
+ * doc/posix-functions/lstat.texi (lstat):
+ * doc/posix-functions/fstatat.texi (fstatat):
+ * doc/posix-functions/fstat.texi (fstat):
+ Move general 'struct stat' stuff to sys_stat.texi,
+ leaving behind a pointer.
+ * doc/posix-headers/sys_stat.texi (sys/stat.h):
+ Merge duplicate info about 'struct stat' problems into here.
+ Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
+ and suggest partial workarounds.
+
+ same-inode: port to OpenVMS
+ * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
+ three st_ino values.
+
+2011-12-30 Pádraig Brady <P@draigBrady.com>
+
+ canonicalize: fix references to stat() and lstat()
+ * lib/canonicalize.c (canonicalize_filename_mode):
+ Ensure references always resolve to a replacement
+ function if required (even via a macro).
+
+2011-12-30 Jim Meyering <meyering@redhat.com>
+
+ gitlog-to-changelog: remove a little duplication
+ * build-aux/gitlog-to-changelog (main): Grep @lines once,
+ rather than twice.
+
+2011-12-29 Pádraig Brady <P@draigBrady.com>
+
+ canonicalize: add support for not resolving symlinks
+ * lib/canonicalize.h: Add the CAN_NOLINKS flag to
+ indicate we don't want to follow symlinks. Also
+ provide CAN_MODE_MASK to aid setting these existing
+ mutually exclusive values.
+ * lib/canonicalize.c (canonicalize_filename_mode):
+ Extract the flags from can_mode parameter, which
+ are currently just used to select between stat()
+ and lstat(). Also ensure that mutually exclusive
+ values are flagged immediately as invalid.
+ * tests/test-canonicalize.c: Verify symlinks are
+ not followed, and that invalid flag combinations
+ are diagnosed.
+
+2011-12-25 Jim Meyering <meyering@redhat.com>
+
+ gitlog-to-changelog: do not clump multi-paragraph entries
+ Identical header lines (date,name,email+coauthors) are suppressed,
+ thus putting all entries with those same characteristics under
+ a single header. However, when a log entry consists of two or
+ more paragraphs, it may not be clear where it starts and ends.
+ This change makes it so that such an entry is always separated
+ from others by a header line, even when that header would
+ otherwise be suppressed.
+ * build-aux/gitlog-to-changelog: Implement the above.
+ Inspired by a related request from Stefano Lattarini in
+ http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
+
+2011-12-25 Paul Eggert <eggert@cs.ucla.edu>
+
+ announce-gen: fix `cmd' typo in diagnostic
+ * build-aux/announce-gen (print_changelog_deltas): Fix typo in
+ diagnostic: a missing '$' meant that the command was not output.
+
+2011-12-23 Jim Meyering <meyering@redhat.com>
+
+ test-framework-sh: distribute init.sh
+ * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
+ Otherwise, "make -C gnulib-tests check" (at least in grep) would
+ fail due to the lack of init.sh.
+
+ maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
+ * modules/atexit-tests: Rather than listing tests/init.sh,
+ now that there's a module for it, simply depend on that new module.
+ * modules/closein-tests: Likewise.
+ * modules/exclude-tests: Likewise.
+ * modules/getcwd-tests: Likewise.
+ * modules/perror-tests: Likewise.
+ * modules/pread-tests: Likewise.
+ * modules/pwrite-tests: Likewise.
+ * modules/vc-list-files-tests: Likewise.
+ * modules/verify-tests: Likewise.
+ * modules/xalloc-die-tests: Likewise.
+ * modules/xstrtoimax-tests: Likewise.
+ * modules/xstrtol-tests: Likewise.
+ * modules/xstrtoll-tests: Likewise.
+ * modules/xstrtoumax-tests: Likewise.
+ * modules/yesno-tests: Likewise.
+
+2011-12-22 Jim Meyering <meyering@redhat.com>
+
+ test-framework-sh: add minimal tests of init.sh's compare function
+ * modules/test-framework-sh-tests: New file.
+ * tests/test-init.sh: New file.
+
+ test-framework-sh: new module
+ * modules/test-framework-sh: New file.
+ * MODULES.html.sh (Support for maintaining and releasing projects):
+ List it.
+
+ init.sh: do not emit simulated diff output to stderr
+ * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
+
+2011-12-22 Reuben Thomas <rrt@sc3d.org>
+
+ .gitignore: ignore gnulib.dvi and regex.info
+ * doc/.gitignore:add gnulib.dvi and regex.info
+
+2011-12-22 Jim Meyering <meyering@redhat.com>
+
+ init.sh: correct previous change
+ * tests/init.sh (compare): My previous change was wrong.
+ Don't clobber "$?". Spotted by Stefano Lattarini and Pádraig Brady.
+
+ init.sh: avoid unwarranted test failure when using "set -e"
+ * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
+ Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
+ a use like "compare exp out" would get evoke an unconditional failure.
+
+2011-12-21 Alfred M. Szmidt <ams@gnu.org>
+
+ bootstrap: fix it to honor $ACLOCAL_FLAGS once again
+ The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
+ of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
+ autoreconf that did not.
+ * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
+ Reported by Mats Erik Andersson <gnu@gisladisker.se>.
+
+2011-12-17 Jim Meyering <meyering@redhat.com>
+
+ bootstrap: remove some now-unneeded code
+ This script arose back when gnulib-tool was young.
+ Since then, it has seen improvements that render much of this
+ script unnecessary. In particular, it can now make symlinks
+ to the files it uses. Also, I no longer see as much value in
+ marking files as read-only via comments.
+ If you relied on the symlink-creation feature of the preceding
+ version of this script, you can get most of that functionality
+ by adding the --symlink option to the definition of
+ gnulib_tool_option_extras in your bootstrap.conf file.
+ * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
+ Run autopoint and libtoolize *before* gnulib-tool.
+ After it, run an abbreviated autoreconf, rather than a loop around
+ all tools.
+ (slirp, bt_mark_as_generated): Remove functions.
+
+2011-12-18 Paul Eggert <eggert@cs.ucla.edu>
+
+ ftoastr: fix typo
+ * lib/ftoastr.h: Fix misspelling in comment.
+
+2011-12-18 Reuben Thomas <rrt@sc3d.org>
+
+ * top/README-release: fix punctuation.
+
+2011-12-17 Jim Meyering <meyering@redhat.com>
+
+ bootstrap: correct the recent buildreq change
+ The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
+ had no effect.
+ * build-aux/bootstrap (buildreq): Bracket each search term with
+ "*...*", so that the shell "case" statement works as intended.
+ Add comments.
+
+2011-12-17 Bernhard Voelker <mail@bernhard-voelker.de>
+
+ build: let bootstrap resort to wget when downloading .po files
+ * build-aux/bootstrap (download_po_files): Fallback to wget when
+ downloading the .po files via rsync fails. This is necessary to
+ bootstrap from behind a strict firewall.
+
+2011-12-15 Paul Eggert <eggert@cs.ucla.edu>
+
+ stdint: don't assume C++11 when compiling with g++
+ Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
+ * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
+ work also in C++ before C++11, as that improperly inhibits
+ generating a substitute stdint.h for that case.
+
+2011-12-15 Paul Eggert <eggert@cs.ucla.edu>
+
+ alloca: protect comment from gnulib-tool
+ * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
+ that gnulib-tool doesn't think it's a license, and munge it to
+ say "GCC version 3".
+
+2011-12-15 Ludovic Courtès <ludo@gnu.org> (tiny change)
+
+ localcharset: Use an absolute path in TESTS_ENVIRONMENT.
+ * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
+ $(abs_top_builddir) instead of $(top_builddir).
+
+2011-12-14 Alex Nelson <ajnelson@cs.ucsc.edu> (tiny change)
+
+ strftime-tests: also test nanoseconds
+ * tests/test-strftime.c (T): Add a test of %N.
+
+2011-12-13 Paul Eggert <eggert@cs.ucla.edu>
+
+ inttypes, stdint: add C++11 support
+ C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
+ when including inttypes.h and stdint.h. Support this change to
+ the standard.
+ * doc/posix-headers/inttypes.texi (inttypes.h):
+ * doc/posix-headers/stdint.texi (stdint.h): Document this.
+ * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
+ Define if not defined already, for the benefit of pre-C++11 hosts.
+ Define the standard format macros (e.g., PRId8) always.
+ * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
+ Likewise, if __cpluspus. Define the standard constant and limit
+ macros (e.g., INT8_C, INT8_MAX) always.
+ * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
+ GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
+ * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
+ * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
+ (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
+ * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
+ Likewise.
+
+2011-12-12 Paul Eggert <eggert@cs.ucla.edu>
+
+ nonblocking tests: Fix test failure on Linux/PPC.
+ Suggested by Prerna Saxena in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
+ * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
+ Set to 1100000.
+
+2011-12-12 Jim Meyering <meyering@redhat.com>
+
+ argmatch: don't hard-code `' when listing valid option arguments
+ * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'. Instead,
+ use the quote function to add quotes. Use fputs rather than
+ fprintf for the format string with no format directive.
+
+2011-12-07 Eric Blake <eblake@redhat.com>
+
+ bootstrap: detect tools required by gnulib-tool
+ * build-aux/bootstrap (buildreq): Provide minimum implicit
+ dependencies.
+ * DEPENDENCIES: Mention patch as a prereq.
+
2011-12-04 Bruno Haible <bruno@clisp.org>
sethostname: Port to Windows platforms.
coding: utf-8
End:
- Copyright (C) 1997-2011 Free Software Foundation, Inc.
+ Copyright (C) 1997-2012 Free Software Foundation, Inc.
Copying and distribution of this file, with or without
modification, are permitted provided the copyright notice