view ChangeLog @ 16432:56e33fed83b4

round-ieee tests: More tests. * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h. (main): Add tests for [MX] shaded specification in POSIX. * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h. (Depends-on): Add isnand-nolibm.
author Bruno Haible <bruno@clisp.org>
date Sun, 26 Feb 2012 14:27:32 +0100
parents f16e87d6bf2e
children ddc2bee9e4f8
line wrap: on
line source

2012-02-26  Bruno Haible  <bruno@clisp.org>

	round-ieee tests: More tests.
	* tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
	(main): Add tests for [MX] shaded specification in POSIX.
	* modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
	(Depends-on): Add isnand-nolibm.

	roundf-ieee tests: More tests.
	* tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
	(main): Add tests for [MX] shaded specification in POSIX.
	* modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
	(Depends-on): Add isnanf-nolibm.

	truncl-ieee tests: More tests.
	* tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
	(main): Add tests for [MX] shaded specification in POSIX.
	* modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
	(Depends-on): Add isnanl-nolibm.

	trunc-ieee tests: More tests.
	* tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
	(main): Add tests for [MX] shaded specification in POSIX.
	* modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
	(Depends-on): Add isnand-nolibm.

	truncf-ieee tests: More tests.
	* tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
	(main): Add tests for [MX] shaded specification in POSIX.
	* modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
	(Depends-on): Add isnanf-nolibm.

	ceill-ieee tests: More tests.
	* tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
	(main): Add tests for [MX] shaded specification in POSIX.
	* modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
	(Depends-on): Add isnanl-nolibm.

	ceil-ieee tests: More tests.
	* tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
	(main): Add tests for [MX] shaded specification in POSIX.
	* modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
	(Depends-on): Add isnand-nolibm.

	ceilf-ieee tests: More tests.
	* tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
	(main): Add tests for [MX] shaded specification in POSIX.
	* modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
	(Depends-on): Add isnanf-nolibm.

	floorl-ieee tests: More tests.
	* tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
	(main): Add tests for [MX] shaded specification in POSIX.
	* modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
	(Depends-on): Add isnanl-nolibm.

	floor-ieee tests: More tests.
	* tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
	(main): Add tests for [MX] shaded specification in POSIX.
	* modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
	(Depends-on): Add isnand-nolibm.

	floorf-ieee tests: More tests.
	* tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
	(main): Add tests for [MX] shaded specification in POSIX.
	* modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
	(Depends-on): Add isnanf-nolibm.

2012-02-26  Bruno Haible  <bruno@clisp.org>

	fpieee: More comments.
	* m4/fpieee.m4 (gl_FP_IEEE): Add more comments.

2012-02-25  Bruno Haible  <bruno@clisp.org>

	Tests for module 'log10l'.
	* modules/log10l-tests: New file.
	* tests/test-log10l.c: New file.
	* tests/test-math-c++.cc: Check the declaration of log10l.

	New module 'log10l'.
	* lib/math.in.h (log10l): New declaration.
	* lib/log10l.c: New file.
	* m4/log10l.m4: New file.
	* modules/log10l: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
	HAVE_DECL_LOG10L.
	* modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
	HAVE_DECL_LOG10L.
	* doc/posix-functions/log10l.texi: Mention the new module.

2012-02-25  Bruno Haible  <bruno@clisp.org>

	fmodl, remainder*: Avoid wrong results due to rounding errors.
	* lib/fmodl.c (fmodl): Correct the result if it is not within the
	expected bounds.
	* lib/remainderf.c (remainderf): Likewise.
	* lib/remainder.c (remainder): Likewise.
	* lib/remainderl.c (remainderl): Likewise.

2012-02-25  Bruno Haible  <bruno@clisp.org>

	Tests for module 'remainderl'.
	* modules/remainderl-tests: New file.
	* tests/test-remainderl.c: New file.
	* tests/test-math-c++.cc: Check the declaration of remainderl.

	New module 'remainderl'.
	* lib/math.in.h (remainderl): New declaration.
	* lib/remainderl.c: New file.
	* m4/remainderl.m4: New file.
	* modules/remainderl: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
	* modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
	HAVE_REMAINDERL.
	* doc/posix-functions/remainderl.texi: Mention the new module.

2012-02-25  Bruno Haible  <bruno@clisp.org>

	Tests for module 'remainderf'.
	* modules/remainderf-tests: New file.
	* tests/test-remainderf.c: New file.
	* tests/test-math-c++.cc: Check the declaration of remainderf.

	New module 'remainderf'.
	* lib/math.in.h (remainderf): New declaration.
	* lib/remainderf.c: New file.
	* m4/remainderf.m4: New file.
	* modules/remainderf: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
	* modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
	HAVE_REMAINDERF.
	* doc/posix-functions/remainderf.texi: Mention the new module.

2012-02-25  Bruno Haible  <bruno@clisp.org>

	remainder: Support for MSVC.
	* lib/math.in.h (remainder): New declaration.
	* lib/remainder.c: New file.
	* m4/remainder.m4: New file.
	* modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
	(Depends-on): Add math, round, fma.
	(configure.ac): Use results of gl_FUNC_REMAINDER.
	* m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
	HAVE_DECL_REMAINDER.
	* modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
	HAVE_REMAINDER, HAVE_DECL_REMAINDER.
	* tests/test-math-c++.cc: Check the declaration of remainder.
	* doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
	problems are fixed.

2012-02-25  Bruno Haible  <bruno@clisp.org>

	Tests for module 'fmodl'.
	* modules/fmodl-tests: New file.
	* tests/test-fmodl.c: New file.
	* tests/test-math-c++.cc: Check the declaration of fmodl.

	New module 'fmodl'.
	* lib/math.in.h (fmodl): New declaration.
	* lib/fmodl.c: New file.
	* m4/fmodl.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
	REPLACE_FMODL.
	* modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
	REPLACE_FMODL.
	* modules/fmodl: New file.
	* doc/posix-functions/fmodl.texi: Mention the new module.

2012-02-25  Bruno Haible  <bruno@clisp.org>

	Tests for module 'modfl'.
	* modules/modfl-tests: New file.
	* tests/test-modfl.c: New file.
	* tests/test-math-c++.cc: Check the declaration of modfl.

	New module 'modfl'.
	* lib/math.in.h (modfl): New declaration.
	* lib/modfl.c: New file.
	* m4/modfl.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
	* modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
	* modules/modfl: New file.
	* doc/posix-functions/modfl.texi: Mention the new module.

2012-02-25  Bruno Haible  <bruno@clisp.org>

	Tests for module 'fabsl'.
	* modules/fabsl-tests: New file.
	* tests/test-fabsl.c: New file.
	* tests/test-math-c++.cc: Check the declaration of fabsl.

	New module 'fabsl'.
	* lib/math.in.h (fabsl): New declaration.
	* lib/fabsl.c: New file.
	* m4/fabsl.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
	REPLACE_FABSL.
	* modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
	REPLACE_FABSL.
	* modules/fabsl: New file.
	* doc/posix-functions/fabsl.texi: Mention the new module.

2012-02-25  Bruno Haible  <bruno@clisp.org>

	fabs tests: More tests.
	* tests/test-fabs.c: Include <string.h>, minus-zero.h.
	(zero): New variable.
	(main): Add tests for signed zero.
	* modules/fabs-tests (Files): Add tests/minus-zero.h.

	fabsf tests: More tests.
	* tests/test-fabsf.c: Include <string.h>, minus-zero.h.
	(zero): New variable.
	(main): Add tests for signed zero.
	* modules/fabsf-tests (Files): Add tests/minus-zero.h.

2012-02-24  Bruno Haible  <bruno@clisp.org>

	atanl: Provide function definition on MSVC.
	* m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
	function pointer.
	* lib/math.in.h (atanl): Undefine if it does not exist as a function.

2012-02-24  Bruno Haible  <bruno@clisp.org>

	acosl: Provide function definition on MSVC.
	* m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
	function pointer.
	* lib/math.in.h (acosl): Undefine if it does not exist as a function.

2012-02-24  Bruno Haible  <bruno@clisp.org>

	asinl: Provide function definition on MSVC.
	* m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
	function pointer.
	* lib/math.in.h (asinl): Undefine if it does not exist as a function.

2012-02-24  Bruno Haible  <bruno@clisp.org>

	tanl: Provide function definition on MSVC.
	* m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
	function pointer.
	* lib/math.in.h (tanl): Undefine if it does not exist as a function.

2012-02-24  Bruno Haible  <bruno@clisp.org>

	cosl: Provide function definition on MSVC.
	* m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
	function pointer.
	* lib/math.in.h (cosl): Undefine if it does not exist as a function.

2012-02-24  Bruno Haible  <bruno@clisp.org>

	sinl: Provide function definition on MSVC.
	* m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
	function pointer.
	* lib/math.in.h (sinl): Undefine if it does not exist as a function.

2012-02-24  Bruno Haible  <bruno@clisp.org>

	logl: Provide function definition on MSVC.
	* m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
	function pointer.
	* lib/math.in.h (logl): Undefine if it does not exist as a function.

2012-02-24  Bruno Haible  <bruno@clisp.org>

	expl: Provide function definition on MSVC.
	* m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
	function pointer.
	* lib/math.in.h (expl): Undefine if it does not exist as a function.

2012-02-24  Bruno Haible  <bruno@clisp.org>

	sqrtl: Provide function definition on MSVC.
	* m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
	a function pointer.
	* lib/math.in.h (sqrtl): Undefine if it does not exist as a function.

2012-02-24  Bruno Haible  <bruno@clisp.org>

	ceill: Provide function definition on MSVC.
	* m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
	used as a function pointer.
	* lib/math.in.h (ceill): Undefine if it is not declared as a function.

2012-02-24  Bruno Haible  <bruno@clisp.org>

	floorl: Provide function definition on MSVC.
	* m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
	used as a function pointer.
	* lib/math.in.h (floorl): Undefine if it is not declared as a function.

2012-02-24  Bruno Haible  <bruno@clisp.org>

	ceilf: Provide function definition on MSVC.
	* m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
	used as a function pointer.
	* lib/math.in.h (ceilf): Undefine if it is not declared as a function.

2012-02-24  Bruno Haible  <bruno@clisp.org>

	floorf: Provide function definition on MSVC.
	* m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
	used as a function pointer.
	* lib/math.in.h (floorf): Undefine if it is not declared as a function.

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.
	* lib/sethostname.c: Provide an alternate implementation for Windows
	platforms.
	* tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
	(main): Skip the test if sethostname() fails with EPERM. On Windows
	platforms, don't check the result of gethostname().

2011-12-04  Bruno Haible  <bruno@clisp.org>
	    Jim Meyering  <meyering@redhat.com>

	tests: Avoid spurious error message on platforms without mktemp program.
	* tests/init.sh (mktempd_): Run mktemp in a subcommand.

2011-12-04  Bruno Haible  <bruno@clisp.org>

	sethostname: Fix documentation.
	* doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
	"not fixed" section.

2011-12-03  Bruno Haible  <bruno@clisp.org>

	gnulib-tool: Verify that the License field is present and non-empty.
	* gnulib-tool (func_get_license_raw): New function, extracted from
	func_get_license.
	(func_get_license): Use it. Warn if the module is not a test module and
	has no license.
	Suggested by Jim Meyering.

2011-12-03  Bruno Haible  <bruno@clisp.org>

	sethostname tests: Fix link error on mingw.
	* tests/test-sethostname1.c: New file, extracted from
	tests/test-sethostname.c.
	* tests/test-sethostname2.c: New file, extracted from
	tests/test-sethostname.c.
	* tests/test-sethostname.c: Remove file.
	* modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
	tests/test-sethostname2.c. Remove tests/test-sethostname.c.
	(Depends-on): Add gethostname.
	(Makefile.am): Compile both test-sethostname1 and test-sethostname2.
	Link the latter with $(GETHOSTNAME_LIB).

	sethostname tests: Fix compilation error on mingw.
	* tests/test-sethostname.c: Don't include <sys/types.h>.
	(geteuid): Use a dummy value without uid_t.
	* modules/sethostname-tests (Depends-on): Remove sys_types.

	sethostname tests: Avoid a gcc warning.
	* tests/test-sethostname.c (main): Remove an unused variable.

	Tweak last commit.
	* modules/sethostname-tests (Files): Sort by decreasing importance.
	(configure.ac): Check for geteuid.
	* tests/test-sethostname.c (main): Emit error messages to stderr. Skip
	the test when there's nothing to test. Drop an unnecessary cast.
	Improve an error message. Verify that the final sethostname() call
	succeeds.

2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>

	Add a test suite for the sethostname module.
	* modules/sethostname-tests: New file.  A test program
	for the sethostname module.
	* tests/test-sethostname.c: Likewise.

2011-12-03  Bruno Haible  <bruno@clisp.org>

	Tweak last commit.
	* lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
	Fix preprocessor directives indentation. Fix typos.
	* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
	* modules/unistd (Makefile): Likewise.

2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>

	Integrate the sethostname module into unistd.
	* lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
	into the unistd.h header.
	* m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
	preprocessor directives.
	* modules/unistd: Setup the Makefile substitutions of the
	SETHOSTNAME preprocessor directives.

2011-12-03  Bruno Haible  <bruno@clisp.org>

	Tweak last commit.
	* lib/sethostname.c: Don't include <string.h>.
	(sethostname): No need to copy the argument string to the stack. Don't
	call clearerr. Preserve errno when fprintf failed.
	* m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
	Don't invoke AC_REPLACE_FUNCS.
	* modules/sethostname (Link): Remove empty section.
	* doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
	failure problem.

2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>

	New module 'sethostname'.
	* lib/sethostname.c (sethostname): New file.  Provide sethostname
	for systems that lack it.
	* m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
	sethostname declaration and function.
	* modules/sethostname: New file.  Define the sethostname module.

2011-12-03  Bruno Haible  <bruno@clisp.org>

	Tweak last commit.
	* m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.

2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>

	Split the HOST_NAME_MAX detection into a separate m4 macro.
	* m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
	macro so it can be used by the pending sethostname module.

2011-12-03  Bruno Haible  <bruno@clisp.org>

	Fix module descriptions syntax.
	* modules/argv-iter (License): Fix syntax.
	* modules/di-set (License): Likewise.
	* modules/ino-map (License): Likewise.
	Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.

2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>

	stdalign: port to Clang 3.0
	Problem reported by Simon Josefsson in
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
	* doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
	which has <stdalign.h> but which does not define alignof.
	* m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.

2011-12-01  Eric Blake  <eblake@redhat.com>

	mktempd: silence dd usage
	* build-aux/mktempd (rand_bytes): Silence dd.

2011-11-30  Simon Josefsson  <simon@josefsson.org>

	manywarnings: Don't mention gcc version in docstring.
	* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
	Jim Meyering <meyering@redhat.com>.

2011-11-30  Jim Meyering  <meyering@redhat.com>

	hash: mark a few floating point constants with "f" suffix
	* lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
	(DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
	floating point constants with "f", since they're destined to be
	saved/used as "float"s.

2011-11-29  Paolo Bonzini  <bonzini@gnu.org>

	float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
	* tests/test-float.c (test_long_double): Correct and re-enable the
	assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.

2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)

	Avoid subtracting two pointers that don't point into the same block.
	* lib/argp-help.c (hol_append): Reorder pointer subtractions so that
	only pointers into the same memory block are subtracted. We cannot
	assume that sizeof (ptrdiff_t) == sizeof (void *).

2011-11-29  Eric Blake  <eblake@redhat.com>

	maint.mk: add syntax check for use of compare from init.sh
	* top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
	moved here from coreutils.

	manywarnings: drop -Wunsuffixed-float-constants
	* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
	'1.0D', which is the only way to silence this warning for 'double'.

2011-11-29  Jim Meyering  <meyering@redhat.com>

	hash: mark compute_bucket_size with the pure attribute
	* lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.

	quotearg, propername: correct pragma guard expression
	* lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
	* lib/propername.c: Likewise.  Reported by Bernhard Voelker.

2011-11-28  Jim Meyering  <meyering@redhat.com>

	propername: do not mark proper_name with the const attribute
	* lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
	since it examines data pointed to by its parameter.
	* lib/propername.c (proper_name): Instead, add a pragma to suppress
	the suggestion from -Wsuggest-attribute=const.

	propername: mark one more function as const
	* lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.

2011-11-27  Jim Meyering  <meyering@redhat.com>

	mark functions with const and pure attributes

	Mark functions per suggestions from gcc-4.6 when using these options:
	-Wsuggest-attribute=pure -Wsuggest-attribute=const.
	Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
	Follow these guidelines: when possible, apply the attribute to
	an extern declaration, not to its definition.  Apply it to the
	definition only when the definition is static.
	* lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
	* lib/argv-iter.h (argv_iter_n_args): Likewise.
	* lib/base64.h (isbase64): Likewise.
	* lib/basename-lgpl.c (last_component, base_len): Likewise.
	* lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
	(c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
	(c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
	(c_tolower, c_toupper): Likewise.
	* lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
	* lib/chdir-long.c (find_non_slash): Likewise.
	* lib/dirname.h (base_len, dir_len, last_component): Likewise.
	* lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
	* lib/file-type.h (file_type): Likewise.
	* lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
	* lib/filevercmp.c (verrevcmp): Likewise.
	* lib/freadahead.h (freadahead): Likewise.
	* lib/fts.c (fts_maxarglen): Likewise.
	* lib/hash-pjw.h (hash_pjw): Likewise.
	* lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
	* lib/hash.c (is_prime, next_prime): Likewise.
	* lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
	(hash_get_n_entries, hash_get_max_bucket_length): Likewise.
	(hash_table_ok, hash_get_first, hash_string): Likewise.
	(compute_bucket_size): Likewise.
	* lib/i-ring.h (i_ring_empty): Likewise.
	* lib/isnan.c (isnanl): Likewise.
	* lib/math.h (isnanl, rpl_isnanl): Likewise.
	* lib/memcasecmp.h (memcasecmp): Likewise.
	* lib/memchr2.h (memchr2): Likewise.
	* lib/memcmp2.h (memcmp2): Likewise.
	* lib/parse-datetime.y (lookup_zone): Likewise.
	* lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
	[!WINDOWS_SOCKETS]: Likewise.
	* lib/strnlen1.h (strnlen1): Likewise.
	* lib/uniwidth.in.h (uc_width): Likewise.
	* lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
	gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
	(quoting_options_from_style): Add a comment.
	* lib/propername.h (proper_name): Add a comment.

2011-11-27  Bruno Haible  <bruno@clisp.org>

	Remove unused macros from !_LIBC code in glibc-borrowed files.
	* lib/fnmatch.c (STRCOLL): Remove macro.
	* lib/fnmatch_loop.c (STRCOLL): Remove undef.
	* lib/glob.c (__stat, __readdir64): Remove macros.
	* lib/tempname.c (__open64, __xstat64): Remove macros.
	Suggested by Paul Eggert.

2011-11-27  Bruno Haible  <bruno@clisp.org>

	getcwd: Fix link error on MSVC 9.
	* modules/getcwd (Depends-on): Add readdir, rewinddir.

2011-11-27  Bruno Haible  <bruno@clisp.org>

	Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
	* m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
	HAVE_OPENDIR is 0.
	* m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
	HAVE_CLOSEDIR is 0.
	* m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
	is 0.
	* m4/dup3.m4 (gl_FUNC_DUP3): Update comments.

2011-11-27  Bruno Haible  <bruno@clisp.org>

	getcwd: Fix bug from 2011-08-17.
	* m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
	platforms that need it.
	* m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
	code of 4 to be a failure, not a success. This ensures that
	REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.

2011-11-27  Bruno Haible  <bruno@clisp.org>

	binary-io tests: Avoid test failure on mingw when libtool is used.
	* tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
	Don't verify the size of t-bin-out1.tmp here.
	* tests/test-binary-io.sh: Verify it here.
	Reported by Simon Josefsson.

2011-11-26  Bruno Haible  <bruno@clisp.org>

	Fix conflict between two instantiations of module 'unistd'.
	* gnulib-tool (func_emit_autoconf_snippet): Substitute
	${include_guard_prefix} also in the autoconf snippet.
	* m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
	* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
	GNULIB_UNISTD_H_GETOPT.
	* modules/getopt-posix (configure.ac): Set the
	GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
	* modules/getopt-gnu (configure.ac): Likewise.
	* modules/unistd (Makefile.am): Change the substitution value of
	GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
	Reported by Simon Josefsson.

2011-11-25  Bruno Haible  <bruno@clisp.org>

	pagealign_alloc: Doc and comments.
	* doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
	module.
	* lib/pagealign_alloc.c (pagealign_alloc): Add comment.

2011-11-25  Jim Meyering  <meyering@redhat.com>

	test-update-copyright.sh: avoid false-positive failure
	* tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
	around false positive failure on Cygwin/Windows.  The latter was
	matching erroneously-created files with names like
	update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.

2011-11-25  Simon Josefsson  <simon@josefsson.org>

	valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
	* m4/valgrind-tests.m4: Check that the parameters that will be
	used works, not just a subset of them.  Reported by Bruno Haible
	<bruno@clisp.org>.

2011-11-24  Jim Meyering  <meyering@redhat.com>

	test-stdalign.c: comment out long double tests
	* tests/test-stdalign.c: Don't try to reduce alignment of long double
	variables.  That provokes errors like this from gcc-4.7.0 20111124:
	error: '_Alignas' specifiers cannot reduce alignment of \
	'static_longdouble_alignas'.

2011-11-22  Jim Meyering  <meyering@redhat.com>

	init.sh: make "compare /dev/null FILE" output more readable
	* tests/init.sh (compare_): Document the preferred order of arguments.
	(emit_diff_u_header_): New function.
	(compare_dev_null_): Emit a simulated diff, rather than just the
	contents of the unexpected file.  Suggestion from Bruno Haible.

2011-11-21  Jim Meyering  <meyering@redhat.com>
	    Eric Blake  <eblake@redhat.com>

	init.sh: work around OSF/1 5.1's mishandling of /dev/null
	* tests/init.sh: Make our compare function slightly more portable.
	Reported by Bruno Haible in
	http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020

2011-11-21  Simon Josefsson  <simon@josefsson.org>

	* m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
	before using it, in code that ends up in config.h.

2011-11-20  Bruno Haible  <bruno@clisp.org>

	getcwd: Work around getcwd bug on AIX 5..7.
	* m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
	AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
	Use a different value for gl_cv_func_getcwd_path_max. Move the
	definition of HAVE_PARTLY_WORKING_GETCWD from here...
	* m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
	gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
	Define HAVE_MINIMALLY_WORKING_GETCWD.
	* lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
	where it is not even minimally working, that is, on AIX.
	* tests/test-getcwd.c (test_long_name): Distinguish the same cases as
	m4/getcwd-path-max.m4.
	(main): Update exit code computation.
	* doc/posix-functions/getcwd.texi: Mention list of platforms where
	getcwd does not handle long file names.

2011-11-20  Bruno Haible  <bruno@clisp.org>

	getcwd: Fix bug from 2009-09-10.
	* m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
	like "no".

2011-11-20  Simon Josefsson  <simon@josefsson.org>

	* m4/manywarnings.m4: Add more warnings from gcc 4.6.2.

2011-11-20  Bruno Haible  <bruno@clisp.org>

	fma tests: Avoid shadowing local variables.
	* tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
	expected.

2011-11-20  Bruno Haible  <bruno@clisp.org>

	copysignf tests: Fix.
	* tests/test-copysignf.c: Fix signature check.

2011-11-20  Bruno Haible  <bruno@clisp.org>

	fma: Remove unused code.
	* lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
	unused macros.

2011-11-20  Bruno Haible  <bruno@clisp.org>

	sethostname: Fix doc about AIX.
	* doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
	sethostname; it has it.

	sethostname: Mention more portability problems.
	* doc/glibc-functions/sethostname.texi: Mention the missing declaration
	problem.
	Reported by Ben Walton <bwalton@artsci.utoronto.ca>.

2011-11-19  Bruno Haible  <bruno@clisp.org>

	Depend on module fcntl-h when AT_FDCWD is used.
	* modules/utimens (Depends-on): Add fcntl-h.
	* modules/areadlinkat (Depends-on): Likewise.
	* modules/areadlinkat-with-size (Depends-on): Likewise.
	* modules/faccessat (Depends-on): Likewise.
	* modules/fchmodat (Depends-on): Likewise.
	* modules/fchownat (Depends-on): Likewise.
	* modules/getcwd (Depends-on): Likewise.
	* modules/mkdirat (Depends-on): Likewise.
	* modules/mkfifoat (Depends-on): Likewise.
	* modules/readlinkat (Depends-on): Likewise.
	* modules/symlinkat (Depends-on): Likewise.
	* modules/dup2-tests (Depends-on): Likewise.
	* modules/fdutimensat-tests (Depends-on): Likewise.
	* modules/futimens-tests (Depends-on): Likewise.

2011-11-19  Bruno Haible  <bruno@clisp.org>

	euidaccess: Update a comment.
	* lib/euidaccess.c: Update comment about platforms with faccessat.

2011-11-19  Bruno Haible  <bruno@clisp.org>

	openat: Fix file list.
	* modules/openat (Files): Remove lib/at-func.c.

2011-11-19  Bruno Haible  <bruno@clisp.org>

	fstatat: Simplify.
	* lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
	gnulib should define rpl_fstatat, there is a
	"#define fstatat rpl_fstatat" in <sys/stat.h>.

2011-11-19  Bruno Haible  <bruno@clisp.org>

	Ensure 'inline' can be used in tests/test-utimens-common.h.
	* modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
	* modules/futimens-tests (configure.ac): Likewise.
	* modules/utimens-tests (configure.ac): Likewise.
	* modules/utimensat-tests (configure.ac): Likewise.

2011-11-19  Simon Josefsson  <simon@josefsson.org>

	* lib/hash.c (hash_insert): Use hash_insert_if_absent,
	not hash_insert0.
	(hash_insert_if_absent): Doc fix.

2011-11-19  Simon Josefsson  <simon@josefsson.org>

	* m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.

2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>

	test-getcwd: disambiguate exit status
	* tests/test-getcwd.c (test_long_name): Return 0..7.
	(main): Exit with an unambiguous exit status.  The old
	code yielded a mysterious mixture of two failure codes.

	fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
	* lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
	HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
	rpl_fstatat or fstatat.  This should fix the other problem
	reported by Kai Habel in
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
	A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
	and I reproduced it on a Solaris 8 host we still have in production.

2011-11-18  Jim Meyering  <meyering@redhat.com>

	hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
	* lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
	Add a sentence to the comment.
	(hash_insert0): New function that simply calls hash_insert_if_absent.
	* lib/hash.h (hash_insert_if_absent): Declare it.
	(hash_insert0): Add deprecation attribute.
	(_GL_ATTRIBUTE_DEPRECATED): Define.
	* lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
	not hash_insert0.
	* NEWS: Mention it, even though it's not really an incompatible change.

2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)

	openat: avoid compilation failure due to lack of <errno.h> inclusion
	* lib/openat.c: Include <errno.h>.

2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>

	* modules/getcwd (Depends-on): Add fdopendir.
	This fixes one of the two problems reported by Kai Habel in
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.

	modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
	stdalign problem reported by Ian Beckwith in
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
	* modules/crypto/gc-arcfour (Depends-on):
	Depend conditionally on crypto/arcfour.
	* modules/crypto/gc-arctwo (Depends-on):
	Depend conditionally on crypto/arctwo.
	* modules/crypto/gc-des (Depends-on):
	Depend conditionally on crypto/des.
	* modules/crypto/gc-hmac-md5 (Depends-on):
	Depend conditionally on crypto/hmac-md5.
	* modules/crypto/gc-hmac-sha1 (Depends-on):
	Depend conditionally on crypto/hmac-sha1.
	* modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
	* modules/crypto/gc-md4 (Depends-on):
	Depend conditionally on crypto/md4.
	* modules/crypto/gc-md5 (Depends-on):
	Depend conditionally on crypto/md5.
	* modules/crypto/gc-rijndael (Depends-on):
	Depend conditionally on crypto/rijndael.
	* modules/crypto/gc-sha1 (Depends-on):
	Depend conditionally on crypto/sha1.
	* modules/crypto/gc-arcfour:
	* modules/crypto/gc-arctwo:
	* modules/crypto/gc-des:
	* modules/crypto/gc-hmac-md5:
	* modules/crypto/gc-hmac-sha1:
	* modules/crypto/gc-md2:
	* modules/crypto/gc-md4:
	* modules/crypto/gc-md5:
	* modules/crypto/gc-rijndael:
	* modules/crypto/gc-sha1:
	(Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
	now that the conditional dependencies do the work for us.

2011-11-17  Jim Meyering  <meyering@redhat.com>

	tests: factor st_ctime-comparison out of two headers
	* tests/test-utimens-common.h (ctime_compare): Define.
	* tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
	* tests/test-lutimens.h (test_lutimens): Likewise.
	* tests/test-utimens.h (test_utimens): Likewise.

	test-getcwd: don't leave behind a confdir3/ directory upon interrupt
	Invoke the test program via an init.sh-using wrapper.
	* tests/test-getcwd.sh: New file.
	* modules/getcwd-tests (Files): Add it.
	(Makefile.am) [TESTS]: Invoke the shell script wrapper.

2011-11-01  Gary V. Vaughan  <gary@gnu.org>

	gitlog-to-changelog: support multi-author commits.
	The FSF cares about keeping track of all authors of patches to its
	projects, but Git doesn't provide obvious support for multi-author
	changesets. Consensus seems to be forming around the use of extra
	Signed-off-by inspired lines in the log message formatted as
	`Co-authored-by: A U Thor <email@example.com>' for round-tripping
	multi-author commits between version control systems.
	* gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
	log message and output in standard ChangeLog multi-author format.
	Reported by Peter Rosin <peda@lysator.liu.se>

2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
	    Bruno Haible  <bruno@clisp.org>

	Fix some modules' file list.
	* modules/fstatat (Files): Add m4/lstat.m4.
	* modules/openat (Files): Likewise.
	* modules/unlinkat (Files): Likewise.

2011-11-15  Gary V. Vaughan  <gary@gnu.org>

	maint.mk: fix tight-scope.mk generation in VPATH builds.
	* top/maint.mk (tight-scope.mk): Make sure to prefix file
	reference with $(srcdir) so that the file is found correctly even
	when running `make syntax-check' in a VPATH build.

2011-11-13  Bruno Haible  <bruno@clisp.org>
	    Jim Meyering  <meyering@redhat.com>

	Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
	* tests/init.sh (compare): Remove "No differences encountered" or
	synonymous output from the 'diff' program.

2011-11-13  Bruno Haible  <bruno@clisp.org>

	Makefile: Tweak indentation.
	* Makefile: Use tab as first character in every line that contains rule
	commands.

2011-11-13  Bruno Haible  <bruno@clisp.org>

	Syntax check for copyright statements.
	* check-copyright: New file.
	* Makefile (sc_check_copyright): New rule.

2011-11-13  Simon Josefsson  <simon@josefsson.org>

	* build-aux/git-version-gen: Add --prefix to configure the tag
	match string.

2011-11-13  Simon Josefsson  <simon@josefsson.org>

	* build-aux/git-version-gen: Add --help and --version.

2011-11-12  Jim Meyering  <meyering@redhat.com>

	revamp the other test-exclude?.sh scripts to use init.sh, too
	* tests/test-exclude1.sh: Use init.sh.
	* tests/test-exclude2.sh: Likewise.
	* tests/test-exclude3.sh: Likewise.
	* tests/test-exclude4.sh: Likewise.
	* tests/test-exclude5.sh: Likewise.
	* tests/test-exclude6.sh: Likewise.
	* tests/test-exclude7.sh: Likewise.
	* tests/test-exclude8.sh: Likewise.
	* modules/exclude-tests (Files): List init.sh.

	test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
	These shell scripts ignored failure of the binary test-exclude,
	so making the latter return 77 didn't cause them to be skipped.
	* tests/test-exclude5.sh: Exit with test-exclude's error status
	when that program fails.  Revamp to use init.sh.
	* tests/test-exclude2.sh: Likewise.

	test-exclude: fix a typo
	* tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".

2011-11-11  Bruno Haible  <bruno@clisp.org>

	obstack: Fix compilation error on MSVC 9.
	* lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.

2011-11-11  Jim Meyering  <meyering@redhat.com>

	test-exclude: skip tests rather than failing on deficient systems
	* tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
	and FNM_LEADING_DIR on systems that lack the definitions.  This affects
	at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
	http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950

2011-11-10  Bruno Haible  <bruno@clisp.org>

	ptsname_r test: Avoid gcc warning on glibc systems.
	* tests/test-ptsname_r.c (null_ptr): New function.
	(test_errors): Use it.

2011-11-10  Bruno Haible  <bruno@clisp.org>

	ptsname_r: Avoid compilation error on OSF/1 5.1.
	* lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
	* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
	* m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
	function is not declared or incompatibly declared.
	* modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
	* modules/ptsname_r (Depends-on, configure.ac): Update.
	* doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.

2011-11-10  Bruno Haible  <bruno@clisp.org>

	fstatat: Make cross-compilation guess succeed everywhere except on AIX.
	* m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
	When cross-compiling, guess yes on all platforms except AIX.
	Reported by Ludovic Courtès <ludo@gnu.org>.

2011-11-09  Bruno Haible  <bruno@clisp.org>

	ptsname_r tests: Fix bugs.
	* tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
	Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.

2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>

	fstatat: work with cross-compilation
	Problem reported by Ludovic Courtès in
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
	* m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
	"cross-compiling" and assume the bug is present.  Replace
	FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
	an inverted sense, to be more conservative about our assumptions.
	* lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.

2011-11-09  Bruno Haible  <bruno@clisp.org>

	Improve MODULES.html output.
	* modules/mkfifoat (Description): Use the word "function".
	* modules/readlinkat (Description): Likewise.
	* modules/symlinkat (Description): Likewise.

2011-11-09  Eric Blake  <eblake@redhat.com>

	ptsname_r-tests: new test module
	* modules/ptsname_r-tests: New module.
	* tests/test-ptsname_r.c: New file.

	ptsname_r: new module
	* modules/ptsname_r: New module.
	* m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
	* lib/ptsname.c (__ptsname_r): Split...
	* lib/ptsname_r.c: ...into new file.
	* m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
	(gl_STDLIB_H_DEFAULTS): Set witness defaults.
	* modules/stdlib (Makefile.am): Substitute witnesses.
	* lib/stdlib.in.h (ptsname_r): Declare it.
	* doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
	* MODULES.html.sh (Misc): Likewise.
	* modules/ptsname (Depends-on): Alter dependency.
	* doc/posix-functions/ptsname.texi (ptsname): Mention new module.

2011-11-09  Jim Meyering  <meyering@redhat.com>

	announce-gen: be more concise when there's only one URL+tarball
	* build-aux/announce-gen (get_tool_versions): When you distribute
	only one type of tarball, combine the first two "Here are..."
	sections and make the key-checking grammar independent of
	how many tarballs there are.

2011-11-09  Eric Blake  <eblake@redhat.com>

	openpty: provide a stub on mingw
	* lib/pty.in.h (includes): Provide forward declarations.
	* lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.

	raise: fix mingw handling of SIGPIPE
	* lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.

2011-11-08  Bruno Haible  <bruno@clisp.org>

	More conditional dependencies.
	* modules/faccessat (Depends-on): Add conditions.
	* modules/fchmodat (Depends-on): Likewise.
	* modules/fchownat (Depends-on): Likewise.
	* modules/fstatat (Depends-on): Likewise.
	* modules/mkfifoat (Depends-on): Likewise.
	* modules/readlinkat (Depends-on): Likewise.
	* modules/symlinkat (Depends-on): Likewise.
	* modules/unlinkat (Depends-on): Likewise.
	* modules/utimensat (Depends-on): Likewise.
	* modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
	* modules/linkat (Depends-on): Refine the conditions.
	* modules/renameat (Depends-on): Likewise.

2011-11-08  Bruno Haible  <bruno@clisp.org>

	faccessat: Move AC_LIBOBJ invocation to module description.
	* m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
	(gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
	invocation from here...
	* modules/faccessat (configure.ac): ... to here. Invoke
	gl_PREREQ_FACCESSAT.

2011-11-08  Bruno Haible  <bruno@clisp.org>

	faccessat: Simplify autoconf macro.
	* m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
	gl_FUNC_EUIDACCESS.

2011-11-08  Bruno Haible  <bruno@clisp.org>

	renameat: Fix dependencies.
	* modules/renameat (Depends-on): Add stdbool.

2011-11-08  Bruno Haible  <bruno@clisp.org>

	mkfifoat: Fix module description.
	* modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
	not gl_UNISTD_MODULE_INDICATOR.

2011-11-08  Bruno Haible  <bruno@clisp.org>

	fstatat: Remove unused dependency.
	* modules/fstatat (Depends-on): Remove fstat.

2011-11-08  Simon Josefsson  <simon@josefsson.org>

	GNUmakefile: behave when Makefile is missing.
	* top/GNUmakefile: Always initialize _build-aux and _autoreconf.

2011-11-08  Bruno Haible  <bruno@clisp.org>

	openat: Conditionalize dependencies.
	* lib/openat.c: Reduce the scope of some #includes.
	* modules/openat (Depends-on): Add conditions.

2011-11-07  Jim Meyering  <meyering@redhat.com>

	maint.mk: extract GPG key ID without using a temporary file
	* top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
	without using a temporary file.  Based on a suggestion from Werner Koch
	in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496

2011-11-07  Eric Blake  <eblake@redhat.com>

	grantpt: fix typo
	* lib/stdlib.in.h (grantpt): Check correct function.

	maint.mk: silence new syntax check
	* top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.

2011-11-06  Bruno Haible  <bruno@clisp.org>

	Doc about floating-point and math API.
	* doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
	* doc/posix-headers/math.texi: Mention problem with math_errhandling.

2011-11-06  Bruno Haible  <bruno@clisp.org>

	stdalign tests: Skip the test when compiled by Sun C.
	* tests/test-stdalign.c (main): Skip the test on Sun C.

2011-11-06  Bruno Haible  <bruno@clisp.org>

	ansi-c++-opt: Complete the 2011-06-05 change.
	* m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
	does not support namespaces, set the variable to "no", not to ":".

2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>

	* doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.

2011-11-06  Bruno Haible  <bruno@clisp.org>

	copysignl: Fix result for zero argument on HP-UX 11 with HP C.
	* lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
	(minus_zerol) [HP-UX]: New macro.
	(unary_minus) [HP-UX]: New function.
	(copysignl) [HP-UX]: Use unary_minus function.

2011-11-06  Bruno Haible  <bruno@clisp.org>

	ldexp, ldexpf, ldexpl: Enhance tests.
	* tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
	and tests/test-ldexpl.c.
	* tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
	LDEXP, MIN_EXP, MAX_EXP): New macros.
	Include test-ldexp.h.
	(main): Just call test_function.
	* tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
	infinity.h, nan.h.
	(DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
	MAX_EXP): New macros.
	Include test-ldexp.h.
	(x, y): Remove variables.
	(main): Just call test_function.
	* tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
	infinity.h, nan.h.
	(DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
	MAX_EXP): New macros.
	Include test-ldexp.h.
	(x, y): Remove variables.
	(main): Just call test_function.
	* modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
	* modules/ldexp-tests (Files): Add tests/test-ldexp.h,
	tests/minus-zero.h, tests/infinity.h, tests/nan.h.
	(Depends-on): Add isnand-nolibm, signbit, float.
	* modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
	tests/minus-zero.h, tests/infinity.h, tests/nan.h.
	(Depends-on): Add isnanf-nolibm, signbit, float.

2011-11-06  Bruno Haible  <bruno@clisp.org>

	math tests: Cosmetics.
	* tests/test-math-c++.cc: Reorder declarations.

2011-11-05  Bruno Haible  <bruno@clisp.org>

	fma*: Simplify test.
	* tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
	(test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.

	Tests for module 'fmal'.
	* modules/fmal-tests: New file.
	* tests/test-fmal1.c: New file.
	* tests/test-fmal2.c: New file.

	New module 'fmal'.
	* lib/math.in.h (fmal): New declaration.
	* lib/fmal.c: New file.
	* m4/fmal.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
	* modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
	REPLACE_FMAL.
	* modules/fmal: New file.
	* doc/posix-functions/fmal.texi: Mention the new module and the various
	bugs.

	Tests for module 'fmaf'.
	* modules/fmaf-tests: New file.
	* tests/test-fmaf1.c: New file.
	* tests/test-fmaf2.c: New file.

	New module 'fmaf'.
	* lib/math.in.h (fmaf): New declaration.
	* lib/fmaf.c: New file.
	* m4/fmaf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
	* modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
	REPLACE_FMAF.
	* modules/fmaf: New file.
	* doc/posix-functions/fmaf.texi: Mention the new module and the various
	bugs.

	Tests for module 'fma'.
	* modules/fma-tests: New file.
	* tests/test-fma1.c: New file.
	* tests/test-fma1.h: New file.
	* tests/test-fma2.c: New file.
	* tests/test-fma2.h: New file.

	New module 'fma'.
	* lib/math.in.h (fma): New declaration.
	* lib/fma.c: New file.
	* m4/fma.m4: New file.
	* m4/fegetround.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
	* modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
	REPLACE_FMA.
	* modules/fma: New file.
	* doc/posix-functions/fma.texi: Mention the new module and the various
	bugs.

	Extend gl_MATHFUNC.
	* m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
	Support 'void' as argument type.
	* m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.

2011-11-05  Jim Meyering  <meyering@redhat.com>

	maint.mk: also prohibit inclusion of dirent.h without use
	* top/maint.mk (sc_prohibit_dirent_without_use): New rule.

2011-11-05  Bruno Haible  <bruno@clisp.org>

	ldexpl tests: Avoid test failure on MSVC 9.
	* tests/test-ldexpl.c (main): Use a temporary variable for the expected
	value. Needed in order to enforce the conversion from a value greater
	than LDBL_MAX to Infinity.

2011-11-05  Bruno Haible  <bruno@clisp.org>

	New modules 'at-internal', 'openat-h', split off from module 'openat'.
	* modules/at-internal: New file, extracted from modules/openat.
	* modules/openat-h: New file.
	* m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
	invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
	* modules/openat (Description): Add reference to POSIX function.
	(Files): Remove lib/openat.h, lib/openat-proc.c.
	(Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
	intprops, unistd.
	(configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
	gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
	gl_FCNTL_MODULE_INDICATOR.
	(Include): Remove unistd.h, openat.h.
	* modules/areadlinkat (Files): Add lib/at-func.c.
	(Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
	openat-die, openat-h, save-cwd.
	* modules/areadlinkat-with-size (Files): Add lib/at-func.c.
	(Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
	openat-die, openat-h, save-cwd, unistd.
	* modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
	(Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
	openat-h, save-cwd. Remove fcntl-h, openat.
	* modules/fchmodat (Files): Remove lib/openat.h.
	(Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
	openat, stdbool, unistd.
	* modules/fchownat (Files): Remove lib/openat.h.
	(Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
	openat, stdbool, sys_stat.
	* modules/fdopendir (Files): Remove lib/openat-priv.h,
	lib/openat-proc.c.
	(Depends-on): Add at-internal.
	(condigure.ac): Remove AC_LIBOBJ of openat-proc.
	* modules/fstatat (Files): Remove lib/openat.h.
	(Depends-on): Add at-internal, openat-h. Remove dirent, openat,
	stdbool, unistd.
	* modules/fts (Depends-on): Add openat-h.
	* modules/linkat (Depends-on): Add at-internal, openat-h. Remove
	openat.
	* modules/mkdirat (Files): Remove lib/openat.h.
	(Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
	openat, stdbool, sys_stat.
	* modules/mkfifoat (Files): Add lib/at-func.c.
	(Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
	openat-h, save-cwd. Remove fcntl-h, openat.
	* modules/openat-die (Depends-on): Add openat-h. Remove openat.
	* modules/readlinkat (Files): Add lib/at-func.c.
	(Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
	openat-h, save-cwd. Remove fcntl-h, openat.
	* modules/renameat (Depends-on): Add at-internal, openat-h. Remove
	openat.
	* modules/selinux-at (Files): Add lib/at-func.c.
	(Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
	fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
	* modules/symlinkat (Files): Add lib/at-func.c.
	(Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
	openat-h, save-cwd. Remove fcntl-h, openat.
	* modules/unlinkat (Files): Remove lib/openat.h.
	(Depends-on): Add at-internal, openat-h. Remove dirent, openat,
	stdbool.
	* modules/utimensat (Files): Add lib/at-func.c.
	(Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
	openat-die, openat-h, save-cwd.
	* modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
	* modules/fdutimensat-tests (Depends-on): Add openat.
	* modules/fstatat-tests (Depends-on): Add openat-h.
	* modules/readlinkat-tests (Depends-on): Add openat.
	* modules/symlinkat-tests (Depends-on): Add openat.

2011-11-05  Bruno Haible  <bruno@clisp.org>

	openat: Include <stdbool.h>.
	* lib/openat.c: Include <stdbool.h>.

2011-11-04  Bruno Haible  <bruno@clisp.org>

	fchownat, renameat, unlinkat: Fix dependencies.
	* modules/fchownat (Depends-on): Add fstatat.
	* modules/renameat (Depends-on): Likewise.
	* modules/unlinkat (Depends-on): Likewise.

2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>

	openat: remove direct dependency on dirent
	* lib/openat.h: Don't include <dirent.h>; it's no longer needed,
	and hasn't been needed ever since fdopendir was split into its own
	module on 2009-08-31.
	* modules/openat (Depends-on): Remove dirent.

2011-11-04  Bruno Haible  <bruno@clisp.org>

	renameat: Optimize code size.
	* modules/renameat (configure.ac): Don't compile at-func2.c if
	REPLACE_RENAMEAT is 1.

2011-11-04  Bruno Haible  <bruno@clisp.org>

	openat tests: Fix file list.
	* modules/openat-tests (Files): Add tests/test-open.h.

2011-11-04  Bruno Haible  <bruno@clisp.org>

	openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
	* modules/fchmodat (Depends-on): Add openat-die.
	* modules/fchownat (Depends-on): Likewise.
	* modules/linkat (Depends-on): Likewise.
	* modules/renameat (Depends-on): Likewise.
	* modules/openat (Depends-on): Add dirent.

2011-11-04  Jim Meyering  <meyering@redhat.com>

	at-func*.c: fix comments
	* lib/at-func2.c: Correct/improve first-line comment.
	* lib/at-func.c: Correct grammar in first-line comment.

2011-11-04  Bruno Haible  <bruno@clisp.org>

	New module 'mkdirat', split off from module 'openat'.
	* m4/mkdirat.m4: New file. extracted from m4/openat.m4.
	* m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
	Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
	* modules/mkdirat: New file, extracted from modules/openat.
	* modules/openat (Files): Remove lib/mkdirat.c.
	(Depends-on): Remove mkdir.
	(configure.ac): Remove AC_LIBOBJ of mkdirat.
	(Include): Remove <sys/stat.h>.
	* modules/mkdirat-tests: New file, extracted from modules/openat-tests.
	* modules/openat-tests (Files): Remove tests/test-mkdirat.c,
	tests/test-mkdir.h.
	(Depends-on): Remove ignore-value.
	(Makefile.am): Remove rules for test-mkdirat.
	* doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
	of module 'openat'.
	* NEWS: Mention the change.

2011-11-04  Bruno Haible  <bruno@clisp.org>

	closedir: Avoid warning on mingw.
	* lib/closedir.c: Include <unistd.h>.

2011-11-04  Bruno Haible  <bruno@clisp.org>

	New module 'fstatat', split off from module 'openat'.
	* lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
	defined.
	* m4/fstatat.m4: New file. extracted from m4/openat.m4.
	* m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
	gl_FUNC_FSTATAT.
	(gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
	* modules/fstatat: New file, extracted from modules/openat.
	* modules/openat (Files): Remove lib/fstatat.c.
	(Depends-on): Remove lstat.
	(configure.ac): Remove AC_LIBOBJ of fstatat.
	* modules/fstatat-tests: New file, extracted from modules/openat-tests.
	* modules/openat-tests (Files): Remove tests/test-fstatat.c,
	tests/test-lstat.h, tests/test-stat.h.
	(Depends-on): Remove getcwd-lgpl.
	(Makefile.am): Remove rules for test-fstatat.
	* doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
	of module 'openat'.
	* NEWS: Mention the change.
	* modules/getcwd (Depends-on): Add fstatat.
	* modules/linkat (Depends-on): Likewise.
	* modules/mkfifoat-tests (Depends-on): Likewise.
	* modules/utimensat (Depends-on): Add fstatat. Remove openat.

2011-11-03  Bruno Haible  <bruno@clisp.org>

	New module 'unlinkat', split off from module 'openat'.
	* m4/unlinkat.m4: New file, extracted from m4/openat.m4.
	* m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
	REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
	* modules/unlinkat: New file, extracted from modules/openat. Correct
	the dependency conditions.
	* modules/openat (Files): Remove lib/unlinkat.c.
	(Depends-on): Remove rmdir, unlink.
	(configure.ac): Remove AC_LIBOBJ of unlinkat.
	* modules/unlinkat-tests: New file, extracted from modules/openat-tests.
	* modules/openat-tests (Files): Remove tests/test-unlinkat.c,
	tests/test-rmdir.h, tests/test-unlink.h.
	(Depends-on): Remove unlinkdir.
	(Makefile.am): Remove rules for test-unlinkat.
	* doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
	of module 'openat'.
	* NEWS: Mention the change.
	* modules/linkat-tests (Depends-on): Add unlinkat.
	* modules/mkfifoat-tests (Depends-on): Likewise.
	* modules/readlinkat-tests (Depends-on): Likewise.

2011-11-02  Bruno Haible  <bruno@clisp.org>

	New module 'fchmodat', split off from module 'openat'.
	* lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
	defined.
	* m4/fchmodat.m4: New file, extracted from m4/openat.m4.
	* m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
	for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
	* modules/fchmodat: New file, extracted from modules/openat.
	* modules/openat (Files): Remove lib/fchmodat.c.
	(configure.ac): Remove AC_LIBOBJ of fchmodat.
	* modules/fchmodat-tests: New file, extracted from modules/openat-tests.
	* modules/openat-tests (Files): Remove tests/test-fchmodat.c.
	(Makefile.am): Remove rules for test-fchmodat.
	* doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
	of module 'openat'.
	* NEWS: Mention the change.

2011-11-02  Jim Meyering  <meyering@redhat.com>

	putenv: indent #definition of "environ" to placate cppi
	* lib/putenv.c (environ): Make indentation reflect cpp nesting.

	gitlog-to-changelog: provide a ChangeLog-repair mechanism
	Git logs are often treated as immutable, because editing them
	changes the SHA1 checksums of all descendants.  Thus, errors in
	git logs tend to stay there forever.  However, when we generate
	a ChangeLog file -- typically for distribution -- from that git log,
	we can actually make corrections in the generated file.  The key
	lies in recording in machine-readable/applicable form the desired
	corrections.  See --help for description and an example.
	* build-aux/gitlog-to-changelog (parse_amend_file): New function.
	(usage): Describe it; alphabetize option descriptions.
	(main): Honor the new option, carefully.

2011-11-01  Jim Meyering  <meyering@redhat.com>

	gitlog-to-changelog: avoid an infloop
	* build-aux/gitlog-to-changelog: Don't infloop for a commit log
	that ends up being empty.

2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>

	* MODULES.html.sh: Fix sed-script shell quoting and locale issues.
	(func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
	bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
	contains (possibly-quoted) backslashes.  This should avoid
	all-too-common shell bugs if COMPLICATED contains backslashes in
	the "wrong" places.  Reported by David Evans in
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
	When 'sed' uses character ranges like A-Z, invoke it in the C locale,
	because we want ASCII ranges.  Is there some reason we don't use
	the C locale everywhere in this script?
	(func_module, top level): Avoid unwanted pathname expansion when
	$repo_url_prefix or $repo_url_suffix_repl contain shell
	metacharacters like '?' and '*'.

2011-11-01  Bruno Haible  <bruno@clisp.org>

	fchownat: Improve description.
	* modules/fchownat (Description): Add link to function.

2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>

	* tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
	mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
	* doc/posix-headers/stdalign.texi (stdalign.h): Document this.

2011-11-01  Bruno Haible  <bruno@clisp.org>

	alignof: Avoid collision with stdalign module.
	* lib/alignof.h (alignof): Remove macro.
	* NEWS: Mention the change.
	Reported by Paul Eggert.

2011-11-01  Bruno Haible  <bruno@clisp.org>

	New module 'fchownat', split off from module 'openat'.
	* lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
	defined.
	* m4/fchownat.m4: New file, extracted from m4/openat.m4.
	* m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
	invoke gl_FUNC_FCHOWNAT.
	(gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
	gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
	* modules/fchownat: New file, extracted from modules/openat.
	* modules/openat (Files): Remove lib/fchownat.c.
	(Depends-on): Remove lchown.
	(configure.ac): Remove AC_LIBOBJ of fchownat.
	* modules/fchownat-tests: New file, extracted from modules/openat-tests.
	* modules/openat-tests (Files): Remove tests/test-fchownat.c,
	tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
	(Depends-on): Remove mgetgroups, usleep, stat-time.
	(configure.ac): Remove test for getegid.
	(Makefile.am): Remove rules for test-fchownat.
	* doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
	of module 'openat'.
	* NEWS: Mention the change.

2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>

	stdalign: port better to MSVC and to Sun C 5.11
	This fixes some of the problems reported by Bruno Haible in
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
	* doc/posix-headers/stdalign.texi (stdalign.h): Document more
	shortcomings of MSVC and of Sun C 5.11.
	* lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
	around __declspec arg.
	* modules/stdalign-tests (Files): Add tests/macros.h.
	* tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
	Include macros.h, for ASSERT.
	(DECLARE_ALIGNED): Remove.
	(TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
	to catch bug), and to 1 if not (simplifies the rest of the code).
	(CHECK_STATIC): Always declare the alignment test vars; that's simpler.
	(CHECK_AUTO): Remove.
	(CHECK_ALIGNED): Check only the alignment of the static vars,
	since auto var alignment isn't supported by Sun C 5.11.
	(CHECK_TYPES): Remove.  All uses replaced by inline code, so that
	ASSERT failures are easier to diagnose.

2011-10-31  Bruno Haible  <bruno@clisp.org>

	doc about some IRIX 5.3 problems.
	* doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
	on IRIX 5.3.
	* doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
	* doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
	5.3.
	* doc/posix-functions/grantpt.texi: Likewise.
	* doc/posix-functions/unlockpt.texi: Likewise.
	* doc/posix-functions/lgamma.texi: Likewise.
	* doc/posix-functions/nextafter.texi: Likewise.
	* doc/posix-functions/remainder.texi: Likewise.
	* doc/posix-functions/select.texi: Mention misplaced declaration on
	IRIX 5.3.
	Reported by Tom G. Christensen <tgc@jupiterrise.com>.

2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>

	gitlog-to-changelog: fix git-log invocation.
	git-log mishandles date strings before 1970-01-01 UTC, and there is
	no use to specify --since=1970-01-01 by default anyway.
	* build-aux/gitlog-to-changelog: By default, when no --since option
	was given, do not specify explicit --since option to git-log.

2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>

	gitlog-to-changelog: new option --append-dot.
	* build-aux/gitlog-to-changelog: New option --append-dot, makes the
	first non-blank line of each commit message terminated with a dot.

2011-10-30  Bruno Haible  <bruno@clisp.org>

	ffsl, ffsll: Avoid compilation error due to 'restrict'.
	* lib/ffsl.h: Include <config.h>.
	Suggested by Tom G. Christensen <tgc@jupiterrise.com>.

2011-10-30  Jim Meyering  <meyering@redhat.com>

	GNUmakefile: reenable "make syntax-check" for most projects
	Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
	build-aux variable", "syntax-check" would do nothing but succeed with
	the "No version control files detected..." diagnostic (unless you
	happened to override _build-aux via cfg.mk).
	* top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
	to precede inclusion of maint.mk.  Otherwise, these variables would
	be used undefined in any project that does not override the default.

2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>

	gitlog-to-changelog: treat a message with only blank lines as empty.
	* build-aux/gitlog-to-changelog: Move the code that removes leading and
	trailing blank lines before the code that issues a warning about an
	empty commit message.

2011-10-30  Jim Meyering  <meyering@redhat.com>

	test-parse-datetime.c: avoid new DST-related false positive test failure
	* tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
	based on the time/date we'll convert, not the current time.
	Otherwise, the moment we cross a DST boundary like today's in
	Europe, (CEST to CET), that offset ends up being one hour off.

2011-10-27  Bruno Haible  <bruno@clisp.org>

	fstat: Tweak documentation.
	* modules/fstat (Description): More precise description.

2011-10-27  Bruno Haible  <bruno@clisp.org>

	Update documentation regarding 'largefile' module.
	* doc/posix-functions/fstat.texi: Tweak wording.
	* doc/posix-functions/opendir.texi: Mention that the module fixes the
	problems with huge directories and/or small ino_t types.
	* doc/posix-functions/readdir.texi: Likewise.
	* doc/posix-functions/rewinddir.texi: Likewise.

2011-10-28  Gary V. Vaughan  <gary@gnu.org>

	maint.mk: don't maintain a second build-aux variable.
	* maint.mk (build_aux): Removed.  The maintainer-makefile module
	depends on GNUmakefile, which already maintains a cfg.mk
	overridable $(_build-aux) for projects with a non-standard
	build-aux directory location, although without the $(srcdir)
	prefix.  Use that variable consistently instead of introducing a
	second one.  Adjust all call sites.

2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>

	Add stdalign module and use it in other modules.
	This is based on a previous proposal by Bruno Haible
	<https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.

	stdalign: new module
	* doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
	* modules/stdalign: New files.
	* MODULES.html.sh (c1x_core_properties): Add stdalign.
	* doc/gnulib.texi (Header File Substitutes): Add stdalign.

	stdalign-tests: new module
	* modules/stdalign-tests, tests/test-stdalign.c: New files.

	argp: use stdalign
	* lib/argp-parse.c: Include <stdalign.h>.
	(alignof): Remove.
	* modules/argp (Depends-on): Add stdalign.

	crypto libraries: use stdalign
	* lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
	Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
	Do not include <stdlib.h> twice, in md4.c.
	(UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
	because we are accessing a pointer's bit-pattern, not a size.
	* modules/crypto/gc-md4 (Depends-on): Add stdalign.
	* modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
	* modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
	* modules/crypto/sha512: Likewise.

	sys_socket: use stdalign, not alignof
	* lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
	* modules/sys_socket (Depends-on): Depend on stdalign, not alignof.

2011-10-27  Bruno Haible  <bruno@clisp.org>

	raise test: Avoid a test failure on Linux/MIPS.
	* tests/test-raise.c (main): Try raising signal 199, not 99. Needed
	because 99 is a valid signal on Linux/MIPS.

2011-10-27  Bruno Haible  <bruno@clisp.org>

	nonblocking tests: Fix test failure on Linux/MIPS.
	* tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
	Set to 270000.

2011-10-27  Bruno Haible  <bruno@clisp.org>

	utimensat: Work around problem on Linux/hppa.
	* lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
	values.
	* doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.

2011-10-25  Jim Meyering  <meyering@redhat.com>

	maint.mk: fix a bug in sc_prohibit_stddef_without_use
	* top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
	after symbols like NULL, size_t, etc.
	Reported by Alfred M. Szmidt.

	maint.mk: exempt ENODATA from a syntax-check rule
	* top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
	from the sc_prohibit_always-defined_macros syntax-check rule.
	Add a comment.  See this for more details:
	http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795

2011-10-23  Jim Meyering  <meyering@redhat.com>

	fts: close parent dir FD before returning from post-traversal fts_read
	The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
	unlink A, even though an FD open on A remained.  This is suboptimal
	(holding a file descriptor open longer than needed), but otherwise not
	a problem on Unix-like kernels.  However, on Cygwin with certain Novell
	file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
	that represents a real problem: it causes the removal of A to fail
	with e.g., "rm: cannot remove `A': Device or resource busy"

	fts visits each directory twice and keeps a cache (fts_fd_ring) of
	directory file descriptors.  After completing the final, FTS_DP,
	visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
	cache, but then proceeded to add a new FD to it via the subsequent
	FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
	final file descriptor would be closed only via fts_close's call to
	fd_ring_clear.  Now, it is usually closed earlier, via the final
	FTS_DP-returning fts_read call.
	* lib/fts.c (restore_initial_cwd): New function, converted from
	the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
	Update callers.
	Reported by Franz Sirl via the above URL, with analysis by Eric Blake
	in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739

2011-10-23  Gary V. Vaughan  <gary@gnu.org>
	    Bruno Haible  <bruno@clisp.org>
	    Jim Meyering  <jim@meyering.net>

	readme-release: improve safety of release prep instructions.
	* README-release: Don't git pull all branches when only master
	is needed for the release process.
	Run make maintainer-clean before changing trees and merging.
	Don't try to run ./configure right after git pull in case files
	that influence the bootstrap process have changed, move the
	./configure step to after running ./bootstrap.
	Don't bootstrap "one last time"... it's the first time!

2011-10-22  Bruno Haible  <bruno@clisp.org>

	errno, strerror-override: Support for MSVC 10.
	* lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
	(ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
	ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
	EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
	EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
	ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
	ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
	Assign values compatible with MSVC 10.
	(ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
	New macros.
	(GNULIB_defined_EWINSOCK): New macro.
	* lib/strerror-override.c (strerror_override): Update accordingly.
	* lib/strerror-override.h: Likewise.
	* lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
	longer equal to the corresponding errno value.
	Reported by Michael Goffioul <michael.goffioul@gmail.com>.

2011-10-22  Bruno Haible  <bruno@clisp.org>

	perror: Recognize when test program crashes.
	* m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
	strerror, set gl_cv_func_perror_works to no.
	Reported by Daniel Richard G. <skunk@iskunk.org>.

	perror: Fix indentation.
	* m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.

2011-10-22  Bruno Haible  <bruno@clisp.org>

	isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
	* lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
	_GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
	(isfinite, isinf, isnan, signbit): In C++, define as overloaded
	functions, not as a macro.
	* tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
	macros.
	(isfinite, isinf, isnan, signbit): Check overloaded functions and
	absence of macro.
	Suggested by Eric Blake.
	Reported by Michael Goffioul <michael.goffioul@gmail.com>.

2011-10-21  Bruno Haible  <bruno@clisp.org>

	relocatable-prog-wrapper: Don't leave object files behind.
	* build-aux/install-reloc: Re-synchronize list of .o files to be
	removed with list of compilation units.

2011-10-20  Bruno Haible  <bruno@clisp.org>

	openpty, posix_openpt: Remove code duplication.
	* lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
	* lib/openpty.c: Include <stdlib.h>.
	(openpty): Use posix_openpt on all platforms except IRIX.
	* modules/openpty (Depends-on): Add posix_openpt. Add conditions.

2011-10-20  Bruno Haible  <bruno@clisp.org>

	unlockpt: Detect invalid argument.
	* lib/unlockpt.c: Include <fcntl.h>.
	(unlockpt): Check whether fd is valid, using fcntl().
	* modules/unlockpt (Depends-on): Add fcntl-h.

2011-10-20  Bruno Haible  <bruno@clisp.org>

	openpty: Avoid compilation error on AIX 6.1.
	* lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.

2011-10-20  Bruno Haible  <bruno@clisp.org>

	posix_openpt: Support for OpenBSD.
	* lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
	(posix_openpt) [OpenBSD]: New code.
	* lib/grantpt.c: Include <fcntl.h>.
	(grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
	* modules/grantpt (Depends-on): Add fcntl-h.

2011-10-20  Bruno Haible  <bruno@clisp.org>

	posix_openpt test: Coding style.
	* tests/test-posix_openpt.c: Use GNU coding style.

2011-10-20  Bruno Haible  <bruno@clisp.org>

	grantpt: Support --avoid=pt_chown.
	* modules/grantpt (Files): Add lib/pty-private.h.

2011-10-20  Bruno Haible  <bruno@clisp.org>

	posix_openpt: Fix autoconf macro.
	* m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
	unneeded check for _getpty.

2011-10-20  Bruno Haible  <bruno@clisp.org>

	openpty: Update comments.
	* lib/openpty.c: Add comments about Minix.

2011-10-19  Eric Blake  <eblake@redhat.com>

	openpty: relax license
	* modules/openpty (License): Change from LGPLv3+ to LGPLv2+.

	pt_chown: use configmake to simplify build
	* modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.

	ptsname and others: relax license
	* modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
	* modules/unlockpt (License): Likewise.
	* modules/pt_chown (License): Likewise.
	* modules/ptsname (License): Likewise.
	* modules/ttyname_r (License): Likewise.

2011-10-19  Jim Meyering  <meyering@redhat.com>

	posix_openpt: remove spurious #endif
	* lib/posix_openpt.c (posix_openpt): Remove spurious #endif.

2011-10-19  Gary V. Vaughan  <gary@gnu.org>

	maint.mk: Respect $(build_aux) in web-manual rule.
	* top/maint.mk (web-manual): Find gen-announce script in user's
	$(build_aux) directory instead of hard-coding 'build-aux'.

2011-10-19  Bruno Haible  <bruno@clisp.org>

	posix_openpt: Fix compilation error.
	* lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
	* doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
	Mention the openpty module as an alternative.

2011-10-19  Bruno Haible  <bruno@clisp.org>

	Support for old NeXTstep 3.3 frexp().
	* m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
	execution time of the test to 5 seconds.
	Reported by Daniel Richard G. <skunk@iskunk.org>.

2011-10-19  Bruno Haible  <bruno@clisp.org>

	Support for old NeXTstep 3.3 sed.
	* m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
	part, use /.../, not \|...|. Escape periods in the header file name.
	* m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
	Reported by Daniel Richard G. <skunk@iskunk.org>.

2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)

	Support for old NeXTstep 3.3 gcc.
	* lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
	'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
	* lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
	* lib/spawn.in.h (_Restrict_arr_): Likewise.
	* lib/regex.h (_Restrict_arr_): Likewise.
	* lib/regex_internal.h (re_token_t): Likewise.
	* lib/regexec.c (check_node_accept_bytes): Likewise.
	* tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.

2011-10-18  Eric Blake  <eblake@redhat.com>

	posix_openpt: new module
	* modules/posix_openpt: New module.
	* m4/posix_openpt.m4: New file.
	* lib/posix_openpt.c: Likewise.
	* m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
	(gl_STDLIB_H_DEFAULTS): Set defaults.
	* modules/stdlib (Makefile.am): Substitute macros.
	* lib/stdlib.in.h (posix_openpt): Declare.
	* MODULES.html.sh (systems lacking POSIX:2008): Document it.
	* doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
	* modules/posix_openpt-tests: New test module.
	* tests/test-posix_openpt.c: New test.

2011-10-15  Bruno Haible  <bruno@clisp.org>

	xstrtoll: Fix compilation failure.
	* lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
	from lib/strtol.c.
	* doc/posix-headers/limits.texi: Mention missing numerical limits on
	some platforms.
	Reported by Tom G. Christensen <tgc@jupiterrise.com>.

2011-10-15  Bruno Haible  <bruno@clisp.org>

	vasnprintf: Optimize bit search operation.
	* lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
	* m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
	gl_DOUBLE_EXPONENT_LOCATION.
	* modules/vasnprintf (Files): Add m4/exponentd.m4.
	* modules/unistdio/u8-vasnprintf (Files): Likewise.
	* modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
	* modules/unistdio/u16-vasnprintf (Files): Likewise.
	* modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
	* modules/unistdio/u32-vasnprintf (Files): Likewise.
	* modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
	* modules/unistdio/ulc-vasnprintf (Files): Likewise.
	* m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.

2011-10-15  Bruno Haible  <bruno@clisp.org>

	vasnprintf: Fix comments.
	* lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.

2011-10-14  Bruno Haible  <bruno@clisp.org>

	Tests for module 'integer_length_ll'.
	* modules/integer_length_ll-tests: New file.
	* tests/test-integer_length_ll.c: New file.

	New module 'integer_length_ll'.
	* lib/integer_length_ll.c: New file.
	* modules/integer_length_ll: New file.

2011-10-14  Bruno Haible  <bruno@clisp.org>

	Tests for module 'integer_length_l'.
	* modules/integer_length_l-tests: New file.
	* tests/test-integer_length_l.c: New file.

	New module 'integer_length_l'.
	* lib/integer_length_l.c: New file.
	* modules/integer_length_l: New file.

2011-10-14  Bruno Haible  <bruno@clisp.org>

	Tests for module 'integer_length'.
	* modules/integer_length-tests: New file.
	* tests/test-integer_length.c: New file.

	New module 'integer_length'.
	* lib/integer_length.h: New file.
	* lib/integer_length.c: New file.
	* modules/integer_length: New file.

2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)

	popen: Fix dependency conditions.
	* modules/popen (Depends-on, configure.ac): Fix shell syntax error.

2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)

	perror: Fix autoconf test.
	* m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
	<stdlib.h> and <string.h>.

2011-10-14  Bruno Haible  <bruno@clisp.org>

	ffsl: Optimize on 64-bit platforms.
	* lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
	unrolling.

2011-10-13  Bruno Haible  <bruno@clisp.org>

	ffsl: Optimize on 32-bit platforms.
	* lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
	use ffs() without a loop.

	ffsl, ffsll: Optimize for GCC.
	* lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
	* lib/ffsl.c (GCC_BUILTIN): New macro.
	* lib/ffsll.c (GCC_BUILTIN): Likewise.

2011-10-13  Bruno Haible  <bruno@clisp.org>

	ffs, bcopy, memset: Support symbol renaming via config.h.
	* lib/ffs.c: Include <config.h>.
	* lib/bcopy.c: Likewise.
	* lib/memset.c: Likewise.

2011-10-10  Bruno Haible  <bruno@clisp.org>

	atanl: Simplify for platforms where 'long double' == 'double'.
	* lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
	alternative implementation.
	* m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/atanl (Depends-on): Add atan. Update conditions.

2011-10-10  Bruno Haible  <bruno@clisp.org>

	acosl: Simplify for platforms where 'long double' == 'double'.
	* lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
	alternative implementation.
	* m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/acosl (Depends-on): Add acos. Update conditions.

2011-10-10  Bruno Haible  <bruno@clisp.org>

	asinl: Simplify for platforms where 'long double' == 'double'.
	* lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
	alternative implementation.
	* m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/asinl (Depends-on): Add asin. Update conditions.

2011-10-10  Bruno Haible  <bruno@clisp.org>

	tanl: Simplify for platforms where 'long double' == 'double'.
	* lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
	implementation.
	* m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/tanl (Depends-on): Add tan. Update conditions.
	(configure.ac): Don't compile trigl.c if
	HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.

2011-10-10  Bruno Haible  <bruno@clisp.org>

	cosl: Simplify for platforms where 'long double' == 'double'.
	* lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
	implementation.
	* m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/cosl (Depends-on): Add cos. Update conditions.
	(configure.ac): Don't compile sincosl.c and trigl.c if
	HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.

2011-10-10  Bruno Haible  <bruno@clisp.org>

	sinl: Simplify for platforms where 'long double' == 'double'.
	* lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
	implementation.
	* m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/sinl (Depends-on): Add sin. Update conditions.
	(configure.ac): Don't compile sincosl.c and trigl.c if
	HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.

2011-10-10  Bruno Haible  <bruno@clisp.org>

	logl: Simplify for platforms where 'long double' == 'double'.
	* lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
	implementation.
	* m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/logl (Depends-on): Add log. Update conditions.

2011-10-10  Bruno Haible  <bruno@clisp.org>

	expl: Simplify for platforms where 'long double' == 'double'.
	* lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
	implementation.
	* m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/expl (Depends-on): Add exp. Update conditions.

2011-10-10  Bruno Haible  <bruno@clisp.org>

	sqrtl: Simplify for platforms where 'long double' == 'double'.
	* lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
	alternative implementation.
	* m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/sqrtl (Depends-on): Update conditions.

2011-10-10  Bruno Haible  <bruno@clisp.org>

	ldexpl: Simplify for platforms where 'long double' == 'double'.
	* lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
	alternative implementation.
	* m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/ldexpl (Depends-on): Add ldexp. Update conditions.

2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)

	ffsll: set correct witness
	* modules/ffsll (configure.ac): Fix typo.

2011-10-10  Bruno Haible  <bruno@clisp.org>

	printf-frexpl: Simplify for platforms where 'long double' == 'double'.
	* lib/printf-frexpl.c: Include <config.h>.
	(printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
	* lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
	second time.
	* m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
	gl_LONG_DOUBLE_VS_DOUBLE.
	* modules/printf-frexpl (Depends-on): Add printf-frexp. Update
	conditions.

2011-10-10  Bruno Haible  <bruno@clisp.org>

	frexpl: Simplify for platforms where 'long double' == 'double'.
	* lib/frexpl.c: Include <config.h>.
	(frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
	* lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
	time.
	* m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	(gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
	* modules/frexpl (Depends-on): Add frexp. Update conditions.
	* modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
	conditions.

2011-10-10  Jim Meyering  <meyering@redhat.com>

	test-renameat: don't leave behind a temporary file
	* tests/test-renameat.c (main): Don't forget to remove a temporary file.
	  ERROR: files left in build directory after distclean:
	  ./gltests/test-renameat.too
	  make[1]: *** [distcleancheck] Error 1
	Reported by Tom G. Christensen.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	rint: Determine RINT_LIBM correctly on AIX 7.
	* m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
	directly, not only through a function pointer. Also accept an optional
	4th argument with extra code.
	* m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
	rintf() call by gcc when optimizing.

	mathfunc.m4: Refactor.
	* m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
	m4 variable.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	rintl: Simplify for platforms where 'long double' == 'double'.
	* lib/rintl.c: Include <config.h>.
	(rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
	* lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
	time.
	* m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/rintl (Depends-on): Add rint. Update conditions.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	roundl: Simplify for platforms where 'long double' == 'double'.
	* lib/roundl.c: Include <config.h>.
	(roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
	* lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
	time.
	* m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/roundl (Depends-on): Add round. Update conditions.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	truncl: Simplify for platforms where 'long double' == 'double'.
	* lib/truncl.c: Include <config.h>.
	(truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
	* lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
	time.
	* m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/truncl (Depends-on): Add trunc. Update conditions.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	ceill: Simplify for platforms where 'long double' == 'double'.
	* lib/ceill.c: Include <config.h>.
	(ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
	* lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
	time.
	* m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/ceill (Depends-on): Add ceil. Update conditions.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	floorl: Simplify for platforms where 'long double' == 'double'.
	* lib/floorl.c: Include <config.h>.
	(floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
	* lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
	time.
	* m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/floorl (Depends-on): Add floor. Update conditions.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	rint: Fix ordering constraints.
	* m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
	* m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
	* m4/rintl.m4 (gl_FUNC_RINTL): Likewise.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	copysignl: Simplify for platforms where 'long double' == 'double'.
	* lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
	alternative.
	* m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
	* modules/copysignl (Depends-on): Add copysign. Update conditions.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	Tests for module 'rintl'.
	* modules/rintl-tests: New file.
	* tests/test-rintl.c: New file.

	New module 'rintl'.
	* lib/math.in.h (rintl): New declaration.
	* lib/rintl.c: New file.
	* m4/rintl.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
	* modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
	* modules/rintl: New file.
	* tests/test-math-c++.cc: Check the declaration of rintl.
	* modules/math-c++-tests (Makefile.am): Link test-math-c++ against
	$(RINTL_LIBM). Needed on IRIX 6.5 with cc.
	* doc/posix-functions/rintl.texi: Mention the new module.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	Tests for module 'rintf'.
	* modules/rintf-tests: New file.
	* tests/test-rintf.c: New file.

	New module 'rintf'.
	* lib/math.in.h (rintf): New declaration.
	* lib/rintf.c: New file.
	* m4/rintf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
	* modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
	* modules/rintf: New file.
	* tests/test-math-c++.cc: Check the declaration of rintf.
	* doc/posix-functions/rintf.texi: Mention the new module.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	rint: Support for MSVC.
	* lib/math.in.h (rint): New declaration.
	* lib/rint.c: New file.
	* m4/rint.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
	* modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
	* modules/rint (Description): Fix.
	(Files): Add lib/rint.c, m4/rint.m4.
	(Depends-on): Add math.
	(configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
	gl_MATH_MODULE_INDICATOR.
	* tests/test-math-c++.cc: Check the declaration of rint.
	* modules/math-c++-tests (Makefile.am): Link test-math-c++ against
	$(RINT_LIBM). Needed on IRIX 6.5 with cc.
	* doc/posix-functions/rint.texi: Mention the replacement provided by
	the module.

	rint tests: More tests.
	* tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
	minus-zero.h, infinity.h, nan.h.
	(main): Skip the test if the current rounding mode is not standard. Add
	tests for negative numbers, minus zero, infinity, NaN.
	* modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
	tests/nan.h.
	(Depends-on): Add isnand-nolibm.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	Tests for module 'copysignl'.
	* modules/copysignl-tests: New file.
	* tests/test-copysignl.c: New file.

	New module 'copysignl'.
	* lib/math.in.h (copysignl): New declaration.
	* lib/copysignl.c: New file.
	* m4/copysignl.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
	* modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
	HAVE_COPYSIGNL.
	* modules/copysignl: New file.
	* tests/test-math-c++.cc: Check the declaration of copysignl.
	* modules/math-c++-tests (Makefile.am): Link test-math-c++ against
	$(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
	* doc/posix-functions/copysignl.texi: Mention the new module.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	Tests for module 'copysignf'.
	* modules/copysignf-tests: New file.
	* tests/test-copysignf.c: New file.

	New module 'copysignf'.
	* lib/math.in.h (copysignf): New declaration.
	* lib/copysignf.c: New file.
	* m4/copysignf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
	* modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
	HAVE_COPYSIGNF.
	* modules/copysignf: New file.
	* tests/test-math-c++.cc: Check the declaration of copysignf.
	* doc/posix-functions/copysignf.texi: Mention the new module.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	Ensure that HAVE_* variables are set to 1 before they are set to 0.
	* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
	* m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
	* m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
	* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
	gl_SIGNAL_H_DEFAULTS.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	poll: Make macro safer.
	* m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
	ac_cv_header_poll_h is not set.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	copysign: Provide replacement.
	* lib/math.in.h (copysign): New declaration.
	* lib/copysign.c: New file.
	* m4/copysign.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
	* modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
	HAVE_COPYSIGN.
	* modules/copysign (Description): Clarify.
	(Files): Add lib/copysign.c, m4/copysign.m4.
	(Depends-on): Add math, signbit.
	(configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
	gl_MATH_MODULE_INDICATOR.
	* tests/test-math-c++.cc: Check the declaration of copysign.
	* doc/posix-functions/copysign.texi: Mention the effects of the module
	on Minix and MSVC.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	isinf: Ensure macro on AIX 5.1.
	* m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
	macro.
	* doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.

2011-10-09  Bruno Haible  <bruno@clisp.org>

	*printf-posix tests: Fix for platforms where 'long double' == 'double'.
	* modules/snprintf-posix-tests (configure.ac): Require
	gl_LONG_DOUBLE_VS_DOUBLE.
	* modules/sprintf-posix-tests (configure.ac): Likewise.
	* modules/vasnprintf-posix-tests (configure.ac): Likewise.
	* modules/vasprintf-posix-tests (configure.ac): Likewise.
	* modules/vsnprintf-posix-tests (configure.ac): Likewise.
	* modules/vsprintf-posix-tests (configure.ac): Likewise.
	* tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
	tests on platforms where 'long double' is the same as 'double'.
	* tests/test-sprintf-posix.h (test_function): Likewise.
	* tests/test-vasnprintf-posix.c (test_function): Likewise.
	* tests/test-vasprintf-posix.c (test_function): Likewise.

	*printf: Fix for platforms where 'long double' == 'double'.
	* m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
	gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
	* modules/dprintf-posix (Files): Add m4/math_h.m4.
	* modules/fprintf-posix (Files): Likewise.
	* modules/obstack-printf-posix (Files): Likewise.
	* modules/snprintf-posix (Files): Likewise.
	* modules/sprintf-posix (Files): Likewise.
	* modules/vasnprintf (Files): Likewise.
	* modules/vasnprintf-posix (Files): Likewise.
	* modules/vasprintf-posix (Files): Likewise.
	* modules/vdprintf-posix (Files): Likewise.
	* modules/vfprintf-posix (Files): Likewise.
	* modules/vsnprintf-posix (Files): Likewise.
	* modules/vsprintf-posix (Files): Likewise.
	* modules/unistdio/u8-vasnprintf (Files): Likewise.
	* modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
	* modules/unistdio/u16-vasnprintf (Files): Likewise.
	* modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
	* modules/unistdio/u32-vasnprintf (Files): Likewise.
	* modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
	* modules/unistdio/ulc-vasnprintf (Files): Likewise.

	isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
	* lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
	* m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
	(gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
	'long double'.
	* modules/isnanl-nolibm (Files): Add m4/math_h.m4.

	isinf: Fix for platforms where 'long double' == 'double'.
	* m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Don't blindly assume 80-bit 'long double'.

	isfinite: Fix for platforms where 'long double' == 'double'.
	* m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
	Don't blindly assume 80-bit 'long double'.

	isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
	* m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
	* modules/isfinite-tests (configure.ac): Require
	gl_LONG_DOUBLE_VS_DOUBLE.
	* modules/isinf-tests (configure.ac): Likewise.
	* modules/isnan-tests (configure.ac): Likewise.
	* modules/isnanl-tests (configure.ac): Likewise.
	* modules/isnanl-nolibm-tests (configure.ac): Likewise.
	* tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
	tests on platforms where 'long double' is the same as 'double'.
	* tests/test-isinf.c (test_isinfl): Likewise.
	* tests/test-isnan.c (test_long_double): Likewise.
	* tests/test-isnanl.h (main): Likewise.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'tanhf'.
	* modules/tanhf-tests: New file.
	* tests/test-tanhf.c: New file.

	New module 'tanhf'.
	* lib/math.in.h (tanhf): New declaration.
	* lib/tanhf.c: New file.
	* m4/tanhf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
	* modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
	* modules/tanhf: New file.
	* tests/test-math-c++.cc: Check the declaration of tanhf.
	* doc/posix-functions/tanhf.texi: Mention the new module.

	tanh: Use a .m4 file.
	* m4/tanh.m4: New file.
	* modules/tanh (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_TANH.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'coshf'.
	* modules/coshf-tests: New file.
	* tests/test-coshf.c: New file.

	New module 'coshf'.
	* lib/math.in.h (coshf): New declaration.
	* lib/coshf.c: New file.
	* m4/coshf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
	* modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
	* modules/coshf: New file.
	* tests/test-math-c++.cc: Check the declaration of coshf.
	* doc/posix-functions/coshf.texi: Mention the new module.

	cosh: Use a .m4 file.
	* m4/cosh.m4: New file.
	* modules/cosh (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_COSH.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'sinhf'.
	* modules/sinhf-tests: New file.
	* tests/test-sinhf.c: New file.

	New module 'sinhf'.
	* lib/math.in.h (sinhf): New declaration.
	* lib/sinhf.c: New file.
	* m4/sinhf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
	* modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
	* modules/sinhf: New file.
	* tests/test-math-c++.cc: Check the declaration of sinhf.
	* doc/posix-functions/sinhf.texi: Mention the new module.

	sinh: Use a .m4 file.
	* m4/sinh.m4: New file.
	* modules/sinh (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_SINH.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'atan2f'.
	* modules/atan2f-tests: New file.
	* tests/test-atan2f.c: New file.

	New module 'atan2f'.
	* lib/math.in.h (atan2f): New declaration.
	* lib/atan2f.c: New file.
	* m4/atan2f.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
	* modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
	* modules/atan2f: New file.
	* tests/test-math-c++.cc: Check the declaration of atan2f.
	* doc/posix-functions/atan2f.texi: Mention the new module.

	atan2: Use a .m4 file.
	* m4/atan2.m4: New file.
	* modules/atan2 (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_ATAN2.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'atanf'.
	* modules/atanf-tests: New file.
	* tests/test-atanf.c: New file.

	New module 'atanf'.
	* lib/math.in.h (atanf): New declaration.
	* lib/atanf.c: New file.
	* m4/atanf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
	* modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
	* modules/atanf: New file.
	* tests/test-math-c++.cc: Check the declaration of atanf.
	* doc/posix-functions/atanf.texi: Mention the new module.

	atan: Use a .m4 file.
	* m4/atan.m4: New file.
	* modules/atan (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_ATAN.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'acosf'.
	* modules/acosf-tests: New file.
	* tests/test-acosf.c: New file.

	New module 'acosf'.
	* lib/math.in.h (acosf): New declaration.
	* lib/acosf.c: New file.
	* m4/acosf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
	* modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
	* modules/acosf: New file.
	* tests/test-math-c++.cc: Check the declaration of acosf.
	* doc/posix-functions/acosf.texi: Mention the new module.

	acos: Use a .m4 file.
	* m4/acos.m4: New file.
	* modules/acos (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_ACOS.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'asinf'.
	* modules/asinf-tests: New file.
	* tests/test-asinf.c: New file.

	New module 'asinf'.
	* lib/math.in.h (asinf): New declaration.
	* lib/asinf.c: New file.
	* m4/asinf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
	* modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
	* modules/asinf: New file.
	* tests/test-math-c++.cc: Check the declaration of asinf.
	* doc/posix-functions/asinf.texi: Mention the new module.

	asin: Use a .m4 file.
	* m4/asin.m4: New file.
	* modules/asin (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_ASIN.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'tanf'.
	* modules/tanf-tests: New file.
	* tests/test-tanf.c: New file.

	New module 'tanf'.
	* lib/math.in.h (tanf): New declaration.
	* lib/tanf.c: New file.
	* m4/tanf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
	* modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
	* modules/tanf: New file.
	* tests/test-math-c++.cc: Check the declaration of tanf.
	* doc/posix-functions/tanf.texi: Mention the new module.

	tan: Use a .m4 file.
	* m4/tan.m4: New file.
	* modules/tan (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_TAN.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'cosf'.
	* modules/cosf-tests: New file.
	* tests/test-cosf.c: New file.

	New module 'cosf'.
	* lib/math.in.h (cosf): New declaration.
	* lib/cosf.c: New file.
	* m4/cosf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
	* modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
	* modules/cosf: New file.
	* tests/test-math-c++.cc: Check the declaration of cosf.
	* doc/posix-functions/cosf.texi: Mention the new module.

	cos: Use a .m4 file.
	* m4/cos.m4: New file.
	* modules/cos (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_COS.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'sinf'.
	* modules/sinf-tests: New file.
	* tests/test-sinf.c: New file.

	New module 'sinf'.
	* lib/math.in.h (sinf): New declaration.
	* lib/sinf.c: New file.
	* m4/sinf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
	* modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
	* modules/sinf: New file.
	* tests/test-math-c++.cc: Check the declaration of sinf.
	* doc/posix-functions/sinf.texi: Mention the new module.

	sin: Use a .m4 file.
	* m4/sin.m4: New file.
	* modules/sin (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_SIN.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'powf'.
	* modules/powf-tests: New file.
	* tests/test-powf.c: New file.

	New module 'powf'.
	* lib/math.in.h (powf): New declaration.
	* lib/powf.c: New file.
	* m4/powf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
	* modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
	* modules/powf: New file.
	* tests/test-math-c++.cc: Check the declaration of powf.
	* doc/posix-functions/powf.texi: Mention the new module.

	pow: Use a .m4 file.
	* m4/pow.m4: New file.
	* modules/pow (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_POW.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'log10f'.
	* modules/log10f-tests: New file.
	* tests/test-log10f.c: New file.

	New module 'log10f'.
	* lib/math.in.h (log10f): New declaration.
	* lib/log10f.c: New file.
	* m4/log10f.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
	* modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
	* modules/log10f: New file.
	* tests/test-math-c++.cc: Check the declaration of log10f.
	* doc/posix-functions/log10f.texi: Mention the new module.

	log10: Use a .m4 file.
	* m4/log10.m4: New file.
	* modules/log10 (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_LOG10.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'logf'.
	* modules/logf-tests: New file.
	* tests/test-logf.c: New file.

	New module 'logf'.
	* lib/math.in.h (logf): New declaration.
	* lib/logf.c: New file.
	* m4/logf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
	* modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
	* modules/logf: New file.
	* tests/test-math-c++.cc: Check the declaration of logf.
	* doc/posix-functions/logf.texi: Mention the new module.

	log: Use a .m4 file.
	* m4/log.m4: New file.
	* modules/log (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_LOG.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'expf'.
	* modules/expf-tests: New file.
	* tests/test-expf.c: New file.

	New module 'expf'.
	* lib/math.in.h (expf): New declaration.
	* lib/expf.c: New file.
	* m4/expf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
	* modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
	* modules/expf: New file.
	* tests/test-math-c++.cc: Check the declaration of expf.
	* doc/posix-functions/expf.texi: Mention the new module.

	exp: Use a .m4 file.
	* m4/exp.m4: New file.
	* modules/exp (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_EXP.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'sqrtf'.
	* modules/sqrtf-tests: New file.
	* tests/test-sqrtf.c: New file.

	New module 'sqrtf'.
	* lib/math.in.h (sqrtf): New declaration.
	* lib/sqrtf.c: New file.
	* m4/sqrtf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
	* modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
	* modules/sqrtf: New file.
	* tests/test-math-c++.cc: Check the declaration of sqrtf.
	* doc/posix-functions/sqrtf.texi: Mention the new module.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	Tests: Avoid link failures w.r.t. libintl.
	* modules/faccessat-tests (Makefile.am): Link test-faccessat against
	$(LIBINTL).
	* modules/fchdir-tests (Makefile.am): Link test-fchdir against
	$(LIBINTL).
	* modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
	against $(LIBINTL).
	* modules/getcwd-tests (Makefile.am): Link test-getcwd against
	$(LIBINTL).
	* modules/openat-tests (Makefile.am): Link test-fchmodat against
	$(LIBINTL).
	* modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).

2011-10-08  Bruno Haible  <bruno@clisp.org>

	pow tests: Defeat compiler optimizations.
	* tests/test-pow.c (main): Assign arguments to x and y before use.

2011-10-08  Bruno Haible  <bruno@clisp.org>

	gnulib-tool: Improve last commit.
	* gnulib-tool (func_modules_transitive_closure): Simplify code.
	(func_emit_autoconf_snippets): Instead of invoking func_acceptable,
	ignore dependencies that are not among the modules list.

2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>

	gnulib-tool: don't follow dependencies to avoided modules
	This fixes a bug that is related to the previous one.
	* gnulib-tool (func_modules_transitive_closure)
	(func_emit_autoconf_snippets):
	Check whether a dependency is acceptable before using it.
	(--extract-dependencies): Report an error if --avoid is also used,
	since this combination of options is not yet supported.

	gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
	Problem reported by Peter Dyballa in
	<http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
	* gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
	when echoing "$condition".

2011-10-07  Bruno Haible  <bruno@clisp.org>

	Fix documentation about math functions on MacOS X.
	* doc/posix-functions/exp2.texi: Don't say the function is missing on
	MacOS X 10.5.
	* doc/posix-functions/fdim.texi: Likewise.
	* doc/posix-functions/feclearexcept.texi: Likewise.
	* doc/posix-functions/fegetenv.texi: Likewise.
	* doc/posix-functions/fegetround.texi: Likewise.
	* doc/posix-functions/feholdexcept.texi: Likewise.
	* doc/posix-functions/feraiseexcept.texi: Likewise.
	* doc/posix-functions/fesetenv.texi: Likewise.
	* doc/posix-functions/fesetround.texi: Likewise.
	* doc/posix-functions/fetestexcept.texi: Likewise.
	* doc/posix-functions/feupdateenv.texi: Likewise.
	* doc/posix-functions/fmax.texi: Likewise.
	* doc/posix-functions/fmin.texi: Likewise.
	* doc/posix-functions/log2.texi: Likewise.
	* doc/posix-functions/modff.texi: Likewise.
	* doc/posix-functions/nan.texi: Likewise.
	* doc/posix-functions/nanf.texi: Likewise.
	* doc/posix-functions/nextafterf.texi: Likewise.
	* doc/posix-functions/remquo.texi: Likewise.

2011-10-07  Bruno Haible  <bruno@clisp.org>

	modff: Drop assumption about library that defines modff.
	* m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
	AC_CHECK_FUNCS.
	* modules/modff (Files): Add m4/mathfunc.m4.

2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>

	raise tests: Avoid a GCC warning.
	* tests/test-raise.c (handler): Use _Noreturn.

2011-10-07  Bruno Haible  <bruno@clisp.org>

	Tests for module 'ldexpf'.
	* modules/ldexpf-tests: New file.
	* tests/test-ldexpf.c: New file.

	New module 'ldexpf'.
	* lib/math.in.h (ldexpf): New declaration.
	* lib/ldexpf.c: New file.
	* m4/ldexpf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
	* modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
	* modules/ldexpf: New file.
	* tests/test-math-c++.cc: Check the declaration of ldexpf.
	* doc/posix-functions/ldexpf.texi: Mention the new module.

2011-10-06  Bruno Haible  <bruno@clisp.org>

	frexpf: Work around problems on IRIX and mingw.
	* lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
	* m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
	(gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
	* modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
	* modules/math (Makefile.am): Substitute REPLACE_FREXPF.
	* doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.

2011-10-06  Bruno Haible  <bruno@clisp.org>

	fabsf: Drop assumption about library that defines fabsf.
	* m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
	AC_CHECK_FUNCS.
	* modules/fabsf (Files): Add m4/mathfunc.m4.

2011-10-06  Bruno Haible  <bruno@clisp.org>

	frexpf: Drop assumption about library that defines frexpf.
	* m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
	'int *', 'float *', 'long double *', 'float', 'long double'.
	* m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
	AC_CHECK_FUNCS.
	* modules/frexpf (Files): Add m4/mathfunc.m4.

	Tests for module 'frexpf'.
	* modules/frexpf-tests: New file.
	* tests/test-frexpf.c: New file.

	New module 'frexpf'.
	* lib/math.in.h (frexpf): New declaration.
	* lib/frexpf.c: New file.
	* m4/frexpf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
	* modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
	* modules/frexpf: New file.
	* tests/test-math-c++.cc: Check the declaration of frexpf.
	* doc/posix-functions/frexpf.texi: Mention the new module.

2011-10-06  Bruno Haible  <bruno@clisp.org>

	math: Sort function declarations of math.in.h.
	* lib/math.in.h (frexp, logb): Move declarations.

2011-10-05  Bruno Haible  <bruno@clisp.org>

	Tests for module 'modff'.
	* modules/modff-tests: New file.
	* tests/test-modff.c: New file.

	New module 'modff'.
	* lib/math.in.h (modff): New declaration.
	* lib/modff.c: New file.
	* m4/modff.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
	* modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
	* modules/modff: New file.
	* tests/test-math-c++.cc: Check the declaration of modff.
	* doc/posix-functions/modff.texi: Mention the new module.

	modf tests: Make test sharper.
	* tests/test-modf.c (main): Strengthen upper bound.

	modf: Use a .m4 file.
	* m4/modf.m4: New file.
	* modules/modf (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_MODF.

2011-10-05  Bruno Haible  <bruno@clisp.org>

	Tests for module 'fmodf'.
	* modules/fmodf-tests: New file.
	* tests/test-fmodf.c: New file.

	New module 'fmodf'.
	* lib/math.in.h (fmodf): New declaration.
	* lib/fmodf.c: New file.
	* m4/fmodf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
	* modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
	* modules/fmodf: New file.
	* tests/test-math-c++.cc: Check the declaration of fmodf.
	* doc/posix-functions/fmodf.texi: Mention the new module.

	fmod: Use a .m4 file.
	* m4/fmod.m4: New file.
	* modules/fmod (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_FMOD.

2011-10-05  Bruno Haible  <bruno@clisp.org>

	Tests for module 'fabsf'.
	* modules/fabsf-tests: New file.
	* tests/test-fabsf.c: New file.

	New module 'fabsf'.
	* lib/math.in.h (fabsf): New declaration.
	* lib/fabsf.c: New file.
	* m4/fabsf.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
	* modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
	* modules/fabsf: New file.
	* tests/test-math-c++.cc: Check the declaration of fabsf.
	* doc/posix-functions/fabsf.texi: Mention the new module.

	fabs: Use a .m4 file.
	* m4/fabs.m4: New file.
	* modules/fabs (Files): Add it.
	(configure.ac): Just invoke gl_FUNC_FABS.

2011-10-05  Jim Meyering  <meyering@redhat.com>

	file-has-acl: revert both recent changes, 80af92af and 95f7c57f
	* lib/file-has-acl.c: While the 2011-10-03 change does fix the
	ls -lL regression introduced in coreutils-8.12, it does so at the
	cost of an additional stat call in the common case.  Besides, now
	that the kernel change that prompted commit 95f7c57f has been reverted
	(see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
	we have no use for commit 95f7c57f, "file-has-acl: use
	acl_extended_file_nofollow if available".

2011-10-03  Kamil Dudka  <kdudka@redhat.com>

	file-has-acl: revert unintended change in behavior of ls -L
	* lib/file-has-acl.c (acl_extended_file_wrap): New function,
	derived from...
	(file_has_acl): ...code here.  Call it.
	This problem was introduced with 2011-07-22 commit 95f7c57f,
	"file-has-acl: use acl_extended_file_nofollow if available".
	See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538

2011-10-03  Bruno Haible  <bruno@clisp.org>

	poll: Avoid link errors on MSVC.
	* m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
	* modules/poll (Depends-on): Add sockets.
	(Link): New section.
	* NEWS: Mention the change.
	* modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
	* modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
	$(LIB_POLL) instead of $(LIBSOCKET).

2011-10-03  Bruno Haible  <bruno@clisp.org>

	sys_select tests: Fix link error on MSVC 9.
	* modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
	with $(LIB_SELECT) instead of $(LIBSOCKET).

2011-10-03  Bruno Haible  <bruno@clisp.org>

	sys_select: Fix compilation error on mingw.
	* lib/sys_select.in.h: On native Windows, include <io.h>.

2011-10-03  Bruno Haible  <bruno@clisp.org>

	wmemset: Support for MSVC.
	* m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
	whether wmemset() exists.

2011-10-03  Bruno Haible  <bruno@clisp.org>

	wmemmove: Support for MSVC.
	* m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
	whether wmemmove() exists.

2011-10-03  Bruno Haible  <bruno@clisp.org>

	wmemcpy: Support for MSVC.
	* m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
	whether wmemcpy() exists.

2011-10-03  Bruno Haible  <bruno@clisp.org>

	wmemcmp: Support for MSVC.
	* m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
	whether wmemcmp() exists.

2011-10-03  Bruno Haible  <bruno@clisp.org>

	wmemchr: Support for MSVC.
	* m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
	whether wmemchr() exists.

2011-10-03  Bruno Haible  <bruno@clisp.org>

	glthread/*, strsignal: Support for MSVC.
	* lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
	including <winsock.h> on MSVC 9.
	* lib/glthread/lock.h: Likewise.
	* lib/glthread/thread.h: Likewise.
	* lib/glthread/tls.h: Likewise.
	* lib/glthread/yield.h: Likewise.
	* lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
	if HAVE_UNISTD_H is false.
	* m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.

2011-10-03  Bruno Haible  <bruno@clisp.org>

	nonblocking tests: Fix test failure on OpenBSD/SPARC64.
	* tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
	Set to 100000.

2011-10-03  Bruno Haible  <bruno@clisp.org>

	acl: Fix specification.
	* lib/file-has-acl.c (file_has_acl): Fix specification.

2011-10-03  Bruno Haible  <bruno@clisp.org>

	relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
	* lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
	(compute_curr_prefix, shared_library_fullname,
	find_shared_library_fullname, get_shared_library_fullname, relocate):
	Use it together with PIC && INSTALLDIR.
	Reported by <jojelino@gmail.com>
	via Charles Wilson <cygwin@cwilson.fastmail.fm>.

2011-10-01  Jim Meyering  <meyering@redhat.com>

	maint.mk: adjust a release-related rule not to require use of gzip
	* top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
	Instead, check each file in $(DIST_ARCHIVES).  This is better for
	projects that build only .tar.xz files.  Also fix an erroneous test.

	test-linkat: don't leave behind a temporary file
	* tests/test-linkat.c (main): Don't forget to remove a temporary file.
	Otherwise, coreutils' "make distcheck" would fail with this:
	  Only in /c/cu/tests/torture/coreutils/test/\
	    coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
	  make[2]: *** [my-distcheck] Error 1

	float, math: add omitted file
	* lib/itold.c: Add file, required for yesterday's float change.

2011-10-01  Bruno Haible  <bruno@clisp.org>

	isinf: Fix for OpenBSD/x86.
	* m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
	pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
	* doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.

2011-10-01  Bruno Haible  <bruno@clisp.org>

	isfinite: Fix syntax error in configure test.
	* m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.

	isfinite: Fix typo.
	* m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
	gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.

2011-10-01  Bruno Haible  <bruno@clisp.org>

	nonblocking tests: Fix test failure on Linux/IA-64.
	* tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
	Set to 270000.

2011-10-01  Bruno Haible  <bruno@clisp.org>

	mkfifoat tests: Fix a test failure on mingw.
	* tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
	with error ENOSYS.

2011-09-30  Bruno Haible  <bruno@clisp.org>

	float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
	* m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
	'long double'. Set REPLACE_ITOLD.
	* lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
	* lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
	* lib/itold.c: New file.
	* modules/float (Files): Add lib/itold.c.
	(configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
	(Makefile.am): Substitute REPLACE_ITOLD.
	* modules/math (Depends-on): Add float.
	(Makefile.am): Substitute REPLACE_ITOLD.
	* doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
	* doc/posix-headers/math.texi: Likewise.
	* doc/posix-functions/logl.texi: Likewise.

2011-09-30  Bruno Haible  <bruno@clisp.org>

	nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
	* tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
	Set to 140000.

2011-09-30  Bruno Haible  <bruno@clisp.org>

	gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
	* gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
	invocation, say "right after AC_PROG_CC_STDC", not "right after
	AC_PROG_CC".
	Reported by Gary V. Vaughan <gary@gnu.org>.

2011-09-30  Bruno Haible  <bruno@clisp.org>

	Centralize C99 requirement.
	* m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
	* modules/stdarg (configure.ac-early): Invoke it instead of
	AC_PROG_CC_STDC.
	Reported by Gary V. Vaughan and Paul Eggert.

2011-09-29  Bruno Haible  <bruno@clisp.org>

	float: Fix LDBL_MAX value on Linux/PowerPC.
	* m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
	on Linux/PowerPC.
	* lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
	* lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
	* doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
	platform.
	Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.

2011-09-29  Bruno Haible  <bruno@clisp.org>

	doc: Improve doc about gl_EARLY.
	* doc/gnulib-tool.texi (Initial import): Mention where to place an
	AC_PROG_CC_STDC invocation.
	Reported by Gary V. Vaughan <gary@gnu.org>.

2011-09-28  Bruno Haible  <bruno@clisp.org>

	fgetc, fputc, fread, fwrite tests: Fix link error.
	* tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
	on non-MSVC platforms.
	* tests/test-fputc.c (main): Likewise.
	* tests/test-fread.c (main): Likewise.
	* tests/test-fwrite.c (main): Likewise.
	Reported by Jim Meyering.

2011-09-27  Bruno Haible  <bruno@clisp.org>

	fputc, fwrite tests: Avoid test failure on MSVC.
	* tests/test-fgetc.c: Include msvc-inval.h.
	(main): Invoke gl_msvc_inval_ensure_handler.
	* tests/test-fputc.c: Include msvc-inval.h.
	(main): Invoke gl_msvc_inval_ensure_handler.
	* tests/test-fread.c: Include msvc-inval.h.
	(main): Invoke gl_msvc_inval_ensure_handler.
	* tests/test-fwrite.c: Include msvc-inval.h.
	(main): Invoke gl_msvc_inval_ensure_handler.
	* modules/fgetc-tests (Depends-on): Add msvc-inval.
	* modules/fputc-tests (Depends-on): Likewise.
	* modules/fread-tests (Depends-on): Likewise.
	* modules/fwrite-tests (Depends-on): Likewise.

2011-09-27  Bruno Haible  <bruno@clisp.org>

	raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
	* lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
	(raise): Remove older, duplicated declaration.
	(_gl_raise_SIGPIPE): New declaration.
	* lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
	(rpl_raise): Remove function.
	* lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
	a gnulib-defined SIGPIPE here.
	* m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
	'sigprocmask' has detected missing signal-blocking and the module
	'sigpipe' is enabled.
	Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.

2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>

	base64-tests: avoid memory leak
	* tests/test-base64.c (main): Plug memory leak.

	base32: new module
	* modules/base32: New module.
	* lib/base32.c: New file.
	* lib/base32.h: Likewise.
	* m4/base32.m4: Likewise.
	* modules/base32-tests: New test.
	* tests/test-base32.c: Likewise.
	* MODULES.html.sh (Misc): Mention it.

2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>

	gnulib: use more-standard license notice wording
	* gnulib-tool (func_emit_copyright_notice): When emitting a
	license notice into a file, use the standard wording as suggested
	by the current information for GNU maintainers, except say "file"
	rather than "program".  The new wording gives a license version
	number, which addresses an issue raised by Glenn Morris in
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
	* m4/onceonly.m4: Use that same wording here, too.

	dup2: minor simplification
	* m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
	as lib/dup2.c no longer uses 'inline'.

2011-09-25  Bruno Haible  <bruno@clisp.org>

	strings: Fix compilation error on MSVC.
	* lib/strings.in.h: Include <stddef.h> for size_t.

2011-09-25  Bruno Haible  <bruno@clisp.org>

	fflush et al.: Document limitation on MSVC.
	* doc/posix-functions/fflush.texi: Document possible crash in handling
	mode other than DEFAULT_HANDLING.
	* doc/posix-functions/fgetc.texi: Likewise.
	* doc/posix-functions/fputc.texi: Likewise.
	* doc/posix-functions/fread.texi: Likewise.
	* doc/posix-functions/fwrite.texi: Likewise.

2011-09-25  Bruno Haible  <bruno@clisp.org>

	msvc-inval: Allow three invalid parameter handling modes.
	* lib/msvc-inval.h: Don't include <stdlib.h> here.
	(DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
	macros.
	(gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
	DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
	SANE_LIBRARY_HANDLING as a no-op.
	* lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
	<stdlib.h>.
	(gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.

2011-09-25  Bruno Haible  <bruno@clisp.org>

	msvc-inval: Make handler multithread-safe.
	* lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
	(gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
	declarations.
	(gl_msvc_inval_current): New declaration.
	(TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
	Operate on the structure returned by gl_msvc_inval_current().
	* lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
	Remove varaiables.
	(tls_index, tls_initialized): New variables.
	(not_per_thread): New variable.
	(gl_msvc_inval_current): New function.
	(gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
	returned by gl_msvc_inval_current().

2011-09-25  Bruno Haible  <bruno@clisp.org>

	msvc-inval: Install handler globally.
	* lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
	!_MSC_VER.
	(gl_msvc_invalid_parameter_handler): Remove declaration.
	(gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
	declarations.
	(TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
	Install the handler globally, don't uninstall it.
	* lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
	(gl_msvc_invalid_parameter_handler): Make static. If the restart is not
	currently valid, call RaiseException instead.
	(gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
	for !_MSC_VER.

2011-09-25  Bruno Haible  <bruno@clisp.org>

	strerror_r-posix: Fix for MSVC 9.
	* lib/strerror_r.c (local_snprintf): New function.
	(snprintf): Define to local_snprintf, not to _snprintf.

2011-09-25  Bruno Haible  <bruno@clisp.org>

	ftruncate: Support for MSVC 9.
	* lib/ftruncate.c: Include errno.h, msvc-inval.h.
	(chsize_nothrow): New function.
	(chsize): Redefine as a macro.
	* m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
	* modules/ftruncate (Depends-on): Add msvc-inval.

2011-09-25  Bruno Haible  <bruno@clisp.org>

	New module 'fstat'.
	* lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
	* lib/fstat.c: New file, based on a piece of lib/fchdir.c.
	* lib/fchdir.c (rpl_fstat): Remove function.
	* m4/fstat.m4: New file.
	* m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
	* m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
	declared.
	(gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
	* modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
	* modules/fstat: New file.
	* modules/sys_stat-tests (Depends-on): Remove fstat-tests.
	* tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
	is set.
	* doc/posix-functions/fstat.texi: Mention the new module and the
	problem on MSVC.
	* NEWS: Mention the change.
	* modules/acl (Depends-on): Add fstat.
	* modules/chdir-safer (Depends-on): Likewise.
	* modules/chown (Depends-on): Likewise.
	* modules/copy-file (Depends-on): Likewise.
	* modules/fchdir (Depends-on): Likewise.
	* modules/fdopendir (Depends-on): Likewise.
	* modules/fopen (Depends-on): Likewise.
	* modules/fts (Depends-on): Likewise.
	* modules/getcwd (Depends-on): Likewise.
	* modules/isapipe (Depends-on): Likewise.
	* modules/linkat (Depends-on): Likewise.
	* modules/lseek (Depends-on): Likewise.
	* modules/mkdir-p (Depends-on): Likewise.
	* modules/open (Depends-on): Likewise.
	* modules/openat (Depends-on): Likewise.
	* modules/read-file (Depends-on): Likewise.
	* modules/renameat (Depends-on): Likewise.
	* modules/utimens (Depends-on): Likewise.

2011-09-25  Bruno Haible  <bruno@clisp.org>

	linkat: Fix compilation on MSVC 9.
	* lib/linkat.c: Don't include <stdint.h>.

2011-09-25  Bruno Haible  <bruno@clisp.org>

	fclose: Support for MSVC 9.
	* lib/fclose.c: Include msvc-inval.h.
	(fclose_nothrow): New function.
	(rpl_fclose): Use it.
	* modules/fclose (Depends-on): Add msvc-inval.
	* doc/posix-functions/fclose.texi: Mention the problem on MSVC.

2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>

	dup2: minor simplifications
	* lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
	that it's a performance win.
	(rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
	! defined __CYGWIN__)" to "ifdef F_GETFL".

2011-09-24  Jim Meyering  <meyering@redhat.com>

	test-futimens: avoid a warning from gcc -Wshadow
	* tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
	to avoid a shadowing warning.

2011-09-24  Bruno Haible  <bruno@clisp.org>

	fdopen: Support for MSVC 9.
	* m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
	HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
	* lib/fdopen.c: Include msvc-inval.h.
	(fdopen_nothrow): New function.
	(rpl_fdopen): Use it.
	* modules/fdopen (Depends-on): Add msvc-inval.
	* modules/fclose-tests (Depends-on): Add fdopen.
	* modules/fflush-tests (Depends-on): Likewise.
	* modules/fgetc-tests (Depends-on): Likewise.
	* modules/fputc-tests (Depends-on): Likewise.
	* modules/fread-tests (Depends-on): Likewise.
	* modules/freopen-tests (Depends-on): Likewise.
	* modules/fseeko-tests (Depends-on): Likewise.
	* modules/ftello-tests (Depends-on): Likewise.
	* modules/fwrite-tests  (Depends-on): Likewise.
	* doc/posix-functions/fdopen.texi: Mention the problem on MSVC.

2011-09-24  Bruno Haible  <bruno@clisp.org>

	fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
	* modules/fgetc-tests (Depends-on): Add unistd.
	* modules/fputc-tests (Depends-on): Likewise.
	* modules/fread-tests (Depends-on): Likewise.
	* modules/fwrite-tests (Depends-on): Likewise.

2011-09-24  Bruno Haible  <bruno@clisp.org>

	dup: Simplify autoconf test.
	* m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
	on gl_MSVC_INVAL's result.

2011-09-24  Bruno Haible  <bruno@clisp.org>

	Tests for function fwrite().
	* modules/fwrite-tests: New file.
	* tests/test-fwrite.c: New file.
	* modules/stdio-tests (Depends-on): Add fwrite-tests.

	Tests for function fread().
	* modules/fread-tests: New file.
	* tests/test-fread.c: New file.
	* modules/stdio-tests (Depends-on): Add fread-tests.

	Activate fputc tests.
	* modules/stdio-tests (Depends-on): Add fputc-tests.

	Enhance fgetc, fputc tests.
	* tests/test-fgetc.c (main): Also test the stream's error indicator.
	* tests/test-fputc.c (main): Likewise.

2011-09-24  Bruno Haible  <bruno@clisp.org>

	write: Support for MSVC 9.
	* lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
	is not 1.
	* lib/write.c (write_nothrow): New function.
	(rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
	not 1. Use write_nothrow.
	* m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
	invalid parameter handler.
	(gl_PREREQ_WRITE): New macro.
	* modules/write (Depends-on): Add msvc-inval.
	(configure.ac): Invoke gl_PREREQ_WRITE.
	* doc/posix-functions/write.texi: Mention the problem on MSVC.

2011-09-24  Bruno Haible  <bruno@clisp.org>

	read: Fix last commit.
	* lib/read.c (read_nothrow): Change return type to 'ssize_t'.

2011-09-24  Bruno Haible  <bruno@clisp.org>

	dup2: Fix last commit.
	* lib/dup2.c: Restore comments. Treat Cygwin like Unix.
	(rpl_dup2): Disable fcntl workaround on native Windows.

	sigprocmask: Make code safer.
	* lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
	section that changes macro definitions for this compilation unit.

2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>

	dup2: clarify by coalescing Windows-specific material
	* lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
	"msvc-nothrow.h"' to the Windows-specific section, so that the
	Emacs source need not contain these include files.
	(ms_windows_dup2): Rename from dup2_nothrow, and move all the
	Windows-specific fixes into this function rather than just the
	nothrow fix, as this shortens and clarifies the code.  Always
	define as a function, as that's a bit cleaner than having it be
	sometimes a function and sometimes a macro.
	(rpl_dup2): Move the Windows-specific stuff out of here and into
	ms_windows_dup2.  Don't protect the Haiku-related fix with
	"#if !defined __linux__", as the same code also works around
	a Linux kernel bug, and it doesn't add any system calls on any
	platform.  Add comment about FreeBSD 6.1.

	sigprocmask: move #include directive
	* lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
	Windows-specific section, so that the Emacs source need not
	contain msvc-inval.h.

2011-09-23  Bruno Haible  <bruno@clisp.org>

	read: Support for MSVC 9.
	* lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
	is not 1.
	* lib/read.c (read_nothrow): New function.
	(rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
	read_nothrow.
	* m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
	invalid parameter handler.
	(gl_PREREQ_READ): New macro.
	* modules/read (Depends-on): Add msvc-inval.
	(configure.ac): Invoke gl_PREREQ_READ.
	* doc/posix-functions/read.texi: Mention the problem on MSVC.

2011-09-23  Bruno Haible  <bruno@clisp.org>

	close: Support for MSVC 9.
	* lib/close.c: Include <errno.h>, msvc-inval.h.
	(close_nothrow): New function.
	(rpl_close): Use it.
	* m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
	invalid parameter handler.
	* modules/close (Depends-on): Add msvc-inval.
	* modules/dup2-tests (Depends-on): Add close.
	* modules/dup3-tests (Depends-on): Likewise.
	* modules/fcntl-tests (Depends-on): Likewise.
	* modules/spawn-pipe-tests (Depends-on): Likewise.
	* modules/unistd-safer-tests (Depends-on): Likewise.
	* doc/posix-functions/close.texi: Mention the problem on MSVC.

2011-09-23  Bruno Haible  <bruno@clisp.org>

	New module 'dup'.
	* lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
	Allow replacement.
	* lib/dup.c: New file.
	* lib/fchdir.c (rpl_dup): Remove function.
	* m4/dup.m4: New file.
	* m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
	* m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
	(gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
	* modules/unistd (Makefile.am): Substitute GNULIB_DUP.
	* modules/dup: New file.
	* tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
	'dup' module is in use.
	* modules/fdopendir (Depends-on): Add dup.
	* modules/fdutimensat-tests (Depends-on): Likewise.
	* modules/fts (Depends-on): Likewise.
	* modules/futimens-tests (Depends-on): Likewise.
	* modules/posix_spawnp-tests (Depends-on): Likewise.
	* modules/unistd-safer-tests (Depends-on): Likewise.
	* modules/utimens-tests (Depends-on): Likewise.
	* doc/posix-functions/dup.texi: Mention the new module and the problem
	on MSVC.

2011-09-23  Bruno Haible  <bruno@clisp.org>

	getdtablesize: Support for MSVC 9.
	* lib/getdtablesize.c: Include msvc-inval.h.
	(_setmaxstdio_nothrow): New function.
	(_setmaxstdio): Redefine it.
	* m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
	* modules/getdtablesize (Depends-on): Add msvc-inval.
	(configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.

2011-09-23  Bruno Haible  <bruno@clisp.org>

	signal-h: Rename from signal.
	* modules/signal-h: Renamed from modules/signal.
	* modules/pthread_sigmask (Depends-on): Update.
	* modules/raise (Depends-on): Likewise.
	* modules/sigaction (Depends-on): Likewise.
	* modules/sigpipe (Depends-on): Likewise.
	* modules/sigprocmask (Depends-on): Likewise.
	* modules/sys_select (Depends-on): Likewise.
	* modules/signal-h-tests: Renamed from modules/signal-tests.
	(Files, Depends-on, Makefile.am): Update.
	* tests/test-signal-h.c: Renamed from tests/test-signal.c.
	* modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
	(Files, Makefile.am): Update.
	* tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
	* tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
	* modules/signal: New placeholder file.
	* MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
	* doc/posix-headers/signal.texi: Update.
	* NEWS: Mention the change.

2011-09-23  Bruno Haible  <bruno@clisp.org>

	sigprocmask: Avoid crashes through signal() on MSVC 9.
	* lib/sigprocmask.c: Include msvc-inval.h.
	(signal_nothrow): New function.
	(signal): Redefine it.
	* m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
	* modules/sigprocmask (Depends-on): Add msvc-inval.
	* doc/posix-functions/signal.texi: Mention the problem on MSVC.

2011-09-23  Bruno Haible  <bruno@clisp.org>

	Tests for module 'raise'.
	* modules/raise-tests: New file.
	* tests/test-raise.c: New file.

	raise: Support for MSVC.
	* lib/signal.in.h (raise): New declaration.
	* lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
	for native Windows platforms.
	* m4/raise.m4: New file.
	* m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
	HAVE_RAISE, REPLACE_RAISE.
	* modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
	REPLACE_RAISE.
	* modules/raise (Status, Notice): Remove fields.
	(Files): Add m4/raise.m4.
	(Depends-on): Add signal, msvc-inval.
	(configure.ac): Use the common idioms.
	(Maintainer): Add me.
	* tests/test-signal-c++.cc: Check the signature of raise.
	* doc/posix-functions/raise.texi: Mention the problem on MSVC.

2011-09-23  Bruno Haible  <bruno@clisp.org>

	pipe2: Fix compilation on pre-C99 compilers.
	* lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.

2011-09-23  Bruno Haible  <bruno@clisp.org>

	New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
	* lib/msvc-nothrow.h: New file.
	* lib/msvc-nothrow.c: New file.
	* m4/msvc-nothrow.m4: New file.
	* modules/msvc-nothrow: New file.
	* lib/dup2.c: Include msvc-nothrow.h.
	(rpl_dup2): No need to protect _get_osfhandle call here.
	* lib/accept4.c: Include msvc-nothrow.h.
	* lib/error.c: Likewise.
	* lib/fcntl.c: Likewise.
	* lib/lseek.c: Likewise.
	* lib/nonblocking.c: Likewise.
	* lib/poll.c: Likewise.
	* lib/read.c: Likewise.
	* lib/select.c: Likewise.
	* lib/sockets.h: Likewise.
	* lib/sockets.c: Likewise.
	* lib/stdio-read.c: Likewise.
	* lib/stdio-write.c: Likewise.
	* lib/write.c: Likewise.
	* lib/w32sock.h: Likewise.
	* lib/w32spawn.h: Likewise.
	* lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
	* lib/fsync.c: Likewise.
	* lib/isapipe.c: Likewise.
	* modules/dup2 (Depends-on): Add msvc-nothrow.
	* modules/accept4 (Depends-on): Likewise.
	* modules/error (Depends-on): Likewise.
	* modules/fcntl (Depends-on): Likewise.
	* modules/lseek (Depends-on): Likewise.
	* modules/nonblocking (Depends-on): Likewise.
	* modules/poll (Depends-on): Likewise.
	* modules/read (Depends-on): Likewise.
	* modules/select (Depends-on): Likewise.
	* modules/sockets (Depends-on): Likewise.
	* modules/sigpipe (Depends-on): Likewise.
	* modules/write (Depends-on): Likewise.
	* modules/accept (Depends-on): Likewise.
	* modules/bind (Depends-on): Likewise.
	* modules/connect (Depends-on): Likewise.
	* modules/gethostname (Depends-on): Likewise.
	* modules/getpeername (Depends-on): Likewise.
	* modules/getsockname (Depends-on): Likewise.
	* modules/getsockopt (Depends-on): Likewise.
	* modules/ioctl (Depends-on): Likewise.
	* modules/listen (Depends-on): Likewise.
	* modules/recv (Depends-on): Likewise.
	* modules/recvfrom (Depends-on): Likewise.
	* modules/send (Depends-on): Likewise.
	* modules/sendto (Depends-on): Likewise.
	* modules/setsockopt (Depends-on): Likewise.
	* modules/shutdown (Depends-on): Likewise.
	* modules/socket (Depends-on): Likewise.
	* modules/execute (Depends-on): Likewise.
	* modules/spawn-pipe (Depends-on): Likewise.
	* modules/flock (Depends-on): Likewise.
	* modules/fsync (Depends-on): Likewise.
	* modules/isapipe (Depends-on): Likewise.
	* tests/test-cloexec.c: Include msvc-nothrow.h.
	* tests/test-dup-safer.c: Likewise.
	* tests/test-dup2.c: Likewise.
	* tests/test-dup3.c: Likewise.
	* tests/test-fcntl.c: Likewise.
	* tests/test-pipe.c: Likewise.
	* tests/test-pipe2.c: Likewise.
	* modules/cloexec-tests (Depends-on): Add msvc-nothrow.
	* modules/unistd-safer-tests (Depends-on): Likewise.
	* modules/dup2-tests (Depends-on): Likewise.
	* modules/dup3-tests (Depends-on): Likewise.
	* modules/fcntl-tests (Depends-on): Likewise.
	* modules/pipe-posix-tests (Depends-on): Likewise.
	* modules/pipe2-tests (Depends-on): Likewise.

2011-09-23  Bruno Haible  <bruno@clisp.org>

	dup2: Make code more maintainable.
	* lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
	(rpl_dup2): Use it.
	* m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
	* modules/dup2 (configure.ac): Invoke it.
	Reported by Paul Eggert.

2011-09-23  Bruno Haible  <bruno@clisp.org>

	msvc-inval: Fix compilation error.
	* lib/msvc-inval.h: Include <excpt.h>.

2011-09-23  Bruno Haible  <bruno@clisp.org>

	mkdir: Tweak for MSVC 9.
	* lib/sys_stat.in.h: Update comments.
	* doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.

	Tests for module 'chdir'.
	* modules/chdir-tests: New file.
	* tests/test-chdir.c: New file.

	New module 'chdir'.
	* modules/chdir: New file.
	* lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
	(chdir): New declaration.
	* m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
	(gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
	* modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
	* tests/test-unistd-c++.cc: Check signature of chdir.
	* doc/posix-functions/chdir.texi: Mention problem on native Windows.
	* modules/chdir-long (Depends-on): Add chdir.
	* modules/fchdir (Depends-on): Likewise.
	* modules/rename (Depends-on): Likewise.
	* modules/savewd (Depends-on): Likewise.

	rmdir: Support for mingw, MSVC 9.
	* lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
	* doc/posix-functions/getcwd.texi: Mention problem on native Windows.

	getcwd: Tweak for MSVC 9.
	* lib/unistd.in.h: Update comments.
	* doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.

2011-09-22  Bruno Haible  <bruno@clisp.org>

	strerror_r-posix: Avoid a link error on MSVC.
	* m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
	* lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.

2011-09-22  Bruno Haible  <bruno@clisp.org>

	select: Avoid link errors on MSVC.
	* m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
	* modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
	* modules/pselect (Link): Likewise.
	* NEWS: Mention the change.
	* modules/select-tests (Makefile.am): Link test-select, test-select-fd,
	test-select-stdin against $(LIB_SELECT).
	* modules/pselect-tests (Makefile.am): Link test-pselect against
	$(LIB_SELECT).

2011-09-22  Bruno Haible  <bruno@clisp.org>

	select: Avoid compilation error on MSVC.
	* lib/select.c: Don't include <stdbool.h>.

2011-09-21  Bruno Haible  <bruno@clisp.org>

	Consolidate all uses of PATH_MAX in *.m4 files.
	* m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
	macros.
	* m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
	and gl_PATHMAX_SNIPPET.
	* m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
	* m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
	* modules/chdir-long (Files): Add m4/pathmax.m4.
	* modules/getcwd (Files): Likewise.

2011-09-21  Bruno Haible  <bruno@clisp.org>

	ftruncate: Un-deprecate, concentrate on Win32 support.
	* modules/ftruncate (Status, Notice): Remove sections.
	(Depends-on): Add largefile.
	* m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
	non-mingw platforms.
	* lib/ftruncate.c: Remove code for the older platforms. For Win32,
	include <io.h>.
	* modules/perror-tests (Depends-on): Add ftruncate.
	* doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
	'ftruncate' module.

2011-09-21  Bruno Haible  <bruno@clisp.org>

	Add dependencies to new dirent related modules.
	* modules/opendir (Depends-on): Add closedir.
	* modules/getcwd (Depends-on): Add opendir, closedir.
	* modules/dirent-safer-tests (Depends-on): Likewise.
	* modules/fdopendir-tests (Depends-on): Likewise.
	* modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
	* modules/renameat-tests (Depends-on): Likewise.

2011-09-21  Bruno Haible  <bruno@clisp.org>

	opendir: Avoid compilation error on mingw.
	* lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
	* modules/opendir (Depends-on): Add unistd.

2011-09-21  Bruno Haible  <bruno@clisp.org>

	ftruncate tests: Avoid a test failure on mingw.
	* tests/test-ftruncate.c (main): Allow a failure with EACCES.

2011-09-21  Bruno Haible  <bruno@clisp.org>

	select tests: Avoid test failures on OSF/1 5.1 and mingw.
	* tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
	native Windows.

2011-09-21  Bruno Haible  <bruno@clisp.org>

	New module 'fdopen'.
	* lib/stdio.in.h (fdopen): New declaration.
	* lib/fdopen.c: New file.
	* m4/fdopen.m4: New file.
	* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
	REPLACE_FDOPEN.
	* modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
	REPLACE_FDOPEN.
	* modules/fdopen: New file.
	* modules/stdio-tests (Depends-on): Remove fdopen-tests.
	* tests/test-stdio-c++.cc: Check signature of fdopen.
	* doc/posix-functions/fdopen.texi: Mention the new module.

2011-09-21  Bruno Haible  <bruno@clisp.org>

	unlockpt tests: Avoid test failure on NetBSD 5.1.
	* tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
	* doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.

2011-09-21  Bruno Haible  <bruno@clisp.org>

	getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
	* tests/test-getlogin.c (main): Allow a failure with EINVAL.
	* tests/test-getlogin_r.c (main): Likewise.

2011-09-20  Bruno Haible  <bruno@clisp.org>

	time tests: Don't require pid_t.
	* doc/posix-headers/time.texi: Revert last change.
	* m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
	* tests/test-time.c: Comment out the check for pid_t.

2011-09-20  Bruno Haible  <bruno@clisp.org>

	fsync tests: Avoid a test failure on mingw.
	* tests/test-fsync.c (main): Allow a failure with EIO.

2011-09-20  Bruno Haible  <bruno@clisp.org>

	euidaccess: Update comments.
	* m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.

2011-09-20  Bruno Haible  <bruno@clisp.org>

	Ensure EBADF returns for socket functions on mingw.
	* lib/accept.c (rpl_accept): Fail with error EBADF if the file
	descriptor is invalid.
	* lib/bind.c (rpl_bind): Likewise.
	* lib/connect.c (rpl_connect): Likewise.
	* lib/getpeername.c (rpl_getpeername): Likewise.
	* lib/getsockname.c (rpl_getsockname): Likewise.
	* lib/getsockopt.c (rpl_getsockopt): Likewise.
	* lib/listen.c (rpl_listen): Likewise.
	* lib/recv.c (rpl_recv): Likewise.
	* lib/recvfrom.c (rpl_recvfrom): Likewise.
	* lib/send.c (rpl_send): Likewise.
	* lib/sendto.c (rpl_sendto): Likewise.
	* lib/setsockopt.c (rpl_setsockopt): Likewise.
	* lib/shutdown.c (rpl_shutdown): Likewise.

2011-09-20  Bruno Haible  <bruno@clisp.org>

	select tests: EBADF tests.
	* tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
	test_bad_fd): New functions.
	(test_function): Invoke also test_bad_fd.

2011-09-20  Bruno Haible  <bruno@clisp.org>

	Tests for module 'posix_spawn_file_actions_addopen.
	* modules/posix_spawn_file_actions_addopen-tests: New file.
	* tests/test-posix_spawn_file_actions_addopen.c: New file.

	Tests for module 'posix_spawn_file_actions_adddup2'.
	* modules/posix_spawn_file_actions_adddup2-tests: New file.
	* tests/test-posix_spawn_file_actions_adddup2.c: New file.

	Tests for module 'posix_spawn_file_actions_addclose'.
	* modules/posix_spawn_file_actions_addclose-tests: New file.
	* tests/test-posix_spawn_file_actions_addclose.c: New file.

2011-09-20  Bruno Haible  <bruno@clisp.org>

	Tests for module 'unlockpt'.
	* modules/unlockpt-tests: New file.
	* tests/test-unlockpt.c: New file.
	* doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.

	Tests for module 'grantpt'.
	* modules/grantpt-tests: New file.
	* tests/test-grantpt.c: New file.
	* doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.

2011-09-20  Bruno Haible  <bruno@clisp.org>

	freopen tests: EBADF tests.
	* tests/test-freopen.c: Include errno.h, unistd.h.
	(main): Add tests for EBADF, commented out for the moment.

	fclose tests: EBADF tests.
	* tests/test-fclose.c (main): Add tests for EBADF.

	fflush tests: EBADF tests.
	* tests/test-fflush.c: Include errno.h, macros.h.
	(main): Add tests for EBADF.

	ftello tests: EBADF tests.
	* tests/test-ftello4.sh: New file.
	* tests/test-ftello4.c: New file.
	* modules/ftello-tests (Files): Add them.
	(Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.

	fseeko tests: EBADF tests.
	* tests/test-fseeko4.sh: New file.
	* tests/test-fseeko4.c: New file.
	* modules/fseeko-tests (Files): Add them.
	(Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.

	Tests for function fputc().
	* modules/fputc-tests: New file.
	* tests/test-fputc.c: New file.
	* modules/stdio-tests (Depends-on): Add fputc-tests.

	Tests for function fgetc().
	* modules/fgetc-tests: New file.
	* tests/test-fgetc.c: New file.
	* modules/stdio-tests (Depends-on): Add fgetc-tests.

	Tests for function fdopen().
	* modules/fdopen-tests: New file.
	* tests/test-fdopen.c: New file.
	* modules/stdio-tests (Depends-on): Add fdopen-tests.

	Tests for module 'vdprintf'.
	* modules/vdprintf-tests: New file.
	* tests/test-vdprintf.c: New file.

	Tests for module 'dprintf'.
	* modules/dprintf-tests: New file.
	* tests/test-dprintf.c: New file.

2011-09-20  Bruno Haible  <bruno@clisp.org>

	Tests for module 'ioctl'.
	* modules/ioctl-tests: New file.
	* tests/test-ioctl.c: New file.

2011-09-20  Bruno Haible  <bruno@clisp.org>

	fcntl tests: EBADF tests.
	* tests/test-fcntl.c (main): Add more tests for EBADF.

2011-09-20  Bruno Haible  <bruno@clisp.org>

	utimensat tests: EBADF tests.
	* tests/test-utimensat.c (main): Add tests for EBADF.

	renameat tests: EBADF tests.
	* tests/test-renameat.c (main): Add tests for EBADF.

	mkfifoat tests: EBADF tests.
	* tests/test-mkfifoat.c (main): Add tests for EBADF.

	readlinkat tests: EBADF tests.
	* tests/test-readlinkat.c (main): Add tests for EBADF.

	symlinkat tests: EBADF tests.
	* tests/test-symlinkat.c (main): Add tests for EBADF.

	linkat tests: EBADF tests.
	* tests/test-linkat.c (main): Add tests for EBADF.

	Tests for module 'faccessat'.
	* modules/faccessat-tests: New file.
	* tests/test-faccessat.c: New file.

	fdopendir tests: EBADF tests.
	* tests/test-fdopendir.c (main): Add more tests for EBADF.

	openat tests: EBADF tests.
	* tests/test-fchownat.c (main): Add tests for EBADF.
	* tests/test-fstatat.c (main): Likewise.
	* tests/test-mkdirat.c (main): Likewise.
	* tests/test-openat.c (main): Likewise.
	* tests/test-unlinkat.c (main): Likewise.
	* tests/test-fchmodat.c: New file.
	* modules/openat-tests (Files): Add tests/test-fchmodat.c.
	(Makefile.am): Also run 'test-fchmodat'.

2011-09-20  Bruno Haible  <bruno@clisp.org>

	utimens, futimens, fdutimensat tests: EBADF tests.
	* tests/test-futimens.h (test_futimens): Add more tests for EBADF.

	Tests for function fstat().
	* modules/fstat-tests: New file.
	* tests/test-fstat.c: New file.
	* modules/sys_stat-tests (Depends-on): Add fstat-tests.

2011-09-20  Bruno Haible  <bruno@clisp.org>

	test-ttyname_r tests: EBADF tests.
	* tests/test-ttyname_r.c (main): Add tests for EBADF.

	Tests for module 'isatty'.
	* modules/isatty-tests: New file.
	* tests/test-isatty.c: New file.

	Tests for module 'write'.
	* modules/write-tests: New file.
	* tests/test-write.c: New file.

	Tests for module 'read'.
	* modules/read-tests: New file.
	* tests/test-read.c: New file.

	pwrite tests: EBADF tests.
	* tests/test-pwrite.c (main): Add tests for EBADF.

	pread tests: EBADF tests.
	* tests/test-pread.c (main): Add tests for EBADF.

	lseek tests: EBADF tests.
	* tests/test-lseek.c (main): Add more tests for EBADF.

	Tests for module 'ftruncate'.
	* modules/ftruncate-tests: New file.
	* tests/test-ftruncate.sh: New file.
	* tests/test-ftruncate.c: New file.

	fsync tests: EBADF tests.
	* tests/test-fsync.c (main): Add more tests for EBADF.

	fdatasync tests: EBADF tests.
	* tests/test-fdatasync.c (main): Add more tests for EBADF.

	Tests for module 'fchown'.
	* modules/fchown-tests: New file.
	* tests/test-fchown.c: New file.

	Tests for module 'fchmod'.
	* modules/fchmod-tests: New file.
	* tests/test-fchmod.c: New file.

	fchdir tests: EBADF tests.
	* tests/test-fchdir.c (main): Add more tests for EBADF.

	dup2 tests: EBADF tests.
	* tests/test-dup2.c (main): Add more tests for EBADF.

	Tests for module 'dup'.
	* modules/dup-tests: New file.
	* tests/test-dup.c: New file.

	Tests for module 'close'.
	* modules/close-tests: New file.
	* tests/test-close.c: New file.

2011-09-20  Bruno Haible  <bruno@clisp.org>

	Tests for module 'shutdown'.
	* modules/shutdown-tests: New file.
	* tests/test-shutdown.c: New file.

	Tests for module 'setsockopt'.
	* modules/setsockopt-tests: New file.
	* tests/test-setsockopt.c: New file.

	Tests for module 'sendto'.
	* modules/sendto-tests: New file.
	* tests/test-sendto.c: New file.

	Tests for module 'send'.
	* modules/send-tests: New file.
	* tests/test-send.c: New file.

	Tests for module 'recvfrom'.
	* modules/recvfrom-tests: New file.
	* tests/test-recvfrom.c: New file.

	Tests for module 'recv'.
	* modules/recv-tests: New file.
	* tests/test-recv.c: New file.

	Tests for module 'listen'.
	* modules/listen-tests: New file.
	* tests/test-listen.c: New file.

	Tests for module 'getsockopt'.
	* modules/getsockopt-tests: New file.
	* tests/test-getsockopt.c: New file.

	Tests for module 'getsockname'.
	* modules/getsockname-tests: New file.
	* tests/test-getsockname.c: New file.

	Tests for module 'getpeername'.
	* modules/getpeername-tests: New file.
	* tests/test-getpeername.c: New file.

	Tests for module 'connect'.
	* modules/connect-tests: New file.
	* tests/test-connect.c: New file.

	Tests for module 'bind'.
	* modules/bind-tests: New file.
	* tests/test-bind.c: New file.

	accept4 tests: Fix for native Windows.
	* tests/test-accept4.c: Include sockets.h.
	(main): Invoke gl_sockets_startup.
	* modules/accept4-tests (Depends-on): Add sockets.

	accept tests: Fix for native Windows.
	* tests/test-accept.c: Include sockets.h.
	(main): Invoke gl_sockets_startup.
	* modules/accept-tests (Depends-on): Add sockets.

2011-09-19  Bruno Haible  <bruno@clisp.org>

	msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
	* lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
	do...while(0).
	* lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
	Suggested by Paul Eggert.

2011-09-19  Bruno Haible  <bruno@clisp.org>

	sched: Ensure pid_t is defined.
	* m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
	not define pid_t.
	* lib/sched.in.h: Include <sys/types.h>.
	* doc/posix-headers/sched.texi: Mention the pid_t problem.
	Reported by Tom G. Christensen <tgc@jupiterrise.com>.

2011-09-19  Bruno Haible  <bruno@clisp.org>

	msvc-inval: Ensure the entire expansion is a single statement.
	* lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
	of braces.

2011-09-19  Jim Meyering  <meyering@redhat.com>

	tests: use printf, not echo in init.sh's warn_ function
	* tests/init.sh (warn_): Use printf, not echo.  The latter would
	misbehave when given strings containing a backslash or starting
	with e.g., -n.  James Youngman suggested setting IFS.

2011-09-19  Eric Blake  <eblake@redhat.com>

	futimens: enhance test
	* tests/test-futimens.h (test_futimens): Also check for EBADF on
	closed non-negative fd.

	date: accept 'hence' as opposite of 'ago'
	* lib/parse-datetime.y (relative_time_table): Add 'hence'.
	* tests/test-parse-datetime.c (main): Enhance test.
	Suggested by Jesse Wilson.

2011-09-19  Jim Meyering  <meyering@redhat.com>

	getcwd: don't fail in a deep directory on a system without openat
	Before this change, getcwd would fail when called from a directory
	of depth PATH_MAX / 3 or greater.  That was due to the fact that
	the non-openat implementation used "..", "../..", "../../..", etc.
	to access ancestor directories.  With too many, that string would
	be longer than PATH_MAX.
	* lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
	using gnulib's openat replacement.
	* m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
	we're using the replacement function.

2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>

	maint.mk: avoid warnings from perl about missing files
	* top/maint.mk (def_sym_regex): Ignore files listed in
	$(gl_other_headers_) that do not exist, say because a project
	does not use a corresponding module.

2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>

	stat: use pathmax.h only if needed
	* lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
	This is better for Emacs, which does not have a mingw port and
	therefore can avoid the pathmax module.

	utimens: remove dependency on dup2
	* lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
	to work around the Linux kernel bug.
	* modules/utimens (Depends-on): Remove dup2.

2011-09-18  Bruno Haible  <bruno@clisp.org>

	inet_ntop, inet_pton: Look for it also in libresolv.
	* m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
	libnsl, search for it in libresolv.
	* m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
	Needed on Solaris 7.

2011-09-18  Bruno Haible  <bruno@clisp.org>

	accept, accept4 tests: Avoid link error on Solaris.
	* modules/accept-tests (Makefile.am): Link test-accept against
	$(LIBSOCKET).
	* modules/accept4-tests (Makefile.am): Link test-accept4 against
	$(LIBSOCKET).

	accept4: Avoid link error on Solaris.
	* modules/accept4 (Link): New section.

	socket functions: Avoid link errors on Solaris.
	* modules/accept (Depends-on): Add socketlib.
	(Link): New section.
	* modules/bind (Depends-on): Add socketlib.
	(Link): New section.
	* modules/connect (Depends-on): Add socketlib.
	(Link): New section.
	* modules/getpeername (Depends-on): Add socketlib.
	(Link): New section.
	* modules/getsockname (Depends-on): Add socketlib.
	(Link): New section.
	* modules/getsockopt (Depends-on): Add socketlib.
	(Link): New section.
	* modules/listen (Depends-on): Add socketlib.
	(Link): New section.
	* modules/recv (Depends-on): Add socketlib.
	(Link): New section.
	* modules/recvfrom (Depends-on): Add socketlib.
	(Link): New section.
	* modules/send (Depends-on): Add socketlib.
	(Link): New section.
	* modules/sendto (Depends-on): Add socketlib.
	(Link): New section.
	* modules/setsockopt (Depends-on): Add socketlib.
	(Link): New section.
	* modules/shutdown (Depends-on): Add socketlib.
	(Link): New section.
	* modules/socket (Depends-on): Add socketlib.
	(Link): New section.

2011-09-18  Bruno Haible  <bruno@clisp.org>

	ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
	* tests/test-ptsname.c (main): Terminate the test if it takes longer
	than 5 seconds.
	* modules/ptsname-tests (configure.ac): Test for alarm.

2011-09-18  Bruno Haible  <bruno@clisp.org>

	posix_spawn_file_actions_add*: Fix module dependencies.
	* modules/posix_spawn_file_actions_addclose (Dependencies): Add
	posix_spawn_file_actions_init.
	* modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
	* modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.

2011-09-18  Bruno Haible  <bruno@clisp.org>

	rename, renameat tests: Avoid test failures on FreeBSD 6.4.
	* tests/test-rename.h (test_rename): Allow error code EEXIST.
	* tests/test-renameat.c (main): Likewise.

2011-09-18  Bruno Haible  <bruno@clisp.org>

	Tests for module 'accept4'.
	* modules/accept4-tests: New file.
	* tests/test-accept4.c: New file.

2011-09-18  Bruno Haible  <bruno@clisp.org>

	Tests for module 'accept'.
	* modules/accept-tests: New file.
	* tests/test-accept.c: New file.

2011-09-18  Bruno Haible  <bruno@clisp.org>

	dup2: Support for MSVC.
	* lib/dup2.c: Include msvc-inval.h.
	(rpl_dup2): Handle invalid parameter notifications during dup2 and
	_get_osfhandle calls.
	* modules/dup2 (Depends-on): Add msvc-inval.
	* doc/posix-functions/dup2.texi: Mention problem on MSVC.

	New module 'msvc-inval'.
	* lib/msvc-inval.h: New file.
	* lib/msvc-inval.c: New file.
	* m4/msvc-inval.m4: New file.
	* modules/msvc-inval: New file.

2011-09-17  Bruno Haible  <bruno@clisp.org>

	Tests for module 'pclose'.
	* modules/pclose-tests: New file.

	New module 'pclose'.
	* lib/stdio.in.h (pclose): New declaration.
	* lib/pclose.c: New file.
	* m4/pclose.m4: New file.
	* m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
	(gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
	* modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
	* modules/pclose: New file.
	* modules/popen-tests (Depends-on): Add pclose.
	* modules/popen-safer-tests (Depends-on): Likewise.
	* doc/posix-functions/pclose.texi: Mention the new module.

2011-09-17  Bruno Haible  <bruno@clisp.org>

	popen: Support for MSVC.
	* lib/stdio.in.h (popen): Declare it if the system lacks this function.
	* lib/popen.c (popen): Provide alternate definition for native Windows.
	* m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
	* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
	* modules/popen (Depends-on, configure.ac): Update condition.
	* modules/stdio (Makefile.am): Substitute HAVE_POPEN.
	* doc/posix-functions/popen.texi: Mention that the MSVC problem is
	fixed.

2011-09-17  Bruno Haible  <bruno@clisp.org>

	isnanl, isnand, isnanf: Work around MSVC bug.
	* lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.

2011-09-17  Bruno Haible  <bruno@clisp.org>

	sys_socket tests: Fix recent mistake.
	* tests/test-sys_socket.c (t1): Avoid collision of identifiers.

2011-09-17  Bruno Haible  <bruno@clisp.org>

	putenv: Support for MSVC.
	* modules/putenv (Depends-on): Add environ.
	* lib/putenv.c (environ): Disable declaration.
	* lib/unistd.in.h: Update comment.

2011-09-17  Bruno Haible  <bruno@clisp.org>

	math: Avoid macro redefinition warnings on MSVC.
	* lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
	Undefine before redefining.

2011-09-17  Bruno Haible  <bruno@clisp.org>

	doc: Mention functions which are declared as macros.
	* doc/posix-functions/*[fl].texi: Mention that some functions are
	defined as macros with arguments only.

2011-09-17  Bruno Haible  <bruno@clisp.org>

	Add dependencies to new dirent related modules.
	* modules/backupfile (Depends-on): Add opendir, readdir, closedir.
	* modules/fts (Depends-on): Likewise.
	* modules/glob (Depends-on): Likewise.
	* modules/savedir (Depends-on): Likewise.
	* modules/scandir (Depends-on): Likewise.
	* modules/dirent-safer (Depends-on): Add opendir, closedir.
	* modules/fdopendir (Depends-on): Add opendir.

2011-09-17  Bruno Haible  <bruno@clisp.org>

	inet_pton: Support for MSVC on Windows Vista or newer.
	* lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
	* lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
	HAVE_DECL_INET_PTON is defined.
	* m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
	On platforms with <winsock2.h>, test whether inet_pton is declared in
	<ws2tcpip.h>. If so, arrange to replace it.
	* m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
	REPLACE_INET_PTON.
	* modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
	* modules/inet_pton (Files): Add m4/sys_socket_h.m4.
	(Depends-on, configure.ac): Update condition.
	* doc/posix-functions/inet_pton.texi: Mention the MSVC problem.

2011-09-17  Bruno Haible  <bruno@clisp.org>

	inet_ntop: Support for MSVC on Windows Vista or newer.
	* lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
	* lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
	HAVE_DECL_INET_NTOP is defined.
	* m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
	On platforms with <winsock2.h>, test whether inet_ntop is declared in
	<ws2tcpip.h>. If so, arrange to replace it.
	* m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
	REPLACE_INET_NTOP.
	* modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
	* modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
	(Depends-on, configure.ac): Update condition.
	* doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.

2011-09-16  Eric Blake  <eblake@redhat.com>

	test-fsync: yet another enhancement
	* tests/test-fsync.c (main): Also test behavior on read-only text
	file.

2011-09-16  Bruno Haible  <bruno@clisp.org>

	Enhance fsync, fdatasync tests.
	* tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
	* tests/test-fdatasync.c (main): Likewise.

2011-09-16  Bruno Haible  <bruno@clisp.org>

	Support for MSVC compiler: Ensure mode_t gets defined.
	* m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
	* m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
	* m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
	* m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
	* tests/test-fcntl-h.c: Check that mode_t is defined.
	* tests/test-sys_stat.c: Likewise.
	* tests/test-sys_types.c: Likewise.
	* doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
	* doc/posix-headers/sys_stat.texi: Likewise.
	* doc/posix-headers/sys_types.texi: Likewise.

2011-09-16  Bruno Haible  <bruno@clisp.org>

	sys_stat: Support for MSVC.
	* lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
	* tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
	* doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
	MSVC.

2011-09-16  Bruno Haible  <bruno@clisp.org>

	Support for MSVC compiler: Ensure off_t gets defined.
	* lib/unistd.in.h: Include <sys/types.h>.
	* tests/test-fcntl-h.c: Check that off_t is defined.
	* tests/test-sys_stat.c: Likewise.
	* tests/test-sys_types.c: Likewise.

2011-09-16  Eric Blake  <eblake@redhat.com>

	fdatasync: port to Solaris
	* m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
	* modules/fdatasync (Link): Document it.
	* modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.

	fdatasync: port to MacOS X 10.7
	* m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
	declared.
	* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
	* modules/unistd (Makefile.am): Substitute it.
	* lib/unistd.in.h (fdatasync): Declare on MacOS.
	* doc/posix-functions/fdatasync.texi (fdatasync): Document it.

	fdatasync: minor improvements
	* modules/fdatasync (Depends-on): Add condition for fsync.
	* lib/fdatasync.c (fdatasync): Add comment.
	* tests/test-unistd-c++.cc: Test fdatasync.

	unistd: update refs to newer POSIX
	* lib/unistd.in.h: Prefer POSIX 2008 over 2001.
	Suggested by Bruno Haible.

	fdatasync: new module
	* modules/fsync (Description): Document difference to fdatasync.
	* modules/fdatasync: New module.
	* m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
	* lib/fdatasync.c (fdatasync): Likewise.
	* m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
	defaults.
	* modules/unistd (Makefile.am): Set witnesses.
	* lib/unistd.in.h (fdatasync): Declare.
	* MODULES.html.sh: Document it.
	* doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
	* modules/fdatasync-tests: New test.
	* tests/test-fdatasync.c: Likewise.

2011-09-16  Eric Blake  <eblake@redhat.com>

	test-fsync: enhance tests
	* modules/fsync-tests (Depends-on): Add errno, for mingw.
	* tests/test-fsync.c (main): Enhance test.

2011-09-15  Bruno Haible  <bruno@clisp.org>

	Support for MSVC compiler: Ensure ssize_t gets defined.
	* doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
	* doc/posix-headers/stdio.texi: Likewise.
	* modules/stdio (Depends-on): Add ssize_t.
	* modules/sys_socket (Depends-on): Likewise.
	* modules/sys_types (Depends-on): Likewise.
	* modules/sys_uio (Depends-on): Likewise.
	* modules/unistd (Depends-on): Likewise.
	* tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
	* tests/test-sys_types.c: Check that ssize_t is defined.

2011-09-14  Bruno Haible  <bruno@clisp.org>

	Avoid using #, the m4 comment starter character, near brackets.
	* m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
	delimiter character in sed expressions.
	* m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
	Suggested by Eric Blake.

	Properly quote AC_CHECK_DECLS' 4th argument.
	* m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
	argument.
	* m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
	* m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
	* m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
	* m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
	* m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
	* m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
	* m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
	* m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
	* m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
	* m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
	* m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
	* m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
	* m4/isfinite.m4 (gl_ISFINITE): Likewise.
	* m4/isinf.m4 (gl_ISINF): Likewise.
	* m4/logb.m4 (gl_FUNC_LOGB): Likewise.
	* m4/readutmp.m4 (gl_READUTMP): Likewise.
	* m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
	* m4/round.m4 (gl_FUNC_ROUND): Likewise.
	* m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
	* m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
	* m4/signbit.m4 (gl_SIGNBIT): Likewise.
	* m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
	* m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
	* m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
	* m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
	* m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
	* m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
	* m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
	* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
	Reported by Eric Blake.

	Properly quote AC_CHECK_DECL's 4th argument.
	* m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
	argument.
	* m4/argp.m4 (gl_ARGP): Likewise.
	* m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
	* m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
	* m4/cosl.m4 (gl_FUNC_COSL): Likewise.
	* m4/expl.m4 (gl_FUNC_EXPL): Likewise.
	* m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
	* m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
	* m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
	* m4/logl.m4 (gl_FUNC_LOGL): Likewise.
	* m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
	* m4/sinl.m4 (gl_FUNC_SINL): Likewise.
	* m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
	* m4/tanl.m4 (gl_FUNC_TANL): Likewise.
	Reported by Eric Blake.

2011-09-14  Eric Blake  <eblake@redhat.com>

	opendir: avoid compile warning
	* lib/opendir.c (includes): Always include errno.h.
	Reported by Tatsuro MATSUOKA.

2011-09-14  Jim Meyering  <meyering@redhat.com>

	maint.mk: sc_tight_scope: propagate failure from sub-make
	* top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
	Reported by Martin von Gagern.

2011-09-13  Bruno Haible  <bruno@clisp.org>

	tempname: Support for MSVC.
	* doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
	MSVC.
	* modules/tempname (Depends-on): Add fcntl-h.

2011-09-13  Bruno Haible  <bruno@clisp.org>

	sys_time: Support for MSVC.
	* m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
	gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
	include <winsock2.h>.
	* lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
	function declarations that collide with POSIX.
	* modules/sys_time (Files): Add m4/sys_socket_h.m4.
	(Makefile.am): Substitute HAVE_WINSOCK2_H.

2011-09-13  Bruno Haible  <bruno@clisp.org>

	stat: Support for MSVC.
	* lib/stat.c: Include pathmax.h.
	* modules/stat (Depends-on): Add pathmax.

	pathmax: Support for native Windows.
	* lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.

2011-09-12  Bruno Haible  <bruno@clisp.org>

	New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
	* lib/dirent.in.h (struct dirent): New type.
	(DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
	DT_WHT): New macros.
	(DIR): New type.
	(opendir, closedir): Declare only if the module 'opendir' is enabled.
	(readdir, rewinddir): New declarations.
	* lib/dirent-private.h: New file.
	* lib/opendir.c: New file.
	* lib/readdir.c: New file.
	* lib/rewinddir.c: New file.
	* lib/closedir.c: New file.
	* lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
	* m4/opendir.m4: New file.
	* m4/readdir.m4: New file.
	* m4/rewinddir.m4: New file.
	* m4/closedir.m4: New file.
	* m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
	REPLACE_CLOSEDIR here.
	* m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
	readdir, rewinddir are declared.
	(gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
	GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
	HAVE_REWINDDIR, HAVE_CLOSEDIR.
	* modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
	GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
	HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
	* modules/opendir: New file.
	* modules/readdir: New file.
	* modules/rewinddir: New file.
	* modules/closedir: New file.
	* doc/posix-functions/opendir.texi: Mention the 'opendir' module.
	* doc/posix-functions/readdir.texi: Mention the 'readdir' module.
	* doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
	* doc/posix-functions/closedir.texi: Mention the 'closedir' module.
	* NEWS: Mention the 'fchdir' change.

2011-09-11  Bruno Haible  <bruno@clisp.org>

	asm-underscore.m4: Support for MSVC.
	* m4/asm-underscore.m4 (gl_C_ASM): New macro.
	(gl_ASM_SYMBOL_PREFIX): Require it. Use its results.

2011-09-11  Reuben Thomas  <rrt@sc3d.org>

	Doc about crypt functions.
	* doc/posix-functions/crypt.texi: Expand range of glibc versions
	needing for _GNU_SOURCE to get crypt.
	* doc/posix-functions/encrypt.texi: Likewise.
	* doc/posix-functions/setkey.texi: Likewise.

2011-09-11  Bruno Haible  <bruno@clisp.org>

	doc: Update regarding MSVC 9.
	* doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
	tested".
	* doc/posix-functions/*.texi: Update with info about MSVC 9.
	* doc/posix-headers/*.texi: Likewise.
	* doc/pastposix-functions/*.texi: Likewise.
	* doc/glibc-functions/*.texi: Likewise.
	* doc/glibc-headers/*.texi: Likewise.

2011-09-11  Bruno Haible  <bruno@clisp.org>

	unistd et al.: Don't assume <unistd.h> exists.
	* m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
	does not exist.
	* m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
	exist. But include <stdlib.h>.
	* m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
	include <io.h> and <stdlib.h> instead. Don't test symbolink links if
	symlink() does not exist.
	* m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
	include <io.h> instead.
	* m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
	* m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
	include <direct.h> instead.
	* m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
	* m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
	* m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
	<io.h> instead.
	* m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
	correctly if the system does not have hard links.
	* m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
	<direct.h> instead.
	* m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
	it when looking for function declarations.
	* m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
	<direct.h> and <io.h> instead.
	* doc/posix-headers/unistd.texi: More details about MSVC problem.

2011-09-11  Bruno Haible  <bruno@clisp.org>

	strcase: Support for MSVC.
	* modules/strcase (Status, Notice): Remove obsoletion mark.
	* doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
	* doc/posix-functions/strncasecmp.texi: Likewise.

	strings: Don't assume <strings.h> exists.
	* lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
	* m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
	* modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
	* doc/posix-headers/strings.texi: Mention the MSVC problem.

2011-09-11  Bruno Haible  <bruno@clisp.org>

	dirent: Don't assume <dirent.h> exists.
	* lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
	* m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
	* modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
	* doc/posix-headers/dirent.texi: Mention the MSVC problem.

2011-09-11  Bruno Haible  <bruno@clisp.org>

	Fix wint_t on MSVC.
	* lib/wchar.in.h (wint_t): On MSVC, override it.
	* lib/wctype.in.h (wint_t): Likewise.
	* m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
	MSVC.
	* doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
	* doc/posix-headers/wctype.texi: Likewise.

2011-09-11  Bruno Haible  <bruno@clisp.org>

	sys_types: Fix typo.
	* lib/sys_types.in.h: Fix typo in comment.
	Reported by Paul Eggert.

	Support for MSVC compiler: Ensure size_t gets defined.
	* modules/strings (Depends-on): Add 'sys_types'.
	* modules/sys_uio (Depends-on): Likewise.
	* lib/sys_uio.in.h: Update comment.

	C++ tests for module 'sys_types'.
	* modules/sys_types-c++-tests: New file.
	* tests/test-sys_types-c++.cc: New file.

	Tests for module 'sys_types'.
	* modules/sys_types-tests: New file.
	* tests/test-sys_types.c: New file.

	New module 'sys_types'.
	* lib/sys_types.in.h: New file.
	* m4/sys_types_h.m4: New file.
	* modules/sys_types: New file.
	* doc/posix-headers/sys_types.texi: Mention the new module and the
	size_t problem on MSVC 9.

2011-09-11  Bruno Haible  <bruno@clisp.org>

	Support for MSVC compiler: Avoid division by a literal 0.
	* lib/math.in.h (NAN): Define through a function call also on MSVC.
	* m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
	* m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
	gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
	(gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
	* tests/infinity.h: New file.
	* tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
	on MSVC.
	* tests/test-ceilf1.c: Include infinity.h.
	(main): Use Infinityf.
	* tests/test-ceil1.c: Include infinity.h.
	(main): Use Infinityd.
	* tests/test-ceill.c: Include infinity.h.
	(main): Use Infinityl.
	* tests/test-dprintf-posix.c: Include infinity.h.
	(test_function): Use Infinityd.
	* tests/test-floorf1.c: Include infinity.h.
	(main): Use Infinityf.
	* tests/test-floor1.c: Include infinity.h.
	(main): Use Infinityd.
	* tests/test-floorl.c: Include infinity.h.
	(main): Use Infinityl.
	* tests/test-fprintf-posix.c: Include infinity.h.
	(test_function): Use Infinityd.
	* tests/test-frexp.c: Include infinity.h.
	(main): Use Infinityd.
	* tests/test-frexpl.c: Include infinity.h.
	(main): Use Infinityl.
	* tests/test-isfinite.c: Include infinity.h.
	(test_isfinitef): Use Infinityf.
	(test_isfinited): Use Infinityd.
	(test_isfinitel): Use Infinityl.
	* tests/test-isinf.c: Include infinity.h.
	(test_isinff): Use Infinityf.
	(test_isinfd): Use Infinityd.
	(test_isinfl): Use Infinityl.
	* tests/test-isnan.c: Include infinity.h.
	(test_float): Use Infinityf.
	(test_double): Use Infinityd.
	(test_long_double): Use Infinityl.
	* tests/test-isnanf.h: Include infinity.h.
	(main): Use Infinityf.
	* tests/test-isnand.h: Include infinity.h.
	(main): Use Infinityd.
	* tests/test-isnanl.h: Include infinity.h.
	(main): Use Infinityl.
	* tests/test-ldexpl.c: Include infinity.h.
	(main): Use Infinityl.
	* tests/test-printf-posix.h: Include infinity.h.
	(test_function): Use Infinityd.
	* tests/test-roundf1.c: Include infinity.h.
	(main): Use Infinityf.
	* tests/test-round1.c: Include infinity.h.
	(main): Use Infinityd.
	* tests/test-roundl.c: Include infinity.h.
	(main): Use Infinityl.
	* tests/test-signbit.c: Include infinity.h.
	(test_signbitf): Use Infinityf.
	(test_signbitd): Use Infinityd.
	(test_signbitl): Use Infinityl.
	* tests/test-snprintf-posix.h: Include infinity.h.
	(test_function): Use Infinityd, Infinityl.
	* tests/test-sprintf-posix.h: Include infinity.h.
	(test_function): Use Infinityd, Infinityl.
	* tests/test-truncf1.c: Include infinity.h.
	(main): Use Infinityf.
	* tests/test-trunc1.c: Include infinity.h.
	(main): Use Infinityd.
	* tests/test-truncl.c: Include infinity.h.
	(main): Use Infinityl.
	* tests/test-vasnprintf-posix.c: Include infinity.h.
	(test_function): Use Infinityd, Infinityl.
	* tests/test-vasprintf-posix.c: Include infinity.h.
	(test_function): Use Infinityd, Infinityl.
	* modules/ceilf-tests (Files): Add tests/infinity.h.
	* modules/ceil-tests (Files): Likewise.
	* modules/ceill-tests (Files): Likewise.
	* modules/dprintf-posix-tests (Files): Likewise.
	* modules/floorf-tests (Files): Likewise.
	* modules/floor-tests (Files): Likewise.
	* modules/floorl-tests (Files): Likewise.
	* modules/fprintf-posix-tests (Files): Likewise.
	* modules/frexp-tests (Files): Likewise.
	* modules/frexp-nolibm-tests (Files): Likewise.
	* modules/frexpl-tests (Files): Likewise.
	* modules/frexpl-nolibm-tests (Files): Likewise.
	* modules/isfinite-tests (Files): Likewise.
	* modules/isinf-tests (Files): Likewise.
	* modules/isnan-tests (Files): Likewise.
	* modules/isnanf-tests (Files): Likewise.
	* modules/isnanf-nolibm-tests (Files): Likewise.
	* modules/isnand-tests (Files): Likewise.
	* modules/isnand-nolibm-tests (Files): Likewise.
	* modules/isnanl-tests (Files): Likewise.
	* modules/isnanl-nolibm-tests (Files): Likewise.
	* modules/ldexpl-tests (Files): Likewise.
	* modules/printf-posix-tests (Files): Likewise.
	* modules/roundf-tests (Files): Likewise.
	* modules/round-tests (Files): Likewise.
	* modules/roundl-tests (Files): Likewise.
	* modules/signbit-tests (Files): Likewise.
	* modules/snprintf-posix-tests (Files): Likewise.
	* modules/sprintf-posix-tests (Files): Likewise.
	* modules/truncf-tests (Files): Likewise.
	* modules/trunc-tests (Files): Likewise.
	* modules/truncl-tests (Files): Likewise.
	* modules/vasnprintf-posix-tests (Files): Likewise.
	* modules/vasprintf-posix-tests (Files): Likewise.
	* modules/vdprintf-posix-tests (Files): Likewise.
	* modules/vfprintf-posix-tests (Files): Likewise.
	* modules/vprintf-posix-tests (Files): Likewise.
	* modules/vsnprintf-posix-tests (Files): Likewise.
	* modules/vsprintf-posix-tests (Files): Likewise.
	* modules/xprintf-posix-tests (Files): Likewise.

2011-09-11  Bruno Haible  <bruno@clisp.org>

	Ensure pid_t gets defined.
	* m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
	* m4/sched_h.m4 (gl_SCHED_H): Likewise.
	* m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
	* m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
	* m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
	* m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
	* m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
	* m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
	* tests/test-fcntl-h.c: Check that pid_t is defined.
	* tests/test-sched.c: Likewise.
	* tests/test-termios.c: Likewise.
	* tests/test-time.c: Likewise.
	* doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
	* doc/posix-headers/signal.texi: Likewise.
	* doc/posix-headers/sys_types.texi: Likewise.
	* doc/posix-headers/time.texi: Likewise.

2011-09-11  Bruno Haible  <bruno@clisp.org>

	acl: Fix compilation on Solaris 10 (older version).
	* lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
	of ACE_EVERYONE.
	* lib/set-mode-acl.c (qset_acl): Likewise.
	Reported by Christian Jullien <eligis@orange.fr>.

2011-09-10  Bruno Haible  <bruno@clisp.org>

	iconv, unsetenv: Add support for MSVC compiler.
	* m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
	* m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.

2011-09-10  Bruno Haible  <bruno@clisp.org>

	*printf: Add support for MSVC compiler.
	* m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
	handles the exception caused by the %n directive. When cross-compiling,
	guess no on native Windows.
	(gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
	gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
	emulate it through vsnprintf.
	* m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
	* doc/posix-functions/dprintf.texi: Update documentation regarding
	MSVC 9.
	* doc/posix-functions/fprintf.texi: Likewise.
	* doc/posix-functions/printf.texi: Likewise.
	* doc/posix-functions/snprintf.texi: Likewise.
	* doc/posix-functions/sprintf.texi: Likewise.
	* doc/posix-functions/swprintf.texi: Likewise.
	* doc/posix-functions/vdprintf.texi: Likewise.
	* doc/posix-functions/vfprintf.texi: Likewise.
	* doc/posix-functions/vprintf.texi: Likewise.
	* doc/posix-functions/vsnprintf.texi: Likewise.
	* doc/posix-functions/vsprintf.texi: Likewise.
	* doc/glibc-functions/asprintf.texi: Likewise.
	* doc/glibc-functions/obstack_printf.texi: Likewise.
	* doc/glibc-functions/obstack_vprintf.texi: Likewise.
	* doc/glibc-functions/vasprintf.texi: Likewise.

2011-09-10  Bruno Haible  <bruno@clisp.org>

	nocrash: Add support for native Windows.
	* m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.

2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
	    Bruno Haible  <bruno@clisp.org>

	absolute-header, include-next: Add support for MSVC compiler.
	* m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
	AC_CANONICAL_HOST. On native Windows, recognize also backslash as
	directory separator in #line directives.
	* m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
	recognize also backslash as directory separator in #line directives.

2011-09-08  Jim Meyering  <meyering@redhat.com>

	maint.mk: mark the post-release commit log with "maint: " prefix
	* top/maint.mk (emit-commit-log): Add "maint: " prefix to the
	one-line commit-log summary.

2011-09-08  Reuben Thomas  <rrt@sc3d.org>
	    Bruno Haible  <bruno@clisp.org>

	Doc about crypt functions.
	* doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
	systems.
	* doc/posix-functions/encrypt.texi: Likewise.
	* doc/posix-functions/setkey.texi: Likewise.

2011-09-08  Simon Josefsson  <simon@josefsson.org>

	* lib/gc.h: Fix copyright header.

2011-09-07  Bruno Haible  <bruno@clisp.org>

	pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
	* m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
	AC_LINK_IFELSE instead of AC_SEARCH_LIBS.

2011-09-07  Bruno Haible  <bruno@clisp.org>

	openat: Work around compilation error with OSF/1 5.1 DTK cc.
	* lib/fopen.c: Use different syntax for include of <stdio.h>.
	* lib/freopen.c: Likewise.
	* lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
	* lib/lstat.c: Likewise.
	* lib/stat.c: Likewise.
	* lib/open.c: Use different syntax for include of <fcntl.h>.
	* lib/openat.c: Include fcntl.h again, explicitly.

2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>

	parse-datetime: document the newly accepted format
	* doc/parse-datetime.texi (Combined date and time of day items):
	New section.

2011-09-06  Bruno Haible  <bruno@clisp.org>

	acl: Fix a test failure on newer Solaris 10 with ZFS.
	* tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
	ENOSYS as no ACL.
	Reported by Jim Meyering.

2011-09-06  Bruno Haible  <bruno@clisp.org>

	acl: Update for AIX >= 5.3 with NFS.
	* lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
	ENOSYS as no ACL.

	acl: Fix a test failure on AIX >= 5.3 with NFS.
	* tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
	as no ACL.

2011-09-06  Bruno Haible  <bruno@clisp.org>

	acl: Fix a test failure on IRIX 6.5 with NFS.
	* lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
	* lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
	of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
	* lib/copy-acl.c (qcopy_acl): Likewise.

2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>

	openat: port to AIX 7.1 with large files
	AIX 7.1 does a "#define openat open64at" if large files are in use,
	so we can't simply #undef openat.  Use the orig_openat trick (similar
	to orig_open in lib/open.c) to work around the problem.  Problem
	reported by Kevin Brott for GNU tar, in the thread containing
	<http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
	* lib/openat.c (__need_system_fcntl_h): Define first.
	Include <fcntl.h> and <sys/types.h> before undefining.
	(orig_openat) [HAVE_OPENAT]: New inline function.
	(openat) [HAVE_OPENAT]: Do not undef.
	(rpl_openat): Use orig_openat, not openat.

2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
	    Bruno Haible  <bruno@clisp.org>

	acl: Avoid errors on NonStop Kernel.
	* lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
	ENOTSUP errors.

2011-09-05  Bruno Haible  <bruno@clisp.org>

	acl: Clean up Solaris code.
	* lib/acl-internal.h: Remove no-op #if.
	* lib/file-has-acl.c: Likewise.
	* lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
	* lib/copy-acl.c (qcopy_acl): Likewise.

2011-09-05  Bruno Haible  <bruno@clisp.org>

	acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
	binaries built on the original Solaris 10.
	* lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
	trivial.

2011-09-05  Bruno Haible  <bruno@clisp.org>

	acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
	* lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
	10.
	* lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
	(acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
	* lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
	instead of acl_get, facl_get, acl_set, facl_set.

2011-09-05  Bruno Haible  <bruno@clisp.org>

	copy-file: Try unit tests on more file systems.
	* tests/test-copy-file-1.sh: New file.
	* tests/test-copy-file-2.sh: New file.
	* modules/copy-file-tests (Files): Add them.
	(Makefile.am): Add them to TESTS.

	acl: Try unit tests on more file systems.
	* tests/test-file-has-acl-1.sh: New file.
	* tests/test-file-has-acl-2.sh: New file.
	* tests/test-set-mode-acl-1.sh: New file.
	* tests/test-set-mode-acl-2.sh: New file.
	* tests/test-copy-acl-1.sh: New file.
	* tests/test-copy-acl-2.sh: New file.
	* modules/acl-tests (Files): Add them.
	(Makefile.am): Add them to TESTS.

2011-09-04  Bruno Haible  <bruno@clisp.org>

	acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
	* lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
	10.
	(OLD_ALLOW, OLD_DENY): New macros.
	(NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
	ACE_ACCESS_ALLOWED_ACE_TYPE.
	(NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
	ACE_ACCESS_DENIED_ACE_TYPE.
	(OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
	(NEW_ACE_EXECUTE): Fix value.
	(NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
	NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
	NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
	NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
	NEW_ACE_SYNCHRONIZE): New macros.
	* lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
	instead of acl_fromtext, acl_set, facl_set.
	Fixes a coreutils/tests/cp/perm failure.

2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>

	openat: test for fstatat (..., 0) bug
	Further testing with tar suggests that fstatat (..., 0)
	does not work in general, on AIX 7.1; see
	<http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
	So, give up entirely on AIX 7.1's fstatat, and fall back on our
	replacement fstatat (which is what older AIX releases were using
	anyway).
	* lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
	use is now changed to orig_fstatat.  This was probably the right
	thing to do anyway.
	(FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
	(rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
	(rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
	(AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
	* m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
	and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
	if the bug is found.

	openat: test for fstatat (AT_FDCWD, ..., 0) bug
	This tests for another fstatat bug on AIX 7.1:
	fstatat (AT_FDCWD, ..., 0) does not work.  See
	<http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
	* lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
	(LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
	(rpl_fstatat): Adjust so that it works around either (or both)
	bugs if present.
	* m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.

2011-09-03  Karl Berry  <karl@gnu.org>

	* doc/regex.texi (Character Class Operators): Avoid literal ":"
	in index entries.

2011-09-02  Bruno Haible  <bruno@clisp.org>

	Allow the user to override the choice of AR, ARFLAGS, RANLIB.
	* m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
	values of AR, ARFLAGS, RANLIB.
	Reported by John W. Eaton <jwe@gnu.org> for Octave.

2011-09-02  Bruno Haible  <bruno@clisp.org>

	Find 'ar' program that fits with --host argument.
	* m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.

2011-09-02  Bruno Haible  <bruno@clisp.org>

	tests: init.sh: Support any non-GNU diff.
	* tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
	not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
	Solaris 8.

2011-09-02  Bruno Haible  <bruno@clisp.org>

	tests: init.sh: work also with any non-GNU diff that supports -u
	* tests/init.sh: Relax check for diff -u support.
	Rather than checking for GNU diff via --version, simply check
	for support for -u itself.  Useful at least on OpenBSD 4.9,
	AIX 7.1, IRIX 6.5, and Solaris 10.

2011-09-01  Bruno Haible  <bruno@clisp.org>

	strtoimax, strtoumax: Document problem on HP-UX 11.
	* doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
	* doc/posix-functions/strtoumax.texi: Likewise.

2011-09-01  Bruno Haible  <bruno@clisp.org>

	strtoumax: Avoid link error on OSF/1 with DTK cc.
	* m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
	defined as a function.
	* modules/strtoumax (Depends-on, configure.ac): Test only whether
	strtoumax is defined, not whether it is declared.

2011-09-01  Bruno Haible  <bruno@clisp.org>

	strtoimax: Avoid link error on OSF/1 with DTK cc.
	* m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
	defined as a function.
	* modules/strtoimax (Depends-on, configure.ac): Test only whether
	strtoimax is defined, not whether it is declared.

2011-09-01  Bruno Haible  <bruno@clisp.org>

	imaxdiv: Avoid link error on OSF/1 with DTK cc.
	* m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
	as a function.
	* modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
	whether it is declared.

2011-09-01  Bruno Haible  <bruno@clisp.org>

	imaxabs: Avoid link error on OSF/1 with DTK cc.
	* m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
	as a function.
	* modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
	whether it is declared.

2011-09-01  Bruno Haible  <bruno@clisp.org>

	Tests for module 'strtoumax'.
	* modules/strtoumax-tests: New file.
	* tests/test-strtoumax.c: New file.

	Tests for module 'strtoimax'.
	* modules/strtoimax-tests: New file.
	* tests/test-strtoimax.c: New file.

	Tests for module 'imaxdiv'.
	* modules/imaxdiv-tests: New file.
	* tests/test-imaxdiv.c: New file.

	Tests for module 'imaxabs'.
	* modules/imaxabs-tests: New file.
	* tests/test-imaxabs.c: New file.

2011-09-01  Bruno Haible  <bruno@clisp.org>

	pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
	* m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
	pthread_create.

2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>

	openat: work around AIX 7.1 fstatat issue
	This should fix the problem that was not properly fixed
	in the previous change, dated 2011-08-30.
	* lib/fstatat.c: Include <sys/stat.h> twice, the first with
	__need_system_stat_h defined.
	(orig_fstatat) [HAVE_FSTATAT]: New function.
	(rpl_fstatat): Go back to the old way of doing things,
	except call orig_fstatat instead of fstatat.
	* m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
	Remove unnecessary check whether fstatat fills in st_size etc.

2011-09-01  Bruno Haible  <bruno@clisp.org>

	sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
	* lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
	just include the system's header.

2011-08-31  Jim Meyering  <meyering@redhat.com>

	tests: avoid spurious assertion failure in test-float.c on ppc64
	* tests/test-float.c (test_long_double): Comment out an assertion,
	LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
	with gcc-4.4.4.

	maint: indent with spaces, not TABs
	I need to get in the habit of running gnulib's "make check".
	Both of these would have been caught.
	* m4/largefile.m4: Indent with spaces, not TABs.
	* lib/parse-datetime.y (iso_8601_time): Likewise.
	Spotted by Pádraig Brady.

	test-parse-datetime.c: accommodate a relatively strict gcc warning
	* tests/test-parse-datetime.c (gmt_offset): Declare function "static",
	to avoid a warning from gcc's -Werror=missing-declarations.
	Insert a few spaces-before-funcall-parenthesis.

2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>

	parse-datetime: accept ISO 8601 date and time rep with "T" separator
	The parser now accepts ISO 8601 date-time strings with "T" as the
	separator.  It has long parsed dates like "2004-02-29 16:21:42"
	with a space between the date and time strings.  Now it also parses
	"2004-02-29T16:21:42" and fractional-second and time-zone-annotated
	variants like "2004-02-29T16:21:42.333-07:00"
	* lib/parse-datetime.y: Parse ISO 8601 extended date and time
	of day representation using the 'T' separator character.
	* doc/parse-datetime.texi (General date syntax): replace use of
	deprecated --iso-8601 option with --rfc-3339 in example of date
	command output formats that can be parsed.
	* tests/test-parse-datetime.c (tm_diff): New function, taken from
	lib/parse-datetime.y.
	(gmt_offset): New function.
	(main): Add additional test cases to validate ISO8601 extended
	date and time of day parsing.

2011-08-31  Bruno Haible  <bruno@clisp.org>

	freopen: Documentation.
	* doc/posix-functions/freopen.texi: Document the bug with the NULL file
	name.
	Reported by Claudio Bley <claudio.bley@gmail.com>.

2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)

	freopen: Don't crash if the filename argument is NULL.
	* lib/freopen.c (rpl_freopen): Don't compare the filename if it is
	NULL.

2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>

	openat: work around AIX 7.1 fstatat bug
	Problem reported by Kevin Brott for GNU tar, in the thread containing
	<http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
	* lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
	FSTATAT_ST_SIZE_ETC_BROKEN.
	(fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
	rpl_fstatat.
	* m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
	part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
	AC_CHECK_FUNCS_ONCE for fstatat.
	(gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
	fchmodat, mkdirat, openat and unlinkat.

2011-08-30  Bruno Haible  <bruno@clisp.org>

	Avoid endless recursions if config.h includes some header files.
	* lib/fopen.c (__need_FILE): Define already before including config.h.
	* lib/freopen.c (__need_FILE): Likewise.
	* lib/open.c (__need_system_fcntl_h): Likewise.
	* lib/stat.c (__need_system_sys_stat_h): Likewise.
	* lib/lstat.c (__need_system_sys_stat_h): Likewise.
	Reported by Michael Goffioul <michael.goffioul@gmail.com>.

2011-08-25  Karl Berry  <karl@gnu.org>

	* config/srclist.txt (ylwrap): new try.
	* build-aux/ylwrap: new file.

2011-08-23  Bruno Haible  <bruno@clisp.org>

	tmpdir: Use a good default directory on native Windows.
	* lib/tmpdir.c: Include <windows.h>, pathmax.h.
	(P_tmpdir): Default to _P_tmpdir on native Windows.
	(path_search): On native Windows, try the value returned by GetTempPath
	before trying P_tmpdir.
	* modules/tmpdir (Depends-on): Add pathmax.
	Suggested by John Darrington <john@darrington.wattle.id.au>.

2011-08-20  Reuben Thomas  <rrt@sc3d.org>

	doc: fix typo in README-release
	* top/README-release: Capitalize first word of a sentence.

2011-08-19  Jim Meyering  <meyering@redhat.com>

	fts: do not exhaust memory when processing million-entry directories
	Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
	directory would require about 256*N bytes of memory.  Thus, it was
	easy to construct a directory too large to be processed by any of
	those tools.  With this change, fts' maximum memory utilization is
	now limited to around 30MB.
	* lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
	(fts_read): When we've processed the final entry (i.e., when
	->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
	using the parent entry to read any remaining entries.  Dispatch
	depending on what fts_build returns:
	- NULL+stop, aka failure: stop
	- NULL otherwise: move up in the dir hierarchy
	- non-NULL: handle this new entry
	(fts_build): Declare and use new local, continue_readdir.
	Prepare to be called from fts_read, when the entries
	from a partially-read directory have just been exhausted.
	In that case, we'll skip the opendir and instead use the parent's
	fts_dirp and derive dir_fd from that.
	Finally, in the readdir loop, if we read max_entries entries,
	exit the loop ensuring *not* to call closedir.  This is required
	so that fts_dirp can be reused on a subsequent call.
	Prompted by Ben England's report of memory exhaustion in find
	and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.

	maint: fts: move decl of `dp' down into while loop; split a long line
	* lib/fts.c (fts_build): No semantic change.

	fts: add/use new struct member, fts_dirp
	We are about to use this to manage any directory with
	too many entries to read all of them into memory at once.
	To do that, we'll need to save the DIR* pointer in each
	affected FTSENT struct.
	* lib/fts_.h: Include <dirent.h>.
	(struct FTSENT) [fts_dirp]: New member.
	* lib/fts.c (closedir_and_clear): Define.
	Use it in place of closedir so that we are sure to
	clear the new fts_dirp member when done with it.
	(fts_alloc): Initialize the new member.
	(fts_lfree): Free, if needed.

	maint: fts: give __opendir2 a new parameter and rename
	* lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
	than surreptitiously using sole caller's "dir_fd".
	(fts_opendir): Rename from __opendir2.

	maint: fts.c: remove __opendir2's now-unused parameter, oflag
	* lib/fts.c (__opendir2): Remove unused parameter, oflag.

	maint: fts.c: correct off-by-one indentation
	* lib/fts.c (fts_build): Correct indentation, change style
	of a couple of block comments, and bracing style.

	maint: fts.c: move __opendir2 #define "up" out of function body
	* lib/fts.c (__opendir2): Move "up".  No semantic change.

	maint: fts.c: remove #if-0'd FTS_WHITEOUT code
	* lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
	out for a long time and besides was useful only on BSD systems.

2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>

	regex: port to Stratus OpenVOS
	* lib/regex_internal.h (internal_function) [!_LIBC]: Simply
	define to empty, rather than attempting nonportable optimizations.
	Problem reported by Paul Green in:
	http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
	and fix suggested by Eric Blake in:
	http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html

2011-08-17  Eric Blake  <eblake@redhat.com>

	getcwd: fix test failures on mingw
	* lib/getcwd.c (__getcwd): Early exit for ERANGE.
	* tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
	test if long directory cannot be created, and allow mingw errno.

	getcwd-lgpl: fix m4 to match relaxed test for BSD
	* m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
	(gl_FUNC_GETCWD_SIGNATURE): New macro.
	(gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
	* doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
	signature problem.

	getcwd: fix compilation on mingw64
	* lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
	getcwd.
	Reported by Marc-André Lureau.

	pipe2: silence compiler warning
	* lib/pipe2.c (pipe2): Hide label if it is not used.

2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>

	relocatable-prog: fix link error
	* modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
	invoke AC_LIBOBJ([relocatable]).  This invocation was previously
	in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
	into modules/relocatable-lib without noticing that
	modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
	also needs to build relocatable.c.

2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>

	getaddrinfo: fix sh typo in gai_strerrorA decl checking
	* m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
	shell code: it contained a 'break' that was not in a loop.
	Apparently the macro assumed that AC_CHECK_DECLS is implemenented
	via a shell-language loop; this may have been true in old Autoconf
	versions, but it's not true in Autoconf 2.68.  I found this bug
	when testing coreutils git on Solaris 8, whose shell complains
	about the syntax error.

2011-08-12  Simon Josefsson  <simon@josefsson.org>

	* lib/base64.c: Fix comment to reference RFC 4648.
	Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
	<gvtulder@gmail.com>.

2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>

	* build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.

	po/Makefile.in.in: fix make -q problem
	* build-aux/po/Makefile.in.in (check-macro-version): Remove this
	rule, since there's no file named 'check-macro-version' and its
	use as a file breaks make -q.
	(all): Don't depend on check-macro-version.
	(CHECK_MACRO_VERSION): New macro.
	(stamp-po): Use it.

	configmake: fix make -q problem
	* modules/configmake (configmake.h): Update configmake.h's time stamp
	even if the file does not change.  Otherwise, 'make -q' fails.
	Problem reported by Simon Josefsson in
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.

2011-08-11  Jim Meyering  <meyering@redhat.com>

	git-version-gen: correct the advice in a comment
	* build-aux/git-version-gen: Correct comment.
	Don't recommend to list .tarball-version in .gitignore.

2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>

	base64: fix off-by-one buffer size bug
	Problem and (trivial) fix reported by Gijs van Tulder in
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
	* lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
	* tests/test-base64.c (main): Catch the bug.

2011-08-10  Eric Blake  <eblake@redhat.com>

	closein: correct comments
	* lib/closein.c (close_stdin): Improve comments.

2011-08-09  Bruno Haible  <bruno@clisp.org>

	More tests for 'fseeko'.
	* tests/test-fseeko3.c: New file, from Eric Blake.
	* tests/test-fseeko3.sh: New file.
	* modules/fseeko-tests (Files): Add them.
	(TESTS): Add test-fseeko3.sh.
	(check_PROGRAMS): Add test-fseeko3.

2011-08-09  Eric Blake  <eblake@redhat.com>

	fseeko: remove unneeded hack
	* lib/fseeko.c (fseeko): Don't special-case SEEK_END.

	fseeko: fix bug on glibc
	* lib/fseeko.c (fseeko): Set stream offset to match fd offset.
	Reported by John W. Eaton.

2011-08-08  Bruno Haible  <bruno@clisp.org>

	unictype/base: Fix interoperability with preinstalled libunistring.
	* modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
	Reported by Simon Josefsson.

2011-08-08  Bruno Haible  <bruno@clisp.org>

	iswblank: Detect declaration correctly.
	* m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
	AC_CHECK_DECLS invocation.

2011-08-08  Bruno Haible  <bruno@clisp.org>

	tcgetsid: Detect declaration correctly.
	* m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
	AC_CHECK_DECLS invocation.
	Reported by Simon Josefsson.

2011-08-08  Eric Blake  <eblake@redhat.com>

	largefile: fix typo that regressed large file support
	* modules/largefile (configure.ac-early): Fix section name.

2011-08-06  Karl Berry  <karl@gnu.org>

	* MODULES.html.sh (func_all_files): _Noreturn is no longer
	a separate module.

2011-08-05  Simon Josefsson  <simon@josefsson.org>

	openat: Fix warnings and commens when building unlinkat.c on Hurd.
	* lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
	get prototype for free.

2011-08-04  Bruno Haible  <bruno@clisp.org>

	Tests for module 'pathmax'.
	* modules/pathmax-tests: New file.
	* tests/test-pathmax.c: New file.

	canonicalize-lgpl: Support larger filenames on the Hurd.
	* lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
	Reported by Paul Eggert.

	pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
	* lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
	* lib/chdir-long.h: Include pathmax.h.
	* lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
	* lib/getcwd.c: Include pathmax.h instead of <limits.h>.
	(PATH_MAX): Remove code that is done by pathmax.h.
	* lib/canonicalize.c (PATH_MAX): Provide a fallback value.
	* lib/tmpfile.c: Add a comment.
	* m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
	* modules/chdir-long (Depends-on): Add pathmax.
	* modules/getcwd (Depends-on): Add pathmax.
	* tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
	is not defined.
	* doc/posix-headers/limits.texi: Mention the pathmax module.
	* NEWS: Mention the change.

2011-08-02  Bruno Haible  <bruno@clisp.org>

	pthread_sigmask: Actually use results of gl_THREADLIB.
	* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
	gl_THREADLIB, not gl_[]THREADLIB.
	Reported by Eric Blake.

2011-08-02  Jim Meyering  <meyering@redhat.com>

	maint.mk: relax the default _gl_TS_function_match regexp
	* top/maint.mk (_gl_TS_function_match): Don't require at least one
	space between function name and "(" in an "extern" declaration.
	That would fail to match a decl with no space there: extern void foo();

2011-07-31  Iain Nicol  <iain@thenicols.net>

	git-version-gen: document that EXTRA_DIST must include .version
	* build-aux/git-version-gen: In the how-to-use comment, document
	that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
	will fail when run from an unpacked distribution tarball.

2011-08-01  Bruno Haible  <bruno@clisp.org>

	wctype-h: Fix last change.
	* m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
	REPLACE_TOWLOWER to 0.
	Reported by Sam Steingold <sds@gnu.org>.

2011-07-31  Bruno Haible  <bruno@clisp.org>

	frexpl: Update autoconf test.
	* m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
	according to changes of 2011-06-20.

2011-07-31  Bruno Haible  <bruno@clisp.org>

	sys_utsname: Add support for Minix.
	* lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
	<sys/utsname.h>.
	* m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
	* doc/posix-headers/sys_utsname.texi: Document the Minix problem.

2011-07-31  Bruno Haible  <bruno@clisp.org>

	strings: Add support for Minix.
	* lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
	* m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
	* doc/posix-headers/strings.texi: Document the Minix problem.

2011-07-31  Bruno Haible  <bruno@clisp.org>

	wctype-h: Add support for Minix.
	* m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
	REPLACE_TOWLOWER.
	* modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
	* lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
	REPLACE_ISWCNTRL.

2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>

	* lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
	This is a performance improvement for 64-bit hosts: it causes the
	value of DEFAULT_MXFAST to track what's in glibc on such hosts.

2011-07-31  Bruno Haible  <bruno@clisp.org>

	stdioext: Add support for Minix.
	* lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
	* lib/fpurge.c (fpurge): Likewise.
	* lib/freadahead.c (freadahead): Likewise.
	* lib/freadable.c (freadable): Likewise.
	* lib/freading.c (freading): Likewise.
	* lib/freadptr.c (freadptr): Likewise.
	* lib/freadseek.c (freadptrinc): Likewise.
	* lib/fseeko.c (rpl_fseeko): Likewise.
	* lib/fseterr.c (fseterr): Likewise.
	* lib/fwritable.c (fwritable): Likewise.
	* lib/fwriting.c (fwriting): Likewise.
	* lib/fflush.c (clear_ungetc_buffer): Update comment.
	* m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.

2011-07-31  Bruno Haible  <bruno@clisp.org>

	errno: Port to Minix.
	* m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
	ECONNABORTED are defined.
	* lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
	GNULIB_defined_ECONNABORTED): New macros.
	* lib/strerror-override.h (strerror_override): Test also
	GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
	* lib/strerror-override.c (strerror_override): Handle also ENETRESET,
	ECONNABORTED.
	* doc/posix-headers/errno.texi: Mention the Minix problem.

2011-07-31  Bruno Haible  <bruno@clisp.org>

	Work around declaration collisions on Minix.
	* m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
	defined, set REPLACE_MBSINIT.
	* m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
	defined, set REPLACE_MBRTOWC.
	* m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
	set REPLACE_MBRLEN.
	* m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
	defined, set REPLACE_MBSRTOWCS.
	* m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
	defined, set REPLACE_WCRTOMB.
	* m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
	defined, set REPLACE_WCSRTOMBS.

2011-07-31  Bruno Haible  <bruno@clisp.org>

	Add support for Minix with ACK compiler.
	* m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
	* gnulib-tool (func_import, func_create_testdir): Emit invocation of
	gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.

2011-07-31  Bruno Haible  <bruno@clisp.org>

	Documentation about Minix.
	* doc/posix-headers/*.texi: Add info about Minix 3.1.8.
	* doc/glibc-headers/*.texi: Likewise.
	* doc/posix-functions/*.texi: Likewise.
	* doc/glibc-functions/*.texi: Likewise.

2011-07-31  Bruno Haible  <bruno@clisp.org>

	snippet/warn-on-use: Fix indentation.
	* m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.

2011-07-25  Jim Meyering  <meyering@redhat.com>

	tests: test-update-copyright.sh: remove unnecessary "rm" commands
	* tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
	commands.

2011-07-27  Jim Meyering  <meyering@redhat.com>

	maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
	* top/maint.mk (gl_extract_significant_defines_): Now that
	SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
	gnulib/lib/signal.in.h, and now that we recommend to
	define-if-undefined those two symbols in application code,
	we must filter them out of the "significant" list.
	This avoids a "make syntax-check" failure in coreutils.

2011-07-26  Eric Blake  <eblake@redhat.com>

	warnings: add comments about previous patch
	* m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
	* m4/include_next.m4: Likewise.
	* m4/warn-on-use.m4: Likewise.
	* m4/warnings.m4: Likewise, and simplify use.
	Suggested by Stefano Lattarini.

	include-next, warnings: support older autoconf
	* m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
	AS_VAR_PUSHDEF in a way that works with older autoconf.
	* m4/warnings.m4 (gl_WARN_ADD): Likewise.
	Reported by Daniel P. Berrange.

2011-07-25  Bruno Haible  <bruno@clisp.org>

	fseek, ftell: Fix doc.
	* doc/posix-functions/fseek.texi: Reword statement about
	AC_SYS_LARGEFILE.
	* doc/posix-functions/ftell.texi: Likewise.

2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
	    Bruno Haible  <bruno@clisp.org>

	Add dependencies to the 'largefile' module.
	* modules/fopen (Depends-on): Add 'largefile'.
	* modules/freopen (Depends-on): Likewise.
	* modules/fseeko (Depends-on): Likewise.
	* modules/ftello (Depends-on): Likewise.
	* modules/glob (Depends-on): Likewise.
	* modules/lseek (Depends-on): Likewise.
	* modules/lstat (Depends-on): Likewise.
	* modules/mkostemp (Depends-on): Likewise.
	* modules/mkostemps (Depends-on): Likewise.
	* modules/mkstemp (Depends-on): Likewise.
	* modules/mkstemps (Depends-on): Likewise.
	* modules/open (Depends-on): Likewise.
	* modules/openat (Depends-on): Likewise.
	* modules/pread (Depends-on): Likewise.
	* modules/pwrite (Depends-on): Likewise.
	* modules/scandir (Depends-on): Likewise.
	* modules/stat (Depends-on): Likewise.
	* modules/tmpfile (Depends-on): Likewise.
	* m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
	since the containing module now depends on the largefile module.
	* m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
	* doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
	off_t is fixed by gnulib.
	* doc/posix-functions/freopen.texi: Likewise.
	* doc/posix-functions/fseeko.texi: Likewise.
	* doc/posix-functions/fstatat.texi: Likewise.
	* doc/posix-functions/ftello.texi: Likewise.
	* doc/posix-functions/glob.texi: Likewise.
	* doc/posix-functions/lseek.texi: Likewise.
	* doc/posix-functions/lstat.texi: Likewise.
	* doc/posix-functions/mkstemp.texi: Likewise.
	* doc/posix-functions/open.texi: Likewise.
	* doc/posix-functions/openat.texi: Likewise.
	* doc/posix-functions/pread.texi: Likewise.
	* doc/posix-functions/pwrite.texi: Likewise.
	* doc/posix-functions/scandir.texi: Likewise.
	* doc/posix-functions/stat.texi: Likewise.
	* doc/posix-functions/tmpfile.texi: Likewise.
	* doc/glibc-functions/mkostemp.texi: Likewise.
	* doc/glibc-functions/mkostemps.texi: Likewise.
	* doc/glibc-functions/mkstemps.texi: Likewise.

2011-07-25  Bruno Haible  <bruno@clisp.org>

	fcntl: Move AC_LIBOBJ invocation to module description.
	* m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
	* modules/fcntl (configure.ac): Invoke AC_LIBOBJ.

	fcntl: Remove call-in from fchdir.m4.
	* m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
	* m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.

	dup3: Remove potential call-in from fchdir.m4.
	* m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
	* m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.

	dup2: Move AC_LIBOBJ invocation to module description.
	* m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
	(gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
	Don't invoke AC_LIBOBJ.
	* modules/dup2 (configure.ac): Invoke AC_LIBOBJ.

	dup2: Remove call-in from fchdir.m4.
	* m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
	* m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.

	fclose: Move AC_LIBOBJ invocation to module description.
	* m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
	(gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
	to 1.
	* modules/fclose (configure.ac): Invoke AC_LIBOBJ.

	fclose: Remove call-in from close.m4.
	* m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
	* m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.

	close: Move AC_LIBOBJ invocation to module description.
	* m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
	(gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
	1.
	* modules/close (configure.ac): Invoke AC_LIBOBJ.

	close: Remove call-in from fchdir.m4.
	* m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
	* m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.

	open: Move AC_LIBOBJ invocation to module description.
	* m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
	(gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
	* modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.

	open: Remove call-in from fchdir.m4.
	* m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
	* m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.

	fchdir: Start to remove gl_REPLACE_* idiom.
	* m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
	(gl_FUNC_FCHDIR): Invoke it.

2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>

	* lib/ftell.c (ftell): Comment out cast.

	close: use gl_REPLACE_FCLOSE only if defined
	* m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
	is defined.  The close module doesn't depend on the fclose module
	any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
	I reproduced the problem with "./gnulib-tool --test close sys_socket".

2011-07-24  Jim Meyering  <meyering@redhat.com>

	test-select.h: avoid warning when using gcc's -Wmissing-declarations
	* tests/test-select.h (test_function): Declare as "static".

2011-07-24  Bruno Haible  <bruno@clisp.org>

	doc: Mention the effects of AC_SYS_LARGEFILE.
	* doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
	on this function.
	* doc/posix-functions/aio_error.texi: Likewise.
	* doc/posix-functions/aio_fsync.texi: Likewise.
	* doc/posix-functions/aio_read.texi: Likewise.
	* doc/posix-functions/aio_return.texi: Likewise.
	* doc/posix-functions/aio_suspend.texi: Likewise.
	* doc/posix-functions/aio_write.texi: Likewise.
	* doc/posix-functions/fgetpos.texi: Likewise.
	* doc/posix-functions/fopen.texi: Likewise.
	* doc/posix-functions/freopen.texi: Likewise.
	* doc/posix-functions/fsetpos.texi: Likewise.
	* doc/posix-functions/fstatvfs.texi: Likewise.
	* doc/posix-functions/ftruncate.texi: Likewise.
	* doc/posix-functions/ftw.texi: Likewise.
	* doc/posix-functions/getrlimit.texi: Likewise.
	* doc/posix-functions/glob.texi: Likewise.
	* doc/posix-functions/lio_listio.texi: Likewise.
	* doc/posix-functions/lockf.texi: Likewise.
	* doc/posix-functions/mkstemp.texi: Likewise.
	* doc/posix-functions/mmap.texi: Likewise.
	* doc/posix-functions/nftw.texi: Likewise.
	* doc/posix-functions/openat.texi: Likewise.
	* doc/posix-functions/opendir.texi: Likewise.
	* doc/posix-functions/posix_fadvise.texi: Likewise.
	* doc/posix-functions/posix_fallocate.texi: Likewise.
	* doc/posix-functions/pread.texi: Likewise.
	* doc/posix-functions/pwrite.texi: Likewise.
	* doc/posix-functions/readdir.texi: Likewise.
	* doc/posix-functions/readdir_r.texi: Likewise.
	* doc/posix-functions/rewinddir.texi: Likewise.
	* doc/posix-functions/scandir.texi: Likewise.
	* doc/posix-functions/seekdir.texi: Likewise.
	* doc/posix-functions/setrlimit.texi: Likewise.
	* doc/posix-functions/statvfs.texi: Likewise.
	* doc/posix-functions/telldir.texi: Likewise.
	* doc/posix-functions/tmpfile.texi: Likewise.
	* doc/posix-functions/truncate.texi: Likewise.
	* doc/glibc-functions/fallocate.texi: Likewise.
	* doc/glibc-functions/fstatfs.texi: Likewise.
	* doc/glibc-functions/fts_children.texi: Likewise.
	* doc/glibc-functions/fts_read.texi: Likewise.
	* doc/glibc-functions/getdirentries.texi: Likewise.
	* doc/glibc-functions/mkostemp.texi: Likewise.
	* doc/glibc-functions/mkostemps.texi: Likewise.
	* doc/glibc-functions/mkstemps.texi: Likewise.
	* doc/glibc-functions/preadv.texi: Likewise.
	* doc/glibc-functions/pwritev.texi: Likewise.
	* doc/glibc-functions/sendfile.texi: Likewise.
	* doc/glibc-functions/statfs.texi: Likewise.

2011-07-24  Bruno Haible  <bruno@clisp.org>

	doc: Fix typo.
	* doc/posix-functions/fstat.texi: Talk about fstat, not stat.

2011-07-24  Bruno Haible  <bruno@clisp.org>

	doc: Mention fsusage.
	* doc/posix-functions/statvfs.texi: Mention the fsusage module.

2011-07-24  Bruno Haible  <bruno@clisp.org>

	doc: Mention new glibc headers and functions.
	* doc/glibc-headers/gshadow.texi: New file.
	* doc/glibc-functions/endsgent.texi: New file.
	* doc/glibc-functions/fgetsgent.texi: New file.
	* doc/glibc-functions/fgetsgent_r.texi: New file.
	* doc/glibc-functions/getsgent.texi: New file.
	* doc/glibc-functions/getsgent_r.texi: New file.
	* doc/glibc-functions/getsgnam.texi: New file.
	* doc/glibc-functions/getsgnam_r.texi: New file.
	* doc/glibc-functions/putsgent.texi: New file.
	* doc/glibc-functions/setsgent.texi: New file.
	* doc/glibc-functions/sgetsgent.texi: New file.
	* doc/glibc-functions/sgetsgent_r.texi: New file.
	* doc/glibc-functions/malloc_info.texi: New file.
	* doc/glibc-functions/preadv.texi: New file.
	* doc/glibc-functions/pwritev.texi: New file.
	* doc/glibc-functions/register_printf_modifier.texi: New file.
	* doc/glibc-functions/register_printf_specifier.texi: New file.
	* doc/glibc-functions/register_printf_type.texi: New file.
	* doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
	* doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
	* doc/glibc-functions/pthread_getaffinity_np.texi: New file.
	* doc/glibc-functions/pthread_getname_np.texi: New file.
	* doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
	* doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
	* doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
	* doc/glibc-functions/pthread_setaffinity_np.texi: New file.
	* doc/glibc-functions/pthread_setname_np.texi: New file.
	* doc/glibc-functions/pthread_sigqueue.texi: New file.
	* doc/glibc-functions/pthread_timedjoin_np.texi: New file.
	* doc/glibc-functions/pthread_tryjoin_np.texi: New file.
	* doc/glibc-functions/qsort_r.texi: New file.
	* doc/glibc-functions/quick_exit.texi: New file.
	* doc/glibc-functions/syncfs.texi: New file.
	* doc/gnulib.texi: Include them.
	(Glibc gshadow.h, Glibc sys/uio.h): New sections.
	* doc/posix-functions/psiginfo.texi: Fix info about glibc version.
	* doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
	* doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
	* doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
	* doc/glibc-functions/execvpe.texi: Likewise.

2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>

	ftell: don't include <unistd.h>
	* lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
	guaranteed to define off_t, and the ftell module depends on the
	stdio module.

	ftell: do not assume wraparound signed arithmetic
	* lib/ftell.c: Include <limits.h>.
	(ftell): Don't assume wraparound signed arithmetic.

2011-07-24  Bruno Haible  <bruno@clisp.org>

	close: No longer depend on module 'fclose'.
	* modules/close (Depends-on): Remove fclose.
	* NEWS: Mention the change.
	Suggested by Sam Steingold <sds@gnu.org>.

2011-07-24  Bruno Haible  <bruno@clisp.org>

	fsusage: Enable large volume support on AIX >= 5.2.
	* m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
	larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
	instead of STAT_STATVFS.
	* lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.

	fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
	* m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
	f_blocks field only on MacOS X.

	fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
	* m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
	* modules/fsusage (Depends-on): Add largefile.

2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>

	* README: Modernize discussion of signed integers.
	Assuming overflow wraparound is no longer safe.
	Mention ones' complement and signed magnitude.

2011-07-22  Bruno Haible  <bruno@clisp.org>

	select tests, pselect tests: Refactor.
	* tests/test-select.h: New file, extracted from tests/test-select.c.
	(select_fn): New type.
	(test, do_select, do_select_nowait, do_select_wait, test_tty,
	test_connect_first, test_accept_first, test_pair, test_socket_pair,
	test_pipe): Add my_select argument.
	(test_function): Renamed from main. Add my_select argument.
	* tests/test-select.c: Move most code to tests/test-select.h. Include
	test-select.h.
	* modules/select-tests (Files): Add tests/test-select.h.
	* tests/test-pselect.c: Include test-select.h instead of test-select.c.
	(my_select, main): New functions.
	* modules/pselect-tests (Files): Add tests/test-select.h,
	tests/macros.h, tests/signature.h.
	(Depends-on): Remove select-tests. Add dependencies of test-select.h.
	(configure.ac): Check for <sys/wait.h>.

2011-07-22  Bruno Haible  <bruno@clisp.org>

	sys_select tests: Check the signature of FD_*.
	* tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
	signature tests from here...
	* tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
	here.
	* modules/sys_select-tests (Files): Add tests/signature.h.

2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>

	largefile: new module, replacing large-inode
	Pádraig Brady suggested this in	<http://debbugs.gnu.org/9140#20>.
	* MODULES.html.sh: Add largefile, remove large-inode.
	* modules/largefile, m4/largefile.m4: New files.
	* modules/large-inode, m4/large-inode.m4: Remove.

	fsusage: port to MacOS X 10.7 with 4 TiB file systems
	* m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
	implementations that use only 32 bits to count blocks.
	On typical hosts with 1024-byte blocks, this fails with file
	systems as small as 4 TiB.  Problem reported by Herb Wartens
	<http://debbugs.gnu.org/9140> and this should also fix a similar
	problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.

	large-inode: New module
	* MODULES.html.sh: Add it.
	* modules/large-inode, m4/large-inode.m4: New files.

	extensions: Enable extensions on MacOS X 10.5 and later.
	* m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.

2011-07-22  Kamil Dudka  <kdudka@redhat.com>

	file-has-acl: use acl_extended_file_nofollow if available
	* lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
	(acl_extended_file): New macro.
	* lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
	* m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.

2011-07-21  Bruno Haible  <bruno@clisp.org>

	Declare system functions in a way that works with C++.
	* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
	declare fdopendir as extern "C".
	* m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
	declare frexpl as extern "C".
	* m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
	declare gai_strerror as extern "C".
	* m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
	programs, declare gai_strerror as extern "C".
	* m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
	declare getlogin_r as extern "C".
	* m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
	as extern "C".
	* m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
	declare ldexpl as extern "C".
	* m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
	as extern "C".
	* m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
	program, declare getmntinfo as extern "C".
	* m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
	stpncpy as extern "C".
	* m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
	program, declare __xpg_strerror_r as extern "C".
	* m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
	strndup as extern "C".
	* m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
	declare memset and bzero as extern "C".
	Reported by Sam Steingold <sds@gnu.org>.

2011-07-12  Jim Meyering  <meyering@redhat.com>

	maint.mk: prohibit inclusion of "verify.h" without use
	* top/maint.mk (sc_prohibit_verify_without_use): New rule.

2011-07-19  Pádraig Brady  <P@draigBrady.com>

	timer-time: A new module to check for timer_settime()
	* m4/timer_time.m4: Check for the posix function.
	* modules/timer-time: Add the new module.
	* MODULES.html.sh (Compat checks for POSIX:2008 functions):
	Mention it.

2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
	    Bruno Haible  <bruno@clisp.org>

	pthread_sigmask: assume POSIX threads if --avoid=threadlib
	* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
	not defined, assume POSIX threads and look for pthread_sigmask in
	$LIBS, without changing $CPPFLAGS.

2011-07-19  Bruno Haible  <bruno@clisp.org>

	strstr: Update cross-compilation guess.
	* m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
	CPUs, guess no, in view of glibc
	BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
	Suggested by Eric Blake. Reported by Reuben Thomas.

2011-07-19  Pádraig Brady  <P@draigBrady.com>

	getopt-gnu: suppress core dumps from detection code
	* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
	to suppress core dumps that may well occur on glibc systems.
	* modules/getopt-gnu: Depend on nocrash.

2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>

	pthread_sigmask: ensure usleep is declared
	* lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
	Include <unistd.h>, to declare usleep.  Needed on Solaris 8,

2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>

	doc: Document NonStop portability issues.
	* doc/posix-functions/sigaction.texi (sigaction):
	* doc/posix-headers/signal.texi (signal.h):
	Document NonStop.  See Joachim Schmitz in
	http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html

2011-07-15  Bruno Haible  <bruno@clisp.org>

	ffsl, ffsll: Avoid unportable behaviour.
	* lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.

2011-07-15  Bruno Haible  <bruno@clisp.org>

	ffs: More tests.
	* tests/test-ffs.c (NBITS): New macro.
	(main): Add more tests.
	* tests/test-ffsl.c (NBITS): New macro.
	(main): Add more tests.
	* tests/test-ffsll.c (NBITS): New macro.
	(main): Add more tests.

2011-07-15  Eric Blake  <eblake@redhat.com>

	ffsl, ffsll: new modules
	* modules/ffsl: New file.
	* modules/ffsll: Likewise.
	* m4/ffsl.m4: Likewise.
	* m4/ffsll.m4: Likewise.
	* lib/ffsl.c: Likewise.
	* lib/ffsl.h: Likewise.
	* lib/ffsll.c: Likewise.
	* m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
	(gl_HEADER_STRING_H_DEFAULTS): Add defaults.
	* modules/string (Makefile.am): Substitute witnesses.
	* lib/strings.in.h (ffsl, ffsll): Declare.
	* modules/ffsl-tests: New test file.
	* modules/ffsll-tests: Likewise.
	* tests/test-ffsl.c: Likewise.
	* tests/test-ffsll.c: Likewise.
	* MODULES.html.sh (Integer arithmetic functions): Mention it.
	* doc/glibc-functions/ffsl.texi (ffsl): Likewise.
	* doc/glibc-functions/ffsll.texi (ffsll): Likewise.

	ffs: fix m4 prerequisite
	* m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.

	ffs: avoid undefined behavior
	* lib/ffs.c (ffs): Provide fallback for non-32-bit int.
	* tests/test-ffs.c (naive, main): Avoid signed shifts.
	Reported by Bruno Haible.

2011-07-12  Bruno Haible  <bruno@clisp.org>

	pthread_sigmask: Rely on module 'threadlib'.
	* modules/pthread_sigmask (Depends-on): Add threadlib.
	* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
	is defined.

2011-07-12  Bruno Haible  <bruno@clisp.org>

	regex: Depend on module 'strcase'.
	* modules/regex (Depends-on): Add strcase, for strcasecmp().

2011-07-12  Jim Meyering  <meyering@redhat.com>

	warn-on-use: fix typo in file name
	* modules/snippet/warn-on-use (Files): Correct file name:
	include /snippet/ component in "build-aux/snippet/warn-on-use.h".

2011-07-12  Bruno Haible  <bruno@clisp.org>

	strings: Document module.
	* doc/posix-headers/strings.texi: Mention module 'strings'.

2011-07-12  Bruno Haible  <bruno@clisp.org>

	Rename module '_Noreturn' to 'snippet/_Noreturn'.
	* modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
	(Files, Makefile.am): Update.
	* build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
	* modules/stdlib (Depends-on): Update.

2011-07-12  Bruno Haible  <bruno@clisp.org>

	* NEWS: Mention the changes.

	Rename module 'warn-on-use' to 'snippet/warn-on-use'.
	* modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
	(Files, Makefile.am): Update.
	* build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
	* modules/arpa_inet (Depends-on): Update.
	* modules/ctype (Depends-on): Update.
	* modules/dirent (Depends-on): Update.
	* modules/fcntl-h (Depends-on): Update.
	* modules/glob (Depends-on): Update.
	* modules/iconv-h (Depends-on): Update.
	* modules/inttypes-incomplete (Depends-on): Update.
	* modules/langinfo (Depends-on): Update.
	* modules/locale (Depends-on): Update.
	* modules/math (Depends-on): Update.
	* modules/netdb (Depends-on): Update.
	* modules/poll-h (Depends-on): Update.
	* modules/pty (Depends-on): Update.
	* modules/search (Depends-on): Update.
	* modules/signal (Depends-on): Update.
	* modules/spawn (Depends-on): Update.
	* modules/stdio (Depends-on): Update.
	* modules/stdlib (Depends-on): Update.
	* modules/string (Depends-on): Update.
	* modules/strings (Depends-on): Update.
	* modules/sys_file (Depends-on): Update.
	* modules/sys_ioctl (Depends-on): Update.
	* modules/sys_select (Depends-on): Update.
	* modules/sys_socket (Depends-on): Update.
	* modules/sys_stat (Depends-on): Update.
	* modules/sys_time (Depends-on): Update.
	* modules/sys_times (Depends-on): Update.
	* modules/sys_utsname (Depends-on): Update.
	* modules/sys_wait (Depends-on): Update.
	* modules/termios (Depends-on): Update.
	* modules/time (Depends-on): Update.
	* modules/unistd (Depends-on): Update.
	* modules/wchar (Depends-on): Update.
	* modules/wctype-h (Depends-on): Update.
	* MODULES.html.sh (Support for building libraries and executables):
	Update.

	Rename module 'unused-parameter' to 'snippet/unused-parameter'.
	* modules/snippet/unused-parameter: Renamed from
	modules/unused-parameter.
	(Files, Makefile.am): Update.
	* build-aux/snippet/unused-parameter.h: Renamed from
	build-aux/unused-parameter.h.
	* modules/selinux-h (Depends-on): Update.
	* modules/unistr/base (Depends-on): Update.
	* MODULES.html.sh (Core language properties): Update.

	Rename module 'link-warning' to 'snippet/link-warning'.
	* modules/snippet/link-warning: Renamed from modules/link-warning.
	(Files, Makefile.am): Update.
	* build-aux/snippet/link-warning.h: Renamed from
	build-aux/link-warning.h.
	* MODULES.html.sh (Support for building libraries and executables):
	Update.

	Rename module 'c++defs' to 'snippet/c++defs'.
	* modules/snippet/c++defs: Renamed from modules/c++defs.
	(Files, Makefile.am): Update.
	* build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
	* modules/arpa_inet (Depends-on): Update.
	* modules/ctype (Depends-on): Update.
	* modules/dirent (Depends-on): Update.
	* modules/fcntl-h (Depends-on): Update.
	* modules/glob (Depends-on): Update.
	* modules/iconv-h (Depends-on): Update.
	* modules/langinfo (Depends-on): Update.
	* modules/locale (Depends-on): Update.
	* modules/math (Depends-on): Update.
	* modules/netdb (Depends-on): Update.
	* modules/poll-h (Depends-on): Update.
	* modules/pty (Depends-on): Update.
	* modules/search (Depends-on): Update.
	* modules/signal (Depends-on): Update.
	* modules/spawn (Depends-on): Update.
	* modules/stdio (Depends-on): Update.
	* modules/stdlib (Depends-on): Update.
	* modules/string (Depends-on): Update.
	* modules/strings (Depends-on): Update.
	* modules/sys_ioctl (Depends-on): Update.
	* modules/sys_select (Depends-on): Update.
	* modules/sys_socket (Depends-on): Update.
	* modules/sys_stat (Depends-on): Update.
	* modules/sys_time (Depends-on): Update.
	* modules/sys_wait (Depends-on): Update.
	* modules/termios (Depends-on): Update.
	* modules/time (Depends-on): Update.
	* modules/unistd (Depends-on): Update.
	* modules/wchar (Depends-on): Update.
	* modules/wctype-h (Depends-on): Update.

	Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
	* modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
	(Files, Makefile.am): Update.
	* build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
	* modules/argv-iter (Depends-on): Update.
	* modules/arpa_inet (Depends-on): Update.
	* modules/dirent (Depends-on): Update.
	* modules/fcntl-h (Depends-on): Update.
	* modules/fnmatch (Depends-on): Update.
	* modules/getopt-posix (Depends-on): Update.
	* modules/glob (Depends-on): Update.
	* modules/iconv-h (Depends-on): Update.
	* modules/inttypes-incomplete (Depends-on): Update.
	* modules/locale (Depends-on): Update.
	* modules/math (Depends-on): Update.
	* modules/netdb (Depends-on): Update.
	* modules/search (Depends-on): Update.
	* modules/signal (Depends-on): Update.
	* modules/spawn (Depends-on): Update.
	* modules/stdio (Depends-on): Update.
	* modules/stdlib (Depends-on): Update.
	* modules/string (Depends-on): Update.
	* modules/strings (Depends-on): Update.
	* modules/sys_socket (Depends-on): Update.
	* modules/sys_stat (Depends-on): Update.
	* modules/sys_time (Depends-on): Update.
	* modules/sys_times (Depends-on): Update.
	* modules/sys_utsname (Depends-on): Update.
	* modules/time (Depends-on): Update.
	* modules/unistd (Depends-on): Update.
	* modules/wchar (Depends-on): Update.
	* MODULES.html.sh (Support for building libraries and executables):
	Update.

2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>

	Improvements on _Noreturn and related modules.

	modules/_Exit-tests: test _Noreturn too
	* tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
	old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
	(main): Use them.

	stdnoreturn, stdnoreturn-tests: remove modules
	They're not needed here and a bit premature for use elsewhere.  See
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
	* m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
	* tests/test-stdnoreturn.c: Remove files.
	* MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
	* lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
	* lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
	and using noreturn.
	* modules/openat, modules/sigpipe-die, modules/xalloc:
	* modules/xmemdup0, modules/xstrtol:
	Remove dependency on stdnoreturn.

	_Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
	* build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
	Reparenthesize to avoid GCC warning.
	Support Microsoft's syntax.
	* m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.

	_Noreturn-tests: remove module
	* modules/_Noreturn-tests: Remove.
	* modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
	* tests/test-_Noreturn.c: Remove.
	* tests/test-stdnoreturn.c: Merge from the old
	tests/test-_Noreturn.c, testing both noreturn and _Noreturn.

2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>

	_Noreturn, stdnoreturn, and related modules.

	* top/maint.mk: Adjust to new noreturn support.
	(gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
	(def_sym_regex): Do not remove ATTRIBUTE_NORETURN.

	xalloc: use stdnoreturn.h
	* lib/xalloc.h: Include <stdnoreturn.h>.
	(_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
	* modules/xalloc (Depends-on): Add stdnoreturn.

	xstrtol: use stdnoreturn.h
	* lib/xstrtol.h: Include <stdnoreturn.h>.
	(_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
	* modules/xstrtol (Depends-on): Add stdnoreturn.

	xmemdup0: use stdnoreturn.h
	* lib/xmemdup0.h: Include <stdnoreturn.h>.
	(_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
	* modules/xmemdup0 (Depends-on): Add stdnoreturn.

	sigpipe-die: use stdnoreturn.h
	* lib/sigpipe-die.h: Include <stdnoreturn.h>.
	(_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
	* modules/sigpipe-die (Depends-on): Add stdnoreturn.

	openat: use stdnoreturn.h
	* lib/openat.h: Include <stdnoreturn.h>.
	(_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
	* modules/openat (Depends-on): Add stdnoreturn.

	* lib/openat-die.c (openat_save_fail): Modernize comment.

	* lib/xalloc-die.c (xalloc_die): Modernize comment.

	* lib/glthread/thread.h: Modernize comment.

	obstack: use _Noreturn
	* lib/obstack.c (__attribute__): Remove macro.
	(print_and_abort): Use _Noreturn.

	c-stack: use _Noreturn
	* lib/c-stack.c (die, overflow_handler, segv_handler):
	Use _Noreturn rather than __attribute__((noreturn)).

	argmatch-tests, exclude_tests: use _Noreturn
	* tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
	Remove.
	(ARGMATCH_DIE_DECL): Use _Noreturn instead.

	stdlib: use _Noreturn
	* lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
	(_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
	* modules/stdlib (Depends-on): Add _Noreturn.
	(stdlib.h): Depend on $(_NORETURN_H), and copy it in.

	stdnoreturn-tests: new module
	* modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.

	stdnoreturn: new module
	* MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
	* m4/stdnoreturn.m4, modules/stdnoreturn: New files.

	_Noreturn-tests: new module
	* modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.

	_Noreturn: new module
	* MODULES.html.sh (Support for systems lacking draft ISO C 1X):
	New section, mentioning it.
	* build-aux/_Noreturn.h, modules/_Noreturn: New files.

	* m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.

2011-07-11  Eric Blake  <eblake@redhat.com>

	ffs: new module
	* modules/ffs: New file.
	* m4/ffs.m4: Likewise.
	* lib/ffs.c: Likewise.
	* m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
	* modules/strings (Makefile.am): Substitute witness.
	(Depends-on): Add c++defs.
	* lib/strings.in.h (ffs): Declare.
	* modules/ffs-tests: New test file.
	* tests/test-ffs.c: Test new module.
	* MODULES.html.sh (Integer arithmetic functions): Mention it.
	* doc/posix-functions/ffs.texi (ffs): Likewise.

	regex: avoid compiler warning
	* lib/regex.c (includes): Include <strings.h>, for use of
	strcasecmp in regcomp.c.
	Reported by Joachim Schmitz.

2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>

	stdint: respect system's intmax_t if INTMAX_MAX
	* lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
	INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
	uintmax_t.  This is for some Mac OS X builds, where intmax_t is
	long but int64_t is long long, and where we will clash with the
	system intmax_t if we override it.  See
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
	(INTMAX_C, UINTMAX_C): For consistency, respect the system's
	INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
	similarly for UINTMAX_C.

2011-07-08  Bruno Haible  <bruno@clisp.org>

	pthread_sigmask tests: Avoid a compiler warning.
	* tests/test-pthread_sigmask1.c (main): Complain if system() returns
	non-zero.

	sigprocmask tests: A better way to avoid a compiler warning.
	* tests/test-sigprocmask.c: Don't include "ignore-value.h".
	(main): Complain if system() returns non-zero.
	* modules/sigprocmask-tests (Depends-on): Remove ignore-value.

2011-07-08  Bruno Haible  <bruno@clisp.org>

	pthread_sigmask: Work around IRIX bug.
	* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
	bug.
	* lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
	there may be unblocked pending signals.
	* doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.

2011-07-08  Bruno Haible  <bruno@clisp.org>

	pthread_sigmask: Work around Cygwin bug.
	* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
	bug.
	* lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
	the system's pthread_sigmask function.
	* doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.

2011-07-08  Bruno Haible  <bruno@clisp.org>

	pthread_sigmask: Work around bug in single-threaded implementation.
	* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
	FreeBSD, HP-UX, Solaris bug.
	(gl_PREREQ_PTHREAD_SIGMASK): New macro.
	* lib/pthread_sigmask.c: Include <stddef.h>.
	(pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
	the system's pthread_sigmask function.
	* modules/pthread_sigmask (configure.ac): Invoke
	gl_PREREQ_PTHREAD_SIGMASK.
	* doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
	HP-UX, Solaris.

2011-07-08  Eric Blake  <eblake@redhat.com>

	test-sigprocmask: avoid compiler warning
	* modules/sigprocmask-tests (Depends-on): Add ignore-value.
	* tests/test-sigprocmask.c (main): Use it to silence warning.
	Reported by Jim Meyering.

	test-snprintf: avoid compiler warning
	* tests/test-snprintf.c (main): Avoid shadowed declaration.
	* tests/test-vsnprintf.c (main): Likewise.
	Reported by Jim Meyering.

2011-07-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'pthread_sigmask'.
	* modules/pthread_sigmask-tests: New file.
	* tests/test-pthread_sigmask1.c: New file, based on
	tests/test-sigprocmask.c.
	* tests/test-pthread_sigmask2.c: New file.

2011-07-08  Jim Meyering  <meyering@redhat.com>

	test-getopt.h: avoid warning about an unused variable
	* tests/test-getopt.h (test_getopt): Remove unused variable, "c".

2011-07-07  Jim Meyering  <meyering@redhat.com>

	maint: reduce list of files exempt from sc_prohibit_leading_TABs
	* Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
	now that it no longer contains leading TABs.
	Remove unused "url=FIXME" statement.

2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>

	pthread_sigmask: Assume POSIX when not gl_THREADLIB.
	* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
	When gl_THREADLIB is not in use, assume that the POSIX sematics
	are desired.  This is better for Emacs, which uses POSIX semantics
	on GNUish and/or POSIXish platforms, and does not use threads at
	all otherwise.

	pthread_sigmask: fix typo when testing for libraries
	* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
	AC_LINK_IFELSE, not AC_COMPILE_IFELSE.

2011-07-08  Eric Blake  <eblake@redhat.com>

	fts: introduce FTS_NOATIME
	* lib/fts_.h (FTS_NOATIME): New bit flag.
	(FTS_OPTIONMASK): Adjust.
	* lib/fts.c (diropen, fts_open, fts_build): Honor it.
	(fd_ring_check): Debug code unconditionally uses O_NOATIME.

2011-07-08  Bruno Haible  <bruno@clisp.org>

	Tests for module 'thread'.
	* modules/thread-tests: New file.
	* tests/test-thread_self.c: New file.
	* tests/test-thread_create.cc: New file.

2011-07-08  Bruno Haible  <bruno@clisp.org>

	thread: Avoid gcc warnings when using gl_thread_self().
	* lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
	'void *'.
	(gl_thread_self_pointer): Update.

2011-07-07  Bruno Haible  <bruno@clisp.org>

	signal-c++-tests: Check declaration of pthread_sigmask.
	* tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
	* modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
	$(LIB_PTHREAD_SIGMASK).

2011-07-07  Bruno Haible  <bruno@clisp.org>

	pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
	* lib/signal.in.h (pthread_sigmask): Override if
	REPLACE_PTHREAD_SIGMASK is 1.
	* m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
	REPLACE_PTHREAD_SIGMASK.
	* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
	REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
	* modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
	* modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
	(Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).

2011-07-07  Bruno Haible  <bruno@clisp.org>

	pthread_sigmask: Ensure declaration in <signal.h>.
	* lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
	include <pthread.h>.
	* doc/posix-functions/pthread_sigmask.texi: Mention the header file
	problem.

2011-07-07  Bruno Haible  <bruno@clisp.org>

	pthread_sigmask: Document the module.
	* doc/posix-functions/pthread_sigmask.texi: Mention the new module.

2011-07-07  Bruno Haible  <bruno@clisp.org>

	pthread_sigmask: Follow gnulib conventions.
	* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
	gl_PTHREAD_SIGMASK.
	* modules/pthread_sigmask (configure.ac): Update.

2011-07-07  Bruno Haible  <bruno@clisp.org>

	pthread_sigmask: Make declaration C++ safe.
	* lib/signal.in.h: In two special conditions, just do an #include_next.
	(pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
	Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
	* m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
	HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
	* m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
	not REPLACE_PTHREAD_MASK.
	* modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
	not REPLACE_PTHREAD_MASK.
	* modules/pthread_sigmask (Depends-on, configure.ac): Update condition.

2011-07-07  Bruno Haible  <bruno@clisp.org>

	pthread_sigmask: Fix return value.
	* lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
	* lib/pthread_sigmask.c: New file.
	* modules/pthread_sigmask (Files): Add it.
	(configure.ac): Invoke AC_LIBOBJ.

2011-07-07  Eric Blake  <eblake@redhat.com>

	getopt: more portable argv creation
	* m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
	const, use char arrays rather than strings.
	Suggested by Paul Eggert.

2011-07-07  Bruno Haible  <bruno@clisp.org>

	Tests for module 'sigprocmask'.
	* modules/sigprocmask-tests: New file.
	* tests/test-sigprocmask.c: New file.

2011-07-07  Bruno Haible  <bruno@clisp.org>

	float tests: Tweak.
	* tests/test-float.c (main): Tweak skip message.

2011-07-07  Eric Blake  <eblake@redhat.com>

	getopt: avoid compiler warning during configure
	* m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
	assigning string literals to non-const pointer.

	getopt-gnu: avoid crash in glibc getopt
	* m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
	* tests/test-getopt.h (test_getopt): Enhance test.
	* tests/test-getopt_long.h (test_getopt_long): Likewise.
	* doc/posix-functions/getopt.texi (getopt): Document it.
	* doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
	* doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
	Likewise.

2011-07-07  Ulrich Drepper  <drepper@gmail.com>

	getopt: handle W; without long options in getopt [BZ #12922]
	* lib/getopt.c (_getopt_internal_r): When "W;" is in short options
	but no long options are defined, just return 'W'.

2011-07-07  Bruno Haible  <bruno@clisp.org>

	Avoid literal tabs.
	* m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
	variable containing a tab instead of a literal tab.
	Reported by Jim Meyering.

2011-07-07  Bruno Haible  <bruno@clisp.org>

	Comments.
	* m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.

2011-07-06  Bruno Haible  <bruno@clisp.org>

	sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
	* lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
	<winsock2.h>.
	(rpl_fd_isset, FD_ISSET): New definitions, copied from
	lib/sys_socket.in.h.
	(close, gethostname): Hide declarations from <winsock2.h>.
	(socket, connect, accept, bind, getpeername, getsockname, getsockopt,
	listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
	* lib/sys_socket.in.h (close, gethostname): Tweak indentation.
	(select): Don't override if gnulib's <sys/select.h> was already
	included.
	* lib/unistd.in.h (socket, connect, accept, bind, getpeername,
	getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
	setsockopt, shutdown, select): Tweak indentation.

2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>

	* modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
	and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
	in an application that does not use the sys_select module.

2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>

	poll: do not return 0 on timeout=-1
	* lib/poll.c: Loop with yield if no events occured

2011-07-06  Eric Blake  <eblake@redhat.com>

	pthread_sigmask: always replace when not using pthread
	* m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
	replacement when using some threading other than pthread.  Fix
	logic bug.

2011-07-06  Bruno Haible  <bruno@clisp.org>

	Comments.
	* m4/printf.m4: Update comments about mingw.

2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>

	sys_select: define sigset_t more portably
	* lib/sys_select.in.h: Always include <sys/types.h>, since
	we now need sigset_t and mingw defines it there.
	Include <signal.h> before split inclusion guard, to avoid
	mishaps on Solaris, whose <signal.h> eventually includes us.
	* m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
	(gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
	which come from ...
	* m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
	gl_CHECK_TYPE_SIGSET_T.
	(gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
	does the real work.
	* modules/sys_select (Depends-on): Add 'signal'.

	* m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
	Suggested by Bruno Haible.

	pselect: Use pthread_sigmask, not sigprocmask.
	* lib/pselect.c (pselect): Use pthread_sigmask, as it supports
	multithreaded apps better than sigprocmask does.
	* modules/pselect (Depends-on): Depend on pthread_sigmask, not
	sigprocmask directly.

2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>

	* lib/pselect.c (pselect): Use plain name, without "rpl_".
	Don't #undef,  since we don't need any underlying pselect.
	* modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
	(Depends-on): Add select.
	(Link): Add $(LIBSOCKET).
	These changes suggested by Bruno Haible.

	pselect: document better
	* MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
	* doc/posix-functions/pselect.texi (pselect): Document new module.

	pthread_sigmask: new module
	* MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
	* doc/posix-functions/pthread_sigmask.texi: Document new module.
	* lib/signal.in.h (pthread_sigmask): Arrange for replacement.
	This is done only as a macro; I don't know how well that'll
	work for C++.  Move <sys/types.h> include before the include_next,
	to avoid mishap on Solaris.
	* m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
	* modules/signal (Makefile.am): Substitute the check's results.
	* modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.

	test-pselect: new module
	* modules/pselect-tests, tests/test-pselect.c: New files.
	* tests/test-select.c, tests/test-sys_select-c++.cc:
	If TEST_PSELECT is defined, test pselect instead of testing select.

	* tests/test-sys_select.c (sigset_t): Test for it, too.
	Suggested by Bruno Haible.

2011-07-05  Eric Blake  <eblake@redhat.com>

	snprintf: guarantee %1$d, for libintl
	* m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
	* m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
	* doc/posix-functions/snprintf.texi (snprintf): Update.
	* doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
	* tests/test-snprintf.c (main): Enhance test.
	* tests/test-vsnprintf.c (main): Likewise.

2011-07-05  Jim Meyering  <meyering@redhat.com>

	maint: exempt stdio-read.c and stdio-write.c from the cppi check
	* Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
	per Bruno's request, to accommodate this idiom (no space after "#")
	even when the function is inside an #if block:
	char *
	gets (char *s)
	#undef gets
	{
	  ...
	}

2011-07-04  Jim Meyering  <meyering@redhat.com>

	maint: indent with spaces, not TABs, and add a rule to check this
	* tests/test-userspec.c: Indent with spaces, not TABs.
	* tests/test-argp.c: Likewise.
	* tests/test-c-stack2.sh: Likewise.
	* tests/test-parse-duration.sh: Likewise
	* m4/strtod.m4: Likewise.
	* m4/alloca.m4: Likewise.
	* m4/pselect.m4: Likewise.
	* Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.

2011-07-03  Jim Meyering  <meyering@redhat.com>

	maint.mk: correct omissions in prohibit_argmatch_without_use check
	This rule would mistakenly report that argmatch.h is included without
	use even when both the argmatch and invalid_arg macro were used.
	* top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
	of argmatch and invalid_arg.

2011-07-03  Bruno Haible  <bruno@clisp.org>

	Comments about EINTR.
	* lib/safe-read.h: Explain the purpose of this module.
	* lib/safe-write.h: Likewise.
	* doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
	module.
	* doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
	module.
	Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.

2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>

	xnanosleep: Rewrite to use new dtotimespec module.
	It has the conversion code that used to be in xnanosleep.
	* lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
	assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
	(TIME_T_MAX): Remove.
	(xnanosleep): Rewrite in terms of dtotimespec.
	* modules/xnanosleep (Depends-on): Add dtotimespec.
	Remove intprops, stdbool.

	timespec-add, timespec-sub: new modules
	* lib/timespec.h (timespec_add, timespec_sub): New decls.
	* lib/timespec-add.c, lib/timespec-sub.c:
	* modules/timespec-add, modules/timespec-sub: New files.

	dtotimespec: new module
	* lib/timespec.h (dtotimespec): New decl.
	* lib/dtotimespec.c, modules/dtotimespec: New files.

	* lib/timespec.h (timespec_sign, timespectod): New inline functions.

	pselect: new module
	* lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
	(pselect): New decls.
	* m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
	since the standard pselect decl uses 'restrict'.
	(gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
	HAVE_PSELECT, REPLACE_PSELECT.
	* modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
	HAVE_PSELECT, REPLACE_PSELECT.
	* lib/pselect.c, m4/pselect.m4, modules/pselect: New files.

	sys_select: don't depend on sys_socket
	This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
	This fix works on GNU and GNU-like platforms, but has not been tested
	on native Windows.
	* lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
	* m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
	gl_HEADER_SYS_SOCKET.
	* modules/sys_select (Files): Add m4/sys_socket_h.m4, for
	gl_PREREQ_SYS_H_WINSOCK2.

2011-06-29  Eric Blake  <eblake@redhat.com>

	pipe2: fix C89 compile problem
	* lib/pipe2.c (pipe2): Avoid C99 array initialization.
	Reported by Bruno Haible.

	pipe, pipe2: don't corrupt fd on error
	* lib/pipe.c (pipe): Leave fd unchanged on error.
	* lib/pipe2.c (pipe2): Likewise.
	* doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
	* doc/glibc-functions/pipe2.texi (pipe2): Likewise.

2011-06-27  Paolo Bonzini  <bonzini@gnu.org>

	mmap-anon: do not use regular expressions inadvertently
	* m4/mmap-anon.m4: Remove trailing period from strings sought
	in the output.

2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>

	nanosleep: fix integer overflow problem
	* lib/nanosleep.c (my_usleep): Don't assume signed integer
	arithmetic wraps around on overflow.

	nanosleep: simplify carrying
	* lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
	first call to the underyling nanosleep, not for the last one.
	This doesn't fix any bugs, but it simplifies the computation of
	the remaining delay.  Found while auditing integer overflow issues.

	dup2: remove test for existence of fcntl
	* m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
	"#if HAVE_FCNTL", in the configure-time test program.
	This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
	and therefore speeds up "configure" a bit.  Found while
	adding the dup2 module to Emacs.

2011-06-24  Eric Blake  <eblake@redhat.com>

	maint.mk: enhance useless header checks
	* top/maint.mk (_sc_header_without_use): Check both include
	styles.
	(sc_prohibit_assert_without_use)
	(sc_prohibit_close_stream_without_use)
	(sc_prohibit_getopt_without_use)
	(sc_prohibit_quotearg_without_use)
	(sc_prohibit_quote_without_use)
	(sc_prohibit_long_options_without_use)
	(sc_prohibit_inttostr_without_use)
	(sc_prohibit_ignore_value_without_use)
	(sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
	(sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
	(sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
	(sc_prohibit_hash_pjw_without_use)
	(sc_prohibit_safe_read_without_use)
	(sc_prohibit_argmatch_without_use)
	(sc_prohibit_canonicalize_without_use)
	(sc_prohibit_root_dev_ino_without_use)
	(sc_prohibit_openat_without_use)
	(sc_prohibit_c_ctype_without_use)
	(sc_prohibit_signal_without_use)
	(sc_prohibit_stdio--_without_use)
	(sc_prohibit_stdio-safer_without_use)
	(sc_prohibit_strings_without_use)
	(sc_prohibit_intprops_without_use)
	(sc_prohibit_stddef_without_use)
	(sc_prohibit_xfreopen_without_use): Update clients.

2011-06-24  Jim Meyering  <meyering@redhat.com>

	syntax-check: keep one maint.mk rule in sync with its header
	* Makefile (sc_check_sym_list): Add a rule to prevent a repeat
	of the bug Eric has just fixed, with today's commit 25e4c2ec.
	I prefer to avoid temporary files here, so use <(...), but that
	is not supported by /bin/sh, so...
	(SHELL): Define to /bin/bash.

2011-06-24  Eric Blake  <eblake@redhat.com>

	maint.mk: update sc_prohibit_intprops_without_use
	* top/maint.mk (_intprops_names): Match recent changes.

2011-06-24  Bruno Haible  <bruno@clisp.org>

	strerror-override: No-op tweak.
	* lib/strerror-override.h (strerror_override): Reorder conditions,
	for consistency with lib/strerror-override.c.

2011-06-23  Eric Blake  <eblake@redhat.com>

	maint.mk: test further PATH_MAX issues
	* top/maint.mk (sc_prohibit_path_max_array): Rename...
	(sc_prohibit_path_max_allocation): ...and also test alloca.
	Suggested by Jim Meyering.

2011-06-22  Eric Blake  <eblake@redhat.com>

	maint.mk: add syntax-check to avoid char[PATH_MAX]
	* top/maint.mk (sc_prohibit_path_max_array): New rule.

	stat: be robust to PATH_MAX definition
	* lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
	* modules/stat (Depends-on): Add verify.

	link: work around IRIX bug
	* m4/link.m4 (gl_FUNC_LINK): Expose the bug.
	* lib/link.c (rpl_link): Work around it.
	* tests/test-link.h (test_link): Enhance test.
	* doc/posix-functions/link.texi (link): Document the bug.

	getopt: silence clang warning
	* lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
	dereference.
	Reported by Gustavo Martin Domato.

2011-06-22  Jim Meyering  <meyering@redhat.com>

	bootstrap: do not insert a blank line into each .gitignore file
	* build-aux/bootstrap (sort_patterns): Filter out blank lines.

2011-06-21  Eric Blake  <eblake@redhat.com>

	perror: test for output mismatch
	* m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
	perror on IRIX.

	strerror_r: fix OpenBSD behavior on out-of-range
	* lib/strerror_r.c (strerror_r): Always use maximal string.
	* doc/posix-functions/strerror_r.texi (strerror_r): Document it.

	strerror_r: fix OpenBSD behavior on 0
	* lib/strerror-override.c (strerror_override): Also override 0
	when needed.
	* lib/strerror-override.h (strerror_override): Likewise.
	* lib/strerror.c (strerror): Simplify, now that 0 override is done
	earlier.
	* lib/strerror_r.c (strerror_r): Likewise.
	* m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
	behavior...
	(gl_FUNC_STRERROR_0): ...into new macro.
	* m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
	is overridden.
	(gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
	* modules/strerror-override (Files): Add strerror.m4.
	(configure.ac): Also provide override for 0 when needed.
	* doc/posix-functions/strerror.texi (strerror): Document this.
	* doc/posix-functions/perror.texi (perror): Likewise.

	perror: adjust array size
	* modules/perror (Depends-on): Add strerror-override.
	* lib/perror.c (perror): Use it to avoid magic number.

	strerror-override: reduce size
	* lib/strerror-override.c (strerror_override): Use fewer lines.

2011-06-20  Bruno Haible  <bruno@clisp.org>

	pathmax: Ensure correct value for PATH_MAX on HP-UX.
	* lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.

2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>

	alloca: port to compilers that can optimize like GCC 4.6.0
	* lib/alloca.c (find_stack_direction): New signature, taken from
	Autoconf git.  This works with GCC 4.6.0.  This code should never
	be used with GCC 4.6.0 itself, as GCC has alloca, but it might
	be used with other compilers that optimize as well as GCC 4.6.0 does.
	(alloca): Adjust to new signature.
	* m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
	New macro, which patches Autoconf in a similar way.

	c-stack: stop worrying about stack direction
	* lib/c-stack.c (find_stack_direction): Remove.
	(segv_handler): Don't worry about stack direction growth, as it's
	too much of a pain to configure this correctly, given how compilers
	are optimizing-away our stack-growth detection code.  Instead, assume
	that any access to just before or just after the stack is OK.
	* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
	Don't require AC_FUNC_ALLOCA; no longer needed.

2011-06-20  Eric Blake  <eblake@redhat.com>

	test-stat: don't allocate PATH_MAX bytes
	* tests/test-stat.h (test_stat_func): Don't stack-allocate a
	PATH_MAX-sized buffer.
	* modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
	* modules/stat-tests (Depends-on): Likewise.
	* tests/test-fstatat.c (includes): Drop pathmax.h.
	* tests/test-stat.c (includes): Likewise.
	Reported by Bruno Haible.

2011-06-20  Bruno Haible  <bruno@clisp.org>

	float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
	* lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
	* lib/float.c: New file.
	* m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
	REPLACE_FLOAT_LDBL.
	* modules/float (Files): Add lib/float.c.
	(configure.ac): Invoke AC_LIBOBJ.
	* doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.

2011-06-20  Bruno Haible  <bruno@clisp.org>

	Tests for module 'float'.
	* modules/float-tests: New file.
	* tests/test-float.c: New file.

2011-06-19  Bruno Haible  <bruno@clisp.org>

	isinf: Coding style.
	* lib/isinf.c: Use GNU coding style.

2011-06-19  Bruno Haible  <bruno@clisp.org>

	linkat test: Avoid test failure on AIX 7.1.
	* tests/test-linkat.c (main): Allow EINVAL as alternate error value.
	* tests/test-link.h (test_link): Likewise.

2011-06-19  Bruno Haible  <bruno@clisp.org>

	pread test: Avoid test failure on OpenBSD 4.9.
	* tests/test-pread.c (main): Allow EFBIG instead of EINBAL.

2011-06-19  Bruno Haible  <bruno@clisp.org>

	sprintf-posix: Fix test failure on AIX 7.1.
	* m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
	* doc/posix-functions/dprintf.texi: Mention limited precision problem
	on AIX.
	* doc/posix-functions/fprintf.texi: Likewise.
	* doc/posix-functions/printf.texi: Likewise.
	* doc/posix-functions/snprintf.texi: Likewise.
	* doc/posix-functions/sprintf.texi: Likewise.
	* doc/posix-functions/vdprintf.texi: Likewise.
	* doc/posix-functions/vfprintf.texi: Likewise.
	* doc/posix-functions/vprintf.texi: Likewise.
	* doc/posix-functions/vsnprintf.texi: Likewise.
	* doc/posix-functions/vsprintf.texi: Likewise.

2011-06-19  Bruno Haible  <bruno@clisp.org>

	roundl-ieee: Fix test failure on AIX 7.1.
	* m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
	* doc/posix-functions/roundl.texi: Mention problem with negative
	arguments.

2011-06-19  Bruno Haible  <bruno@clisp.org>

	round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
	* modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
	* doc/posix-functions/round.texi: Mention problem with negative
	arguments.
	* doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.

2011-06-19  Bruno Haible  <bruno@clisp.org>

	roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
	* m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
	* modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
	* doc/posix-functions/roundf.texi: Mention problem with negative
	arguments.
	* doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.

2011-06-19  Bruno Haible  <bruno@clisp.org>

	ceilf-ieee: Work around bug on MacOS X 10.5.
	* doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.

	floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
	* m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
	IEEE compliant, avoid compiler optimizations.
	* m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
	* m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
	* m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
	* m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
	* m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
	* m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
	* m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
	* m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
	* m4/round.m4 (gl_FUNC_ROUND): Likewise.
	* m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.

2011-06-19  Bruno Haible  <bruno@clisp.org>

	ceilf-ieee: Work around bug on AIX 7.1.
	* m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
	* doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.

2011-06-19  Bruno Haible  <bruno@clisp.org>

	ceil-ieee: Work around bug on AIX 7.1.
	* m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
	* doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.

2011-06-18  Bruno Haible  <bruno@clisp.org>

	fsync test: Avoid test failure on MacOS X and AIX.
	* tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
	EINVAL.

2011-06-18  Bruno Haible  <bruno@clisp.org>

	openat, fdopendir tests: Fix link errors.
	* modules/openat-tests (Depends-on): Add progname.
	* modules/fdopendir-tests (Depends-on): Likewise.
	* tests/test-fchownat.c: Include progname.h.
	(main): Call set_program_name.
	* tests/test-fstatat.c: Include progname.h.
	(main): Call set_program_name.
	* tests/test-mkdirat.c: Include progname.h.
	(main): Call set_program_name.
	* tests/test-openat.c: Include progname.h.
	(main): Call set_program_name.
	* tests/test-unlinkat.c: Include progname.h.
	(main): Call set_program_name.
	* tests/test-fdopendir.c: Include progname.h.
	(main): Call set_program_name.

2011-06-18  Bruno Haible  <bruno@clisp.org>

	Doc update.
	* doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
	HP-UX.
	* doc/posix-functions/pthread_attr_setstack.texi: Likewise.

2011-06-18  Bruno Haible  <bruno@clisp.org>

	getcwd tests: Avoid compilation error on HP-UX 11.31.
	* modules/getcwd-tests (Depends-on): Add pathmax.
	* tests/test-getcwd.c: Include pathmax.h.

2011-06-18  Bruno Haible  <bruno@clisp.org>

	isfinite, isinf: Fix link error on AIX 6 and 7.
	* m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
	needed, also test the macro with a 'float' argument.
	* m4/isinf.m4 (gl_ISINF): Likewise.

2011-06-18  Bruno Haible  <bruno@clisp.org>

	getloadavg: Don't clobber LIBS. Regression from previous commit.
	* m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
	AC_CHECK_LIB from here...
	(gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
	(gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
	gl_func_getloadavg_done.
	Reported by Tom G. Christensen <tgc@jupiterrise.com>.

2011-06-18  Bruno Haible  <bruno@clisp.org>

	clean-temp: Improve documentation.
	* lib/clean-temp.h: Explain better how to use this module.
	Reported by John Darrington <john@darrington.wattle.id.au>.

2011-06-17  Bruno Haible  <bruno@clisp.org>

	pread, pwrite: Avoid cc warning on AIX.
	* lib/unistd.in.h (pread): Undefine before defining as a macro.
	(pwrite): Likewise.

2011-06-17  Bruno Haible  <bruno@clisp.org>

	spawn-pipe tests: Fix link error.
	* tests/test-spawn-pipe-child.c: Undefine fprintf.
	Reported by Tom G. Christensen <tgc@jupiterrise.com>.

2011-06-17  Bruno Haible  <bruno@clisp.org>

	Tests: Remove unnecessary dependency.
	* modules/canonicalize-tests (Depends-on): Remove progname.
	* modules/chown-tests (Depends-on): Likewise.
	* modules/dirname-tests (Depends-on): Likewise.
	* modules/fdopendir-tests (Depends-on): Likewise.
	* modules/fdutimensat-tests (Depends-on): Likewise.
	* modules/hash-tests (Depends-on): Likewise.
	* modules/lchown-tests (Depends-on): Likewise.
	* modules/linkat-tests (Depends-on): Likewise.
	* modules/renameat-tests (Depends-on): Likewise.
	* modules/spawn-pipe-tests (Depends-on): Likewise.
	* modules/utimensat-tests (Depends-on): Likewise.

2011-06-17  Bruno Haible  <bruno@clisp.org>

	spawn-pipe tests: Fix link error.
	* tests/test-spawn-pipe-child.c: Undefine fflush.

2011-06-17  Bruno Haible  <bruno@clisp.org>

	Fix tests link errors.
	* modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
	* modules/chown-tests (Makefile.am): Don't link test-chown with
	LIBINTL.
	* modules/lchown-tests (Makefile.am): Don't link test-lchown with
	LIBINTL.
	* modules/utimens-tests (Makefile.am): Don't link test-utimens with
	LIBINTL.
	* modules/futimens-tests (Makefile.am): Don't link test-futimens with
	LIBINTL.

2011-06-16  Bruno Haible  <bruno@clisp.org>

	crypto/gc-sha1: Fix recent regression.
	* modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
	* m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.

	crypto/gc-md5: Fix recent regression.
	* modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.

	crypto/gc-md4: Fix recent regression.
	* modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
	* m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.

	crypto/gc-arctwo: Fix recent regression.
	* modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
	* m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.

	crypto/gc-rijndael: Fix recent regression.
	* modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
	(configure.ac): Invoke AC_LIBOBJ here.
	* m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
	Reported by Tom G. Christensen <tgc@jupiterrise.com>.

	crypto/gc-hmac-sha1: Fix recent regression.
	* modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
	(configure.ac): Invoke AC_LIBOBJ here.
	* m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
	Reported by Tom G. Christensen <tgc@jupiterrise.com>.

	crypto/gc-hmac-md5: Fix recent regression.
	* modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
	(configure.ac): Invoke AC_LIBOBJ here.
	* m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
	Reported by Tom G. Christensen <tgc@jupiterrise.com>.

	crypto/gc-des: Fix recent regression.
	* modules/crypto/gc-des (Files): Remove m4/des.m4.
	(configure.ac): Invoke AC_LIBOBJ here.
	* m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
	Reported by Tom G. Christensen <tgc@jupiterrise.com>.

	crypto/gc-arcfour: Fix recent regression.
	* modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
	(configure.ac): Invoke AC_LIBOBJ here.
	* m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
	Reported by Tom G. Christensen <tgc@jupiterrise.com>.

2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>

	* m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
	After the 2011-05-21 change, this macro requires
	gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
	AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.

2011-06-16  Bruno Haible  <bruno@clisp.org>

	fprintftime: Move AC_LIBOBJ invocations to module description.
	* m4/fprintftime.m4: Remove file.
	* modules/fprintftime (Files): Remove m4/fprintftime.m4.
	(configure.ac): Remove gl_FPRINTFTIME call.
	(Makefile.am): Augment lib_SOURCES.
	Reported by Jim Meyering.

2011-06-16  Bruno Haible  <bruno@clisp.org>

	tmpfile-safer: Finish 2011-05-23 commit.
	* m4/stdio-safer.m4: Really remove file.
	Reported by Jim Meyering.

2011-06-16  Bruno Haible  <bruno@clisp.org>

	syntax-check: Fix typo.
	* Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
	printf-posix.m4.
	Reported by Jim Meyering.

2011-06-13  Jim Meyering  <meyering@redhat.com>

	syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
	* Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	yesno: Move AC_LIBOBJ invocations to module description.
	* m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
	* modules/yesno (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	xstrtol: Move AC_LIBOBJ invocations to module description.
	* m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
	* modules/xstrtol (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	xstrtold: Move AC_LIBOBJ invocations to module description.
	* m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
	* modules/xstrtold (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	xstrtod: Move AC_LIBOBJ invocations to module description.
	* m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
	* modules/xstrtod (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	xnanosleep: Move AC_LIBOBJ invocations to module description.
	* m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
	* modules/xnanosleep (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	xgetcwd: Move AC_LIBOBJ invocations to module description.
	* m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
	* modules/xgetcwd (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	xalloc: Move AC_LIBOBJ invocations to module description.
	* m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
	* modules/xalloc (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	write-any-file: Move AC_LIBOBJ invocations to module description.
	* m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
	invocation.
	* modules/write-any-file (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	utimens: Move AC_LIBOBJ invocations to module description.
	* m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
	* modules/utimens (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	utimecmp: Move AC_LIBOBJ invocations to module description.
	* m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
	* modules/utimecmp (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	userspec: Move AC_LIBOBJ invocations to module description.
	* m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
	* modules/userspec (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	unlinkdir: Move AC_LIBOBJ invocations to module description.
	* m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
	* modules/unlinkdir (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	unistd-safer: Move AC_LIBOBJ invocations to module description.
	* m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
	* modules/unistd-safer (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	tempname: Move AC_LIBOBJ invocations to module description.
	* m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
	* modules/tempname (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	strftime: Move AC_LIBOBJ invocations to module description.
	* m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
	* modules/strftime (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	stdlib-safer: Move AC_LIBOBJ invocations to module description.
	* m4/stdlib-safer.m4: Remove file.
	* modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
	(configure.ac): Remove gl_STDLIB_SAFER call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	tmpfile-safer: Move AC_LIBOBJ invocations to module description.
	* m4/stdio-safer.m4: Remove file.
	* modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
	(configure.ac): Remove gl_TMPFILE_SAFER call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	popen-safer: Move AC_LIBOBJ invocations to module description.
	* m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
	* modules/popen-safer (Files): Remove m4/stdio-safer.m4.
	(configure.ac): Remove gl_POPEN_SAFER call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	freopen-safer: Move AC_LIBOBJ invocations to module description.
	* m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
	* modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
	(configure.ac): Remove gl_FREOPEN_SAFER call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	fopen-safer: Move AC_LIBOBJ invocations to module description.
	* m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
	* modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
	(configure.ac): Remove gl_FOPEN_SAFER call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	crypto/sha512: Move AC_LIBOBJ invocations to module description.
	* m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
	* modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	crypto/sha256: Move AC_LIBOBJ invocations to module description.
	* m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
	* modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	crypto/sha1: Move AC_LIBOBJ invocations to module description.
	* m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
	* modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	settime: Move AC_LIBOBJ invocations to module description.
	* m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
	* modules/settime (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	savedir: Move AC_LIBOBJ invocations to module description.
	* m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
	* modules/savedir (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	save-cwd: Move AC_LIBOBJ invocations to module description.
	* m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
	* modules/save-cwd (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	same: Move AC_LIBOBJ invocations to module description.
	* m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
	* modules/same (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	safe-write: Move AC_LIBOBJ invocations to module description.
	* m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
	* modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
	instead of gl_SAFE_WRITE.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	safe-read: Move AC_LIBOBJ invocations to module description.
	* m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
	* modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
	of gl_SAFE_READ.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	safe-alloc: Move AC_LIBOBJ invocations to module description.
	* m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
	* modules/safe-alloc (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	crypto/rijndael: Move AC_LIBOBJ invocations to module description.
	* m4/rijndael.m4: Remove file.
	* modules/crypto/rijndael (Files): Remove it.
	(configure.ac): Remove gl_RIJNDAEL call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	readtokens: Move AC_LIBOBJ invocations to module description.
	* m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
	* modules/readtokens (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	read-file: Move AC_LIBOBJ invocations to module description.
	* m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
	* modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
	of gl_FUNC_READ_FILE.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	quotearg: Move AC_LIBOBJ invocations to module description.
	* m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
	* modules/quotearg (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	quote: Move AC_LIBOBJ invocations to module description.
	* m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
	* modules/quote (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	posixver: Move AC_LIBOBJ invocations to module description.
	* m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
	* modules/posixver (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	posixtm: Move AC_LIBOBJ invocations to module description.
	* m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
	* modules/posixtm (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	physmem: Move AC_LIBOBJ invocations to module description.
	* m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
	* modules/physmem (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	pagealign_alloc: Move AC_LIBOBJ invocations to module description.
	* m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
	invocation.
	* modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	mpsort: Move AC_LIBOBJ invocations to module description.
	* m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
	* modules/mpsort (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	modechange: Move AC_LIBOBJ invocations to module description.
	* m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
	* modules/modechange (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	mkdir-p: Move AC_LIBOBJ invocations to module description.
	* m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
	* modules/mkdir-p (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	mkancesdirs: Move AC_LIBOBJ invocations to module description.
	* m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
	* modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	mgetgroups: Move AC_LIBOBJ invocations to module description.
	* m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
	* modules/mgetgroups (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	memxor: Move AC_LIBOBJ invocations to module description.
	* m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
	* modules/memxor (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	memcoll: Move AC_LIBOBJ invocations to module description.
	* m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
	* modules/memcoll (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	memcasecmp: Move AC_LIBOBJ invocations to module description.
	* m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
	* modules/memcasecmp (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	crypto/md5: Move AC_LIBOBJ invocations to module description.
	* m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
	* modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	crypto/md4: Move AC_LIBOBJ invocations to module description.
	* m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
	* modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	crypto/md2: Move AC_LIBOBJ invocations to module description.
	* m4/md2.m4: Remove file.
	* modules/crypto/md2 (Files): Remove it.
	(configure.ac): Remove gl_MD2 call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	long-options: Move AC_LIBOBJ invocations to module description.
	* m4/long-options.m4: Remove file.
	* modules/long-options (Files): Remove it.
	(configure.ac): Remove gl_LONG_OPTIONS call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	i-ring: Move AC_LIBOBJ invocations to module description.
	* m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
	* modules/i-ring (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	idcache: Move AC_LIBOBJ invocations to module description.
	* m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
	* modules/idcache (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	human: Move AC_LIBOBJ invocations to module description.
	* m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
	* modules/human (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
	* m4/hmac-sha1.m4: Remove file.
	* modules/crypto/hmac-sha1 (Files): Remove it.
	(configure.ac): Remove gl_HMAC_SHA1 call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
	* m4/hmac-md5.m4: Remove file.
	* modules/crypto/hmac-md5 (Files): Remove it.
	(configure.ac): Remove gl_HMAC_MD5 call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	hash: Move AC_LIBOBJ invocations to module description.
	* m4/hash.m4: Remove file.
	* modules/hash (Files): Remove it.
	(configure.ac): Remove gl_HASH call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	hard-locale: Move AC_LIBOBJ invocations to module description.
	* m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
	* modules/hard-locale (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	getugroups: Move AC_LIBOBJ invocations to module description.
	* m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
	* modules/getugroups (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	gettime: Move AC_LIBOBJ invocations to module description.
	* m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
	* modules/gettime (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	getndelim2: Move AC_LIBOBJ invocations to module description.
	* m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
	* modules/getndelim2 (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
	* m4/gc-pbkdf2-sha1.m4: Remove file.
	* modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
	(configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	fts: Move AC_LIBOBJ invocations to module description.
	* m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
	* modules/fts (configure.ac): ... to here.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	file-type: Move AC_LIBOBJ invocations to module description.
	* m4/file-type.m4: Remove file.
	* modules/file-type (Files): Remove it.
	(configure.ac): Remove gl_FILE_TYPE call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	filenamecat*: Respect rules for use of AC_LIBOBJ.
	* m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
	Remove AC_LIBOBJ invocation.
	* modules/filenamecat (Makefile.am): Augment lib_SOURCES.
	* modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	filemode: Move AC_LIBOBJ invocations to module description.
	* m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
	* modules/filemode (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	openat-safer: Move AC_LIBOBJ invocations to module description.
	* m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
	* modules/openat-safer (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	fcntl-safer: Move AC_LIBOBJ invocations to module description.
	* m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
	* modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	exclude: Move AC_LIBOBJ invocations to module description.
	* m4/exclude.m4: Remove file.
	* modules/exclude (Files): Remove it.
	(configure.ac): Remove gl_EXCLUDE call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	dirname*: Respect rules for use of AC_LIBOBJ.
	* m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
	invocations.
	* modules/dirname (Makefile.am): Augment lib_SOURCES.
	* modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	dirent-safer: Move AC_LIBOBJ invocations to module description.
	* m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
	* modules/dirent-safer (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	crypto/des: Move AC_LIBOBJ invocations to module description.
	* m4/des.m4: Remove file.
	* modules/crypto/des (Files): Remove it.
	(configure.ac): Remove gl_DES call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	cycle-check: Move AC_LIBOBJ invocations to module description.
	* m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
	* modules/cycle-check (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	c-strtold: Move AC_LIBOBJ invocations to module description.
	* m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
	* modules/c-strtold (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	c-strtod: Move AC_LIBOBJ invocations to module description.
	* m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
	* modules/c-strtod (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	crc: Move AC_LIBOBJ invocations to module description.
	* m4/crc.m4: Remove file.
	* modules/crc (Files): Remove it.
	(configure.ac): Remove gl_CRC call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	close-stream: Move AC_LIBOBJ invocations to module description.
	* m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
	* modules/close-stream (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	closeout: Move AC_LIBOBJ invocations to module description.
	* m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
	* modules/closeout (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	closein: Move AC_LIBOBJ invocations to module description.
	* m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
	* modules/closein (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	cloexec: Move AC_LIBOBJ invocations to module description.
	* m4/cloexec.m4: Remove file.
	* modules/cloexec (Files): Remove it.
	(configure.ac): Remove gl_CLOEXEC call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	check-version: Move AC_LIBOBJ invocations to module description.
	* m4/check-version.m4: Remove file.
	* modules/check-version (Files): Remove it.
	(configure.ac): Remove gl_CHECK_VERSION call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	chdir-safer: Move AC_LIBOBJ invocations to module description.
	* m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
	* modules/chdir-safer (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	canonicalize: Move AC_LIBOBJ invocations to module description.
	* m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
	AC_LIBOBJ invocation.
	* modules/canonicalize (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	canon-host: Move AC_LIBOBJ invocations to module description.
	* m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
	* modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
	instead of gl_CANON_HOST.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	backupfile: Move AC_LIBOBJ invocations to module description.
	* m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
	* modules/backupfile (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	argmatch: Move AC_LIBOBJ invocations to module description.
	* m4/argmatch.m4: Remove file.
	* modules/argmatch (Files): Remove it.
	(configure.ac): Remove gl_ARGMATCH call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	crypto/arctwo: Move AC_LIBOBJ invocations to module description.
	* m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
	* modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.

2011-05-23  Bruno Haible  <bruno@clisp.org>

	crypto/arcfour: Move AC_LIBOBJ invocations to module description.
	* m4/arcfour.m4: Remove file.
	* modules/crypto/arcfour (Files): Remove it.
	(configure.ac): Remove gl_ARCFOUR call.
	(Makefile.am): Augment lib_SOURCES.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	write: Move AC_LIBOBJ invocations to module description.
	* m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
	* modules/write (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wmemset: Move AC_LIBOBJ invocations to module description.
	* m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
	here...
	* modules/wmemset (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wmemmove: Move AC_LIBOBJ invocations to module description.
	* m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
	here...
	* modules/wmemmove (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wmemcpy: Move AC_LIBOBJ invocations to module description.
	* m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
	here...
	* modules/wmemcpy (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wmemcmp: Move AC_LIBOBJ invocations to module description.
	* m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
	here...
	* modules/wmemcmp (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wmemchr: Move AC_LIBOBJ invocations to module description.
	* m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
	here...
	* modules/wmemchr (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcswidth: Move AC_LIBOBJ invocations to module description.
	* m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
	here...
	* modules/wcswidth (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcwidth: Respect rules for use of AC_LIBOBJ.
	* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
	invocation from here...
	* modules/wcwidth (configure.ac): ... to here.
	(Depends-on): Update conditions.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wctype: Move AC_LIBOBJ invocations to module description.
	* m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
	invocation from here...
	* modules/wctype (configure.ac): ... to here.
	(Depends-on): Update conditions.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wctrans: Move AC_LIBOBJ invocations to module description.
	* m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
	invocation from here...
	* modules/wctrans (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wctomb: Move AC_LIBOBJ invocations to module description.
	* m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
	invocations from here...
	* modules/wctomb (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wctob: Move AC_LIBOBJ invocations to module description.
	* m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
	gl_PREREQ_WCTOB invocations from here...
	* modules/wctob (configure.ac): ... to here.
	(Depends-on): Update conditions.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcsxfrm: Move AC_LIBOBJ invocations to module description.
	* m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
	here...
	* modules/wcsxfrm (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcstok: Move AC_LIBOBJ invocations to module description.
	* m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
	* modules/wcstok (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcsstr: Move AC_LIBOBJ invocations to module description.
	* m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
	* modules/wcsstr (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcsspn: Move AC_LIBOBJ invocations to module description.
	* m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
	* modules/wcsspn (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcsrtombs: Move AC_LIBOBJ invocations to module description.
	* m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
	gl_PREREQ_WCSRTOMBS invocations from here...
	* modules/wcsrtombs (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcsrchr: Move AC_LIBOBJ invocations to module description.
	* m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
	here...
	* modules/wcsrchr (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcspbrk: Move AC_LIBOBJ invocations to module description.
	* m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
	here...
	* modules/wcspbrk (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcsnrtombs: Move AC_LIBOBJ invocations to module description.
	* m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
	gl_PREREQ_WCSNRTOMBS invocations from here...
	* modules/wcsnrtombs (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcsnlen: Move AC_LIBOBJ invocations to module description.
	* m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
	here...
	* modules/wcsnlen (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcsncpy: Move AC_LIBOBJ invocations to module description.
	* m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
	here...
	* modules/wcsncpy (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcsncmp: Move AC_LIBOBJ invocations to module description.
	* m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
	here...
	* modules/wcsncmp (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcsncat: Move AC_LIBOBJ invocations to module description.
	* m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
	here...
	* modules/wcsncat (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcsncasecmp: Move AC_LIBOBJ invocations to module description.
	* m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
	from here...
	* modules/wcsncasecmp (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcslen: Move AC_LIBOBJ invocations to module description.
	* m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
	* modules/wcslen (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcsdup: Move AC_LIBOBJ invocations to module description.
	* m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
	* modules/wcsdup (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcscspn: Move AC_LIBOBJ invocations to module description.
	* m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
	here...
	* modules/wcscspn (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcscpy: Move AC_LIBOBJ invocations to module description.
	* m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
	* modules/wcscpy (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcscoll: Move AC_LIBOBJ invocations to module description.
	* m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
	here...
	* modules/wcscoll (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcscmp: Move AC_LIBOBJ invocations to module description.
	* m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
	* modules/wcscmp (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcschr: Move AC_LIBOBJ invocations to module description.
	* m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
	* modules/wcschr (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcscat: Move AC_LIBOBJ invocations to module description.
	* m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
	* modules/wcscat (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcscasecmp: Move AC_LIBOBJ invocations to module description.
	* m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
	here...
	* modules/wcscasecmp (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcrtomb: Move AC_LIBOBJ invocations to module description.
	* m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
	invocations from here...
	* modules/wcrtomb (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcpncpy: Move AC_LIBOBJ invocations to module description.
	* m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
	here...
	* modules/wcpncpy (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	wcpcpy: Move AC_LIBOBJ invocations to module description.
	* m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
	* modules/wcpcpy (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	waitpid: Move AC_LIBOBJ invocations to module description.
	* m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
	invocation from here...
	* modules/waitpid (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	utimensat: Move AC_LIBOBJ invocations to module description.
	* m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
	here...
	* modules/utimensat (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	usleep: Move AC_LIBOBJ invocations to module description.
	* m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
	here...
	* modules/usleep (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	unlockpt: Move AC_LIBOBJ invocations to module description.
	* m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
	gl_PREREQ_UNLOCKPT invocations from here...
	* modules/unlockpt (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	unlink: Respect rules for use of AC_LIBOBJ.
	* m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
	* modules/unlink (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	uname: Move AC_LIBOBJ invocations to module description.
	* m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
	here...
	* modules/uname (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	ttyname_r: Move AC_LIBOBJ invocations to module description.
	* m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
	gl_PREREQ_TTYNAME_R invocations from here...
	* modules/ttyname_r (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	tsearch: Move AC_LIBOBJ invocations to module description.
	* m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
	invocations from here...
	* modules/tsearch (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	towctrans: Move AC_LIBOBJ invocations to module description.
	* m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
	AC_LIBOBJ invocation from here...
	* modules/towctrans (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	tmpfile: Move AC_LIBOBJ invocations to module description.
	* m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
	invocations from here...
	* modules/tmpfile (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	times: Move AC_LIBOBJ invocations to module description.
	* m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
	* modules/times (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	time_r: Move AC_LIBOBJ invocations to module description.
	* m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
	invocations from here...
	* modules/time_r (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	timegm: Move AC_LIBOBJ invocations to module description.
	* m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
	invocations from here...
	* modules/timegm (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	tcgetsid: Move AC_LIBOBJ invocations to module description.
	* m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
	and gl_PREREQ_TCGETSID invocations from here...
	* modules/tcgetsid (configure.ac): ... to here.
	(Depends-on): Update conditions.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	symlinkat: Move AC_LIBOBJ invocations to module description.
	* m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
	here...
	* modules/symlinkat (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	symlink: Move AC_LIBOBJ invocations to module description.
	* m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
	here...
	* modules/symlink (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strverscmp: Move AC_LIBOBJ invocations to module description.
	* m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
	from here...
	* modules/strverscmp (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strtok_r: Move AC_LIBOBJ invocations to module description.
	* m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
	and gl_PREREQ_STRTOK_R invocations from here...
	* modules/strtok_r (configure.ac): ... to here.
	(Depends-on): Update conditions.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strtoumax: Move AC_LIBOBJ invocations to module description.
	* m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
	from here...
	* modules/strtoumax (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strtoimax: Move AC_LIBOBJ invocations to module description.
	* m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
	from here...
	* modules/strtoimax (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strtoull: Move AC_LIBOBJ invocations to module description.
	* m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
	from here...
	* modules/strtoull (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strtoll: Move AC_LIBOBJ invocations to module description.
	* m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
	here...
	* modules/strtoll (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strtoul: Move AC_LIBOBJ invocations to module description.
	* m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
	* modules/strtoul (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strtol: Move AC_LIBOBJ invocations to module description.
	* m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
	* modules/strtol (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strtod: Move AC_LIBOBJ invocations to module description.
	* m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
	invocations from here...
	* modules/strtod (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strstr*: Move AC_LIBOBJ invocations to module description.
	* m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
	invocations from here...
	* modules/strstr-simple (configure.ac): ... to here.
	* modules/strstr (configure.ac): ... and here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strsignal: Move AC_LIBOBJ invocations to module description.
	* m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
	AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
	* modules/strsignal (configure.ac): ... to here.
	(Depends-on): Update conditions.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strsep: Move AC_LIBOBJ invocations to module description.
	* m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
	here...
	* modules/strsep (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strptime: Move AC_LIBOBJ invocations to module description.
	* m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
	gl_PREREQ_STRPTIME invocations from here...
	* modules/strptime (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strpbrk: Move AC_LIBOBJ invocations to module description.
	* m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
	here...
	* modules/strpbrk (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strnlen: Move AC_LIBOBJ invocations to module description.
	* m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
	invocations from here...
	* modules/strnlen (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strndup: Move AC_LIBOBJ invocations to module description.
	* m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
	invocations from here...
	* modules/strndup (configure.ac): ... to here.
	(Depends-on): Update conditions.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strncat: Move AC_LIBOBJ invocations to module description.
	* m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
	invocations from here...
	* modules/strncat (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
	* m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
	invocations from here...
	* modules/strdup (configure.ac): ... to here.
	* modules/strdup-posix (configure.ac): ... and here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strcspn: Move AC_LIBOBJ invocations to module description.
	* m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
	here...
	* modules/strcspn (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strchrnul: Move AC_LIBOBJ invocations to module description.
	* m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
	gl_PREREQ_STRCHRNUL invocations from here...
	* modules/strchrnul (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strcasestr*: Move AC_LIBOBJ invocations to module description.
	* m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
	Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
	* modules/strcasestr-simple (configure.ac): ... to here.
	* modules/strcasestr (configure.ac): ... and here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strcase: Move AC_LIBOBJ invocations to module description.
	* m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
	(gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
	of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
	gl_PREREQ_STRNCASECMP invocations from here...
	* modules/strcase (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	stpncpy: Move AC_LIBOBJ invocations to module description.
	* m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
	here...
	* modules/stpncpy (configure.ac): ... to here.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	stpcpy: Move AC_LIBOBJ invocations to module description.
	* m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
	here...
	* modules/stpcpy (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	stat: Move AC_LIBOBJ invocations to module description.
	* m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
	(gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
	here...
	* modules/stat (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	sleep: Move AC_LIBOBJ invocations to module description.
	* m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
	* modules/sleep (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	signbit: Move AC_LIBOBJ invocations to module description.
	* m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
	* modules/signbit (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	sigprocmask: Move AC_LIBOBJ invocations to module description.
	* m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
	gl_PREREQ_SIGPROMASK invocations from here...
	* modules/sigprocmask (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	sigaction: Move AC_LIBOBJ invocations to module description.
	* m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
	gl_PREREQ_SIGACTION invocations from here...
	* modules/sigaction (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	sig2str: Move AC_LIBOBJ invocations to module description.
	* m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
	here...
	* modules/sig2str (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	setlocale: Move AC_LIBOBJ invocations to module description.
	* m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
	gl_PREREQ_SETLOCALE invocations from here...
	* modules/setlocale (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	unsetenv: Move AC_LIBOBJ invocations to module description.
	* m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
	and gl_PREREQ_UNSETENV invocations from here...
	* modules/unsetenv (configure.ac): ... to here.
	(Depends-on): Update.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	setenv: Move AC_LIBOBJ invocations to module description.
	* m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
	here...
	* modules/setenv (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	selinux-h: Move AC_LIBOBJ invocations to module description.
	* m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
	AC_LIBOBJ invocation from here...
	* modules/selinux-h (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	select: Respect rules for use of AC_LIBOBJ.
	* m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
	here...
	* modules/select (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	scandir: Move AC_LIBOBJ invocations to module description.
	* m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
	invocations from here...
	* modules/scandir (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	rpmatch: Move AC_LIBOBJ invocations to module description.
	* m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
	here...
	* modules/rpmatch (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	rmdir: Respect rules for use of AC_LIBOBJ.
	* m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
	* modules/rmdir (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	renameat: Move AC_LIBOBJ invocations to module description.
	* m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
	here...
	* modules/renameat (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	rename: Respect rules for use of AC_LIBOBJ.
	* m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
	here...
	* modules/rename (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	remove: Move AC_LIBOBJ invocations to module description.
	* m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
	here...
	* modules/remove (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	relocatable-lib: Move AC_LIBOBJ invocations to module description.
	* m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
	macro.
	(gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
	* modules/relocatable-lib (configure.ac): ... to here.
	* modules/relocatable-prog-wrapper (configure.ac): Invoke
	gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	relocatable-prog: Move AC_LIBOBJ invocations to module description.
	* m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
	here...
	* modules/relocatable-prog (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	regex: Move AC_LIBOBJ invocations to module description.
	* m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
	invocations from here...
	* modules/regex (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	realloc-*: Move AC_LIBOBJ invocations to module description.
	* m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
	(gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
	AC_LIBOBJ invocations from here...
	* modules/realloc-gnu (configure.ac): ... to here.
	* modules/realloc-posix (configure.ac): ... and here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	readutmp: Move AC_LIBOBJ invocations to module description.
	* m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
	* modules/readutmp (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	readlinkat: Move AC_LIBOBJ invocations to module description.
	* m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
	here...
	* modules/readlinkat (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	readlink: Move AC_LIBOBJ invocations to module description.
	* m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
	gl_PREREQ_READLINK invocations from here...
	* modules/readlink (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	readline: Move AC_LIBOBJ invocations to module description.
	* m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
	gl_PREREQ_READLINE invocations from here...
	* modules/readline (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	read: Move AC_LIBOBJ invocations to module description.
	* m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
	* modules/read (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	rawmemchr: Move AC_LIBOBJ invocations to module description.
	* m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
	from here...
	* modules/rawmemchr (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	random_r: Move AC_LIBOBJ invocations to module description.
	* m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
	gl_PREREQ_RANDOM_R invocations from here...
	* modules/random_r (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	pwrite: Move AC_LIBOBJ invocations to module description.
	* m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
	* modules/pwrite (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	putenv: Move AC_LIBOBJ invocations to module description.
	* m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
	* modules/putenv (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	login_tty: Move AC_LIBOBJ invocations to module description.
	* m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
	* modules/login_tty (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	openpty: Move AC_LIBOBJ invocations to module description.
	* m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
	* modules/openpty (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	forkpty: Move AC_LIBOBJ invocations to module description.
	* m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
	* modules/forkpty (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	ptsname: Move AC_LIBOBJ invocations to module description.
	* m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
	invocations from here...
	* modules/ptsname (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	pread: Move AC_LIBOBJ invocations to module description.
	* m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
	* modules/pread (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	posix_spawn*: Move AC_LIBOBJ invocations to module description.
	* m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
	gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
	* modules/posix_spawn (configure.ac): ... to here.
	* modules/posix_spawnp (configure.ac): ... and here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	popen: Move AC_LIBOBJ invocations to module description.
	* m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
	invocations from here...
	* modules/popen (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	poll: Move AC_LIBOBJ invocations to module description.
	* m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
	invocations from here...
	* modules/poll (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	pipe-posix: Move AC_LIBOBJ invocations to module description.
	* m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
	* modules/pipe-posix (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	openat: Respect rules for use of AC_LIBOBJ.
	* m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
	* modules/openat (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	obstack-printf*: Move AC_LIBOBJ invocations to module description.
	* m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
	invocation from here...
	* modules/obstack-printf (configure.ac): ... to here.
	* modules/obstack-printf-posix (configure.ac): ... and here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	nl_langinfo: Move AC_LIBOBJ invocations to module description.
	* m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
	from here...
	* modules/nl_langinfo (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	nanosleep: Move AC_LIBOBJ invocations to module description.
	* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
	gl_PREREQ_NANOSLEEP invocations from here...
	* modules/nanosleep (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mountlist: Move AC_LIBOBJ invocations to module description.
	* m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
	gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
	* modules/mountlist (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mktime: Respect rules for use of AC_LIBOBJ.
	* m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
	(gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
	AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
	(gl_FUNC_MKTIME_INTERNAL): ... and here...
	* modules/mktime (configure.ac): ... to here.
	* modules/mktime-internal (configure.ac): ... and here.
	* m4/timegm.m4 (gl_FUNC_TIMEGM): Update.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mkstemps: Move AC_LIBOBJ invocations to module description.
	* m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
	here...
	* modules/mkstemps (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mkstemp: Move AC_LIBOBJ invocations to module description.
	* m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
	gl_PREREQ_MKSTEMP invocations from here...
	* modules/mkstemp (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mkostemps: Move AC_LIBOBJ invocations to module description.
	* m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
	here...
	* modules/mkostemps (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mkostemp: Move AC_LIBOBJ invocations to module description.
	* m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
	gl_PREREQ_MKOSTEMP invocations from here...
	* modules/mkostemp (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mknod: Move AC_LIBOBJ invocations to module description.
	* m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
	* modules/mknod (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mkfifoat: Move AC_LIBOBJ invocations to module description.
	* m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
	here...
	* modules/mkfifoat (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mkfifo: Respect rules for use of AC_LIBOBJ.
	* m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
	here...
	* modules/mkfifo (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mkdtemp: Move AC_LIBOBJ invocations to module description.
	* m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
	invocations from here...
	* modules/mkdtemp (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mkdir: Move AC_LIBOBJ invocations to module description.
	* m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
	* modules/mkdir (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	memset: Move AC_LIBOBJ invocations to module description.
	* m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
	here...
	* modules/memset (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	memrchr: Move AC_LIBOBJ invocations to module description.
	* m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
	here...
	* modules/memrchr (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mempcpy: Move AC_LIBOBJ invocations to module description.
	* m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
	here...
	* modules/mempcpy (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	memmove: Move AC_LIBOBJ invocations to module description.
	* m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
	here...
	* modules/memmove (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	memmem*: Move AC_LIBOBJ invocations to module description.
	* m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
	here...
	(gl_FUNC_MEMMEM): ... and here...
	* modules/memmem-simple (configure.ac): ... to here.
	* modules/memmem (configure.ac): ... and here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	memcpy: Move AC_LIBOBJ invocations to module description.
	* m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
	here...
	* modules/memcpy (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	memcmp: Simplify autoconf macro.
	* m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
	the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
	* modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	memcmp: Move AC_LIBOBJ invocations to module description.
	* m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
	(gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
	AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
	* modules/memcmp (configure.ac): ... to here.
	(Depends-on): Update conditions.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	memchr: Respect rules for use of AC_LIBOBJ.
	* m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
	invocations from here...
	* modules/memchr (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mbtowc: Move AC_LIBOBJ invocations to module description.
	* m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
	invocations from here...
	* modules/mbtowc (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mbsrtowcs: Move AC_LIBOBJ invocations to module description.
	* m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
	gl_PREREQ_MBSRTOWCS invocations from here...
	* modules/mbsrtowcs (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
	* m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
	gl_PREREQ_MBSNRTOWCS invocations from here...
	* modules/mbsnrtowcs (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mbsinit: Move AC_LIBOBJ invocations to module description.
	* m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
	invocations from here...
	* modules/mbsinit (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mbrlen: Move AC_LIBOBJ invocations to module description.
	* m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
	invocations from here...
	* modules/mbrlen (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	mbrtowc: Respect rules for use of AC_LIBOBJ.
	* m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
	invocations from here...
	* modules/mbrtowc (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	malloc-*: Move AC_LIBOBJ invocations to module description.
	* m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
	(gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
	AC_LIBOBJ invocations from here...
	* modules/malloc-gnu (configure.ac): ... to here.
	* modules/malloc-posix (configure.ac): ... and here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	lstat, openat: Respect rules for use of AC_LIBOBJ.
	* m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
	AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
	gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
	(gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
	(gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
	* modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
	here.
	* m4/openat.m4 (gl_FUNC_OPENAT): Update.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	lseek: Move AC_LIBOBJ invocations to module description.
	* m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
	(gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
	* modules/lseek (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	linkat: Move AC_LIBOBJ invocations to module description.
	* m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
	here...
	* modules/linkat (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	link: Respect rules for use of AC_LIBOBJ.
	* m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
	* modules/link (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	lchown: Move AC_LIBOBJ invocations to module description.
	* m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
	* modules/lchown (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	iswctype: Move AC_LIBOBJ invocations to module description.
	* m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
	here...
	* modules/iswctype (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	iswblank: Move AC_LIBOBJ invocations to module description.
	* m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
	here...
	* modules/iswblank (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	atanl: Move AC_LIBOBJ invocations to module description.
	* m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
	* modules/atanl (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	acosl: Move AC_LIBOBJ invocations to module description.
	* m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
	* modules/acosl (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	asinl: Respect rules for use of AC_LIBOBJ.
	* m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
	* modules/asinl (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	tanl: Move AC_LIBOBJ invocations to module description.
	* m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
	* modules/tanl (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	cosl: Move AC_LIBOBJ invocations to module description.
	* m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
	* modules/cosl (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	sinl: Move AC_LIBOBJ invocations to module description.
	* m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
	* modules/sinl (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	logl: Move AC_LIBOBJ invocations to module description.
	* m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
	* modules/logl (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	expl: Move AC_LIBOBJ invocations to module description.
	* m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
	* modules/expl (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	roundl: Move AC_LIBOBJ invocations to module description.
	* m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
	* modules/roundl (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	round: Move AC_LIBOBJ invocations to module description.
	* m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
	* modules/round (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	roundf: Move AC_LIBOBJ invocations to module description.
	* m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
	* modules/roundf (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	truncl: Move AC_LIBOBJ invocations to module description.
	* m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
	* modules/truncl (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	trunc: Move AC_LIBOBJ invocations to module description.
	* m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
	* modules/trunc (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	truncf: Move AC_LIBOBJ invocations to module description.
	* m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
	* modules/truncf (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	ceill: Move AC_LIBOBJ invocations to module description.
	* m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
	* modules/ceill (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	ceil: Move AC_LIBOBJ invocations to module description.
	* m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
	* modules/ceil (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	ceilf: Move AC_LIBOBJ invocations to module description.
	* m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
	* modules/ceilf (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	floorl: Respect rules for use of AC_LIBOBJ.
	* m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
	* modules/floorl (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	floor: Respect rules for use of AC_LIBOBJ.
	* m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
	* modules/floor (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	floorf: Move AC_LIBOBJ invocations to module description.
	* m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
	* modules/floorf (configure.ac): ... to here.

2011-05-20  Bruno Haible  <bruno@clisp.org>

	sqrtl: Respect rules for use of AC_LIBOBJ.
	* m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
	* modules/sqrtl (configure.ac): ... to here.

2011-05-20  Bruno Haible  <bruno@clisp.org>

	ldexpl: Respect rules for use of AC_LIBOBJ.
	* m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
	* modules/ldexpl (configure.ac): ... to here.

2011-05-20  Bruno Haible  <bruno@clisp.org>

	frexpl*: Respect rules for use of AC_LIBOBJ.
	* m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
	invocation from here...
	* modules/frexpl (configure.ac): ... to here.
	* modules/frexpl-nolibm (configure.ac): ... and here.

2011-05-20  Bruno Haible  <bruno@clisp.org>

	frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
	* m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
	invocation from here...
	* modules/frexp (configure.ac): ... to here.
	* modules/frexp-nolibm (configure.ac): ... and here.

2011-05-20  Bruno Haible  <bruno@clisp.org>

	isnan: Respect rules for use of AC_LIBOBJ.
	* m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
	invocations here.
	* modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
	REPLACE_ISNAN.
	* modules/isnand (configure.ac): Likewise.
	* modules/isnanl (configure.ac): Likewise.

2011-05-20  Bruno Haible  <bruno@clisp.org>

	isnanl*: Respect rules for use of AC_LIBOBJ.
	* m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
	invocation from here...
	* modules/isnanl (configure.ac): ... to here.
	* modules/isnanl-nolibm (configure.ac): ... and here.

2011-05-20  Bruno Haible  <bruno@clisp.org>

	isnand*: Move AC_LIBOBJ invocations to module description.
	* m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
	invocation from here...
	* modules/isnand (configure.ac): ... to here.
	* modules/isnand-nolibm (configure.ac): ... and here.

2011-05-20  Bruno Haible  <bruno@clisp.org>

	isnanf*: Move AC_LIBOBJ invocations to module description.
	* m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
	invocation from here...
	* modules/isnanf (configure.ac): ... to here.
	* modules/isnanf-nolibm (configure.ac): ... and here.

2011-05-20  Bruno Haible  <bruno@clisp.org>

	isnan*: Separate the AC_LIBOBJ invocations.
	* m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
	AC_LIBOBJ invocation.
	(gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
	here.
	* m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
	AC_LIBOBJ invocation.
	(gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
	here.
	* m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
	AC_LIBOBJ invocation.
	(gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
	here.
	* m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	isinf: Move AC_LIBOBJ invocations to module description.
	* m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
	* modules/isinf (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	isfinite: Move AC_LIBOBJ invocations to module description.
	* m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
	* modules/isfinite (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	isblank: Move AC_LIBOBJ invocations to module description.
	* m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
	here...
	* modules/isblank (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	isapipe: Move AC_LIBOBJ invocations to module description.
	* m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
	gl_PREREQ_ISAPIPE invocations from here...
	* modules/isapipe (configure.ac): ... to here.
	(Depends-on): Update condition.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	ioctl: Move AC_LIBOBJ invocations to module description.
	* m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
	invocations from here...
	* modules/ioctl (configure.ac): ... to here.
	(Depends-on): Update condition.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	imaxdiv: Move AC_LIBOBJ invocations to module description.
	* m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
	invocations from here...
	* modules/imaxdiv (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	imaxabs: Move AC_LIBOBJ invocations to module description.
	* m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
	invocations from here...
	* modules/imaxabs (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getaddrinfo: Move AC_LIBOBJ invocations to module description.
	* m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
	AC_LIBOBJ invocations from here...
	* modules/getaddrinfo (configure.ac): ... to here.
	(Depends-on): Add conditions.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
	* m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
	AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
	gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
	(gl_PREREQ_INET_PTON): ... from here.
	* modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
	gl_PREREQ_INET_PTON here.
	(Depends-on): Update condition.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
	* m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
	AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
	gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
	(gl_PREREQ_INET_NTOP): ... from here.
	* modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
	gl_PREREQ_INET_NTOP here.
	(Depends-on): Update condition.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	iconv_open: Move AC_LIBOBJ invocations to module description.
	* m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
	AC_LIBOBJ invocations from here...
	* modules/iconv_open (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
	If module 'iconv_open' is among the main modules and module
	'iconv_open-utf' is among the tests dependencies, then
	REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
	return the special iconv_t values. Therefore iconv() and iconv_close()
	must support these special iconv_t values, already in lib, not only in
	tests.
	* m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
	* m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
	gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
	(gl_FUNC_ICONV_OPEN_UTF): Remove macro.
	* modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
	(Depends-on): Add the dependencies of iconv_open-utf.
	* modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
	m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
	(Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	group-member: Move AC_LIBOBJ invocations to module description.
	* m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
	gl_PREREQ_GROUP_MEMBER invocations from here...
	* modules/group-member (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	grantpt: Move AC_LIBOBJ invocations to module description.
	* m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
	invocations from here...
	* modules/grantpt (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	glob: Move AC_LIBOBJ invocations to module description.
	* m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
	from here...
	* modules/glob (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getusershell: Move AC_LIBOBJ invocations to module description.
	* m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
	Move AC_LIBOBJ invocation from here...
	* modules/getusershell (configure.ac): ... to here.
	(Depends-on): Update condition.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	gettimeofday: Move AC_LIBOBJ invocations to module description.
	* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
	gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
	gl_PREREQ_GETTIMEOFDAY invocations from here...
	* modules/gettimeofday (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
	* modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
	just gl_FUNC_TZSET.
	* m4/tzset.m4 (gl_FUNC_TZSET): New macro.
	(gl_FUNC_TZSET_CLOBBER): Remove actions.
	* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
	gl_FUNC_TZSET_CLOBBER and its actions here, if present.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getsubopt: Move AC_LIBOBJ invocations to module description.
	* m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
	gl_PREREQ_GETSUBOPT invocations from here...
	* modules/getsubopt (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getpass-gnu: Move AC_LIBOBJ invocations to module description.
	* m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
	AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
	* modules/getpass-gnu (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getpass: Move AC_LIBOBJ invocations to module description.
	* m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
	gl_PREREQ_GETPASS invocations from here...
	* modules/getpass (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getpagesize: Move AC_LIBOBJ invocations to module description.
	* m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
	from here...
	* modules/getpagesize (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getopt: Move AC_LIBOBJ invocations to module description.
	* m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
	(gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
	invocations from here...
	* modules/getopt-gnu (configure.ac): ... to here.
	* modules/getopt-posix (configure.ac): ... and here.
	(Depends-on): Update condition.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getopt, argp: Respect rules for use of AC_LIBOBJ.
	* m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
	(gl_REPLACE_GETOPT_ALWAYS): New macro.
	* m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
	gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getlogin_r: Move AC_LIBOBJ invocations to module description.
	* m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
	gl_PREREQ_GETLOGIN_R invocations from here...
	* modules/getlogin_r (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getlogin: Move AC_LIBOBJ invocations to module description.
	* m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
	here...
	* modules/getlogin (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getloadavg: Move AC_LIBOBJ invocations to module description.
	* m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
	AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
	* modules/getloadavg (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	gethrxtime: Move AC_LIBOBJ invocations to module description.
	* m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
	LIB_GETHRXTIME from here...
	(gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
	invocations from here...
	* modules/gethrxtime (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	gethostname: Move AC_LIBOBJ invocations to module description.
	* m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
	gl_PREREQ_GETHOSTNAME invocations from here...
	* modules/gethostname (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getgroups: Move AC_LIBOBJ invocations to module description.
	* m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
	here...
	* modules/getgroups (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getdtablesize: Move AC_LIBOBJ invocations to module description.
	* m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
	invocation from here...
	* modules/getdtablesize (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getdomainname: Move AC_LIBOBJ invocations to module description.
	* m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
	gl_PREREQ_GETDOMAINNAME invocations from here...
	* modules/getdomainname (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getline: Move AC_LIBOBJ invocations to module description.
	* m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
	invocations from here...
	* modules/getline (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getline: Simplify.
	* m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
	It's already handled through the module dependency.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getdelim: Move AC_LIBOBJ invocations to module description.
	* m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
	and gl_PREREQ_GETDELIM invocations from here...
	* modules/getdelim (configure.ac): ... to here.
	(Depends-on): Fix condition.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getcwd: Move AC_LIBOBJ invocations to module description.
	* m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
	invocations from here...
	* modules/getcwd (configure.ac): ... to here.

2011-05-08  Bruno Haible  <bruno@clisp.org>

	getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
	* m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
	here...
	* modules/getcwd-lgpl (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	crypto/gc: Move AC_LIBOBJ invocations to module description.
	* m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
	* modules/crypto/gc (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	fwriting: Move AC_LIBOBJ invocations to module description.
	* m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
	here...
	* modules/fwriting (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	fwritable: Move AC_LIBOBJ invocations to module description.
	* m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
	here...
	* modules/fwritable (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	futimens: Move AC_LIBOBJ invocations to module description.
	* m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
	here...
	* modules/futimens (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	ftruncate: Move AC_LIBOBJ invocations to module description.
	* m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
	gl_PREREQ_FTRUNCATE invocations from here...
	* modules/ftruncate (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	fsync: Move AC_LIBOBJ invocations to module description.
	* m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
	invocations from here...
	* modules/fsync (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	fsusage: Move AC_LIBOBJ invocations to module description.
	* m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
	gl_PREREQ_FSUSAGE_EXTRA invocations from here...
	* modules/fsusage (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	freopen: Move AC_LIBOBJ invocations to module description.
	* m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
	invocations from here...
	* modules/freopen (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	free: Move AC_LIBOBJ invocations to module description.
	* m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
	invocations from here...
	* modules/free (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	freadable: Move AC_LIBOBJ invocations to module description.
	* m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
	here...
	* modules/freadable (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	fpurge: Move AC_LIBOBJ invocations to module description.
	* m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
	invocations from here...
	* modules/fpurge (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	fpending: Move AC_LIBOBJ invocations to module description.
	* m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
	gl_FUNC_FPENDING.
	(gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
	invocations from here...
	* modules/fpending (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	fopen: Move AC_LIBOBJ invocations to module description.
	* m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
	invocations from here...
	* modules/fopen (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
	* m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
	gl_FUNC_FNMATCH_POSIX.
	(gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
	invocations from here...
	* modules/fnmatch (configure.ac): ... to here.
	* modules/fnmatch-gnu (configure.ac): ... and here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	flock: Move AC_LIBOBJ invocations to module description.
	* m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
	invocations from here...
	* modules/flock (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	fileblocks: Move AC_LIBOBJ invocations to module description.
	* m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
	gl_PREREQ_FILEBLOCKS invocations from here...
	* modules/fileblocks (configure.ac): ... to here.

2011-05-06  Bruno Haible  <bruno@clisp.org>

	fflush: Move AC_LIBOBJ invocations to module description.
	* m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
	(gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
	invocations from here...
	* modules/fflush (configure.ac): ... to here.

2011-05-06  Bruno Haible  <bruno@clisp.org>

	fdopendir: Move AC_LIBOBJ invocations to module description.
	* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
	here...
	* modules/fdopendir (configure.ac): ... to here.
	(Depends-on): Improve conditions.

2011-05-06  Bruno Haible  <bruno@clisp.org>

	_Exit: Move AC_LIBOBJ invocations to module description.
	* m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
	invocations from here...
	* modules/_Exit (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	euidaccess: Respect rules for use of AC_LIBOBJ.
	* m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
	from here...
	* modules/euidaccess (configure.ac): ... to here.

2011-05-06  Bruno Haible  <bruno@clisp.org>

	error: Move AC_LIBOBJ invocations to module description.
	* m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
	AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
	invocations from here...
	* modules/error (configure.ac): ... to here.

2011-05-06  Bruno Haible  <bruno@clisp.org>

	duplocale: Move AC_LIBOBJ invocations to module description.
	* m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
	gl_PREREQ_DUPLOCALE invocations from here...
	* modules/duplocale (configure.ac): ... to here.

2011-05-05  Bruno Haible  <bruno@clisp.org>

	dirfd: Move AC_LIBOBJ invocations to module description.
	* m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
	gl_FUNC_DIRFD.
	(gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
	here...
	* modules/dirfd (configure.ac): ... to here.
	(Depends-on): Fix condition.

2011-05-05  Bruno Haible  <bruno@clisp.org>

	chown: Respect rules for use of AC_LIBOBJ.
	* m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
	* modules/chown (configure.ac): ... to here.

2011-05-05  Bruno Haible  <bruno@clisp.org>

	chdir-long: Move AC_LIBOBJ invocations to module description.
	* m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
	gl_PREREQ_CHDIR_LONG invocations from here...
	* modules/chdir-long (configure.ac): ... to here.

2011-05-05  Bruno Haible  <bruno@clisp.org>

	canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
	* m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
	from here...
	* modules/canonicalize-lgpl (configure.ac): ... to here.

2011-05-05  Bruno Haible  <bruno@clisp.org>

	calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
	* m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
	(gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
	REPLACE_CALLOC.
	* modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
	* modules/calloc-gnu (configure.ac): Likewise.

2011-05-05  Bruno Haible  <bruno@clisp.org>

	btowc: Move AC_LIBOBJ invocations to module description.
	* m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
	invocations from here...
	* modules/btowc (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	atexit: Move AC_LIBOBJ invocations to module description.
	* m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
	here...
	* modules/atexit (configure.ac): ... to here.

2011-05-05  Bruno Haible  <bruno@clisp.org>

	atoll: Move AC_LIBOBJ invocations to module description.
	* m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
	invocations from here...
	* modules/atoll (configure.ac): ... to here.

2011-05-05  Bruno Haible  <bruno@clisp.org>

	argz: Move AC_LIBOBJ invocations to module description.
	* m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
	* modules/argz (configure.ac): ... to here.

2011-05-05  Bruno Haible  <bruno@clisp.org>

	alphasort: Move AC_LIBOBJ invocations to module description.
	* m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
	gl_PREREQ_ALPHASORT invocations from here...
	* modules/alphasort (configure.ac): ... to here.

2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>

	verify: new macro verify_expr; verify_true deprecated
	* NEWS: Mention this.
	* doc/verify.texi (Compile-time Assertions): Document this.
	* lib/verify.h (verify_true): Deprecate.
	(verify_expr): New macro.
	* tests/test-verify.c (function): Test verify_expr.

2011-06-14  Jim Meyering  <meyering@redhat.com>

	init.sh: give more portable redirection-related advice in a comment
	* tests/init.sh (stderr_fileno_): Update the advice in comments.
	See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
	for lots of discussion.  Stefano Lattarini suggested the solution
	of putting "9>&2" after the command.  Reported by Bruno Haible.

2011-06-13  Bruno Haible  <bruno@clisp.org>

	locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
	* m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
	'none'.

2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>

	ftoastr: use strtof only if HAVE_STRTOF
	This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
	<http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
	* lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
	* modules/ftoastr (configure.ac): Check for strtof.

2011-06-13  Bruno Haible  <bruno@clisp.org>

	gnulib-tool: Addendum to 2011-06-08 commit.
	* gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
	and --witness-c-macro have been given, augment AM_CPPFLAGS.

2011-06-13  Bruno Haible  <bruno@clisp.org>

	fseeko: Provide a non-inline replacement of fseek().
	* lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
	* modules/fseeko (Depends-on): Add fseek.
	* modules/fseek (License): Change to LGPLv2+.

2011-06-13  Bruno Haible  <bruno@clisp.org>

	ftello: Provide a non-inline replacement of ftell().
	* lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
	* m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
	not have ftello() (such as on mingw).
	* modules/ftello (Depends-on): Add ftell.
	* modules/ftell (License): Change to LGPLv2+.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	ftell: Move AC_LIBOBJ invocations to module description.
	* m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
	* modules/ftell (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	ftello: Respect rules for use of AC_LIBOBJ.
	* m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
	(gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
	here...
	* modules/ftello (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	fseeko: Simplify.
	* m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
	(gl_FUNC_FSEEKO): Inline it here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	fseek: Move AC_LIBOBJ invocations to module description.
	* m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
	(gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
	* modules/fseek (configure.ac): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	fseek: Respect rules for use of AC_LIBOBJ.
	* m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
	here...
	* m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.

2011-05-07  Bruno Haible  <bruno@clisp.org>

	fseeko: Respect rules for use of AC_LIBOBJ.
	* m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
	(gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
	here...
	* modules/fseeko (configure.ac): ... to here.

2011-06-13  Bruno Haible  <bruno@clisp.org>

	gnulib-tool: Allow comments in the 'Depends-on' section.
	* doc/gnulib.texi (Module description): Mention comment syntax in the
	Depends-on section.
	* gnulib-tool (func_get_dependencies): Filter out comment lines.

2011-06-13  Bruno Haible  <bruno@clisp.org>

	file-set.h: guard __attibute__ use, now that it's not always defined
	* lib/file-set.h (record_file): Use __attribute__ only with compiler
	versions that support it.  This fixes a coreutils build failure with
	the vendor cc on HP-UX 11.31.

2011-06-12  Bruno Haible  <bruno@clisp.org>

	acl: Add support for HP-UX >= 11.11 JFS ACLs.
	* doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
	* m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
	* lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
	(acl, aclsort): New declarations.
	(aclv_nontrivial): New declaration.
	* lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
	(file_has_acl): Read also the second kind of HP-UX ACLs.
	* lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
	kind of HP-UX ACLs if the first kind fails.
	* lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
	second kind of HP-UX ACLs.
	* tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
	(main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
	agree.
	* tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
	hpuxjfs.
	Handle hpuxjfs.
	* tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
	hpuxjfs.
	Handle hpuxjfs.
	* tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
	(func_test_same_acls): Use both lsacl and getacl.
	Handle hpuxjfs.
	* tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
	(func_test_same_acls): Use both lsacl and getacl.
	Handle hpuxjfs.

2011-06-12  Bruno Haible  <bruno@clisp.org>

	acl: Complete the 2010-08-10 fix.
	* lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
	* lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
	* lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
	explicitly.
	* tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
	Reported in <http://debbugs.gnu.org/db/60/6053.html>.

2011-06-12  Bruno Haible  <bruno@clisp.org>

	spawn-pipe tests: Comments.
	* tests/test-spawn-pipe-child.c (main): Update comment.
	Reported by James Youngman <jay@gnu.org>.

2011-06-11  James Youngman  <jay@gnu.org>

	New module 'stat-size'.
	* modules/stat-size: New module.  Provides macros for accessing
	file size information in instances of struct stat.  Depends on the
	fileblocks module because it calls st_blocks.
	* lib/stat-size.h: New file, adapted from coreutils' system.h.
	* doc/gnulib.texi: Include stat-size.texi.
	* doc/stat-size.texi: Documentation for this module.
	* m4/stat-size.m4: New file; defines gl_STAT_SIZE.
	* m4/fileblocks.m4: Mention that stat-size depends on the call to
	AC_STRUCT_ST_BLOCKS.

2011-06-09  Bruno Haible  <bruno@clisp.org>

	thread: Support pthreads-win32.
	* lib/glthread/thread.h (gl_thread_self): Define differently on
	pthreads-win32.
	(gl_null_thread): New declaration.
	(gl_thread_self_pointer): New macro.
	* lib/glthread/thread.c (gl_null_thread): New constant.
	* tests/test-lock.c: Use gl_thread_self_pointer instead of
	gl_thread_self.
	* tests/test-tls.c: Likewise.
	Suggested by Paul Eggert. Reported by Eric Blake.

2011-06-09  Bruno Haible  <bruno@clisp.org>

	thread: Fix confusion between NULL and 0.
	* lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
	Reported by Paul Eggert.

2011-06-09  Bruno Haible  <bruno@clisp.org>

	spawn-pipe tests: Avoid test failure on HP-UX 11.
	* tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
	is closed.

2011-06-09  Bruno Haible  <bruno@clisp.org>

	acl tests: Fix compilation error on HP-UX 11.
	* tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.

2011-06-09  Bruno Haible  <bruno@clisp.org>

	rmdir: Avoid test failure on HP-UX 10.20.
	* tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
	EEXIST.

2011-06-08  Eric Blake  <eblake@redhat.com>

	perror: fix test on mingw
	* modules/perror-tests (Depends-on): Add dup2.

	strerror_r-posix: fix on MacOS
	* m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
	* m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
	logic bug.
	* lib/strerror_r.c (strerror_r): Fix the bug.
	* lib/strerror.c (strerror): Likewise.
	* doc/posix-functions/strerror_r.texi (strerror_r): Document the
	problem.
	* doc/posix-functions/strerror.texi (strerror): Likewise.
	* doc/posix-functions/perror.texi (perror): Likewise.
	* tests/test-strerror.c (main): Enhance test.
	* tests/test-strerror_r.c (main): Likewise.

2011-06-08  Bruno Haible  <bruno@clisp.org>

	gnulib-tool: Better isolation between different gnulib-tool invocations.
	* gnulib-tool: New option --witness-c-macro.
	(witness_c_macro): New variable.
	(func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
	AM_CPPFLAGS define it as a C macro.
	(func_emit_tests_Makefile_am): Likewise.
	(func_import): Store witness_c_macro setting in gnulib-cache.m4 and
	read it from there.
	* m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
	m4_define, not AC_DEFUN.
	(gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
	gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
	(gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
	* modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
	s|...|...|, to substitute the values of the GNULIB_* module indicator
	variables.
	* modules/dirent (Makefile.am): Likewise.
	* modules/fcntl-h (Makefile.am): Likewise.
	* modules/iconv-h (Makefile.am): Likewise.
	* modules/langinfo (Makefile.am): Likewise.
	* modules/locale (Makefile.am): Likewise.
	* modules/math (Makefile.am): Likewise.
	* modules/netdb (Makefile.am): Likewise.
	* modules/poll-h (Makefile.am): Likewise.
	* modules/pty (Makefile.am): Likewise.
	* modules/search (Makefile.am): Likewise.
	* modules/signal (Makefile.am): Likewise.
	* modules/spawn (Makefile.am): Likewise.
	* modules/stdio (Makefile.am): Likewise.
	* modules/stdlib (Makefile.am): Likewise.
	* modules/string (Makefile.am): Likewise.
	* modules/sys_ioctl (Makefile.am): Likewise.
	* modules/sys_select (Makefile.am): Likewise.
	* modules/sys_socket (Makefile.am): Likewise.
	* modules/sys_stat (Makefile.am): Likewise.
	* modules/sys_times (Makefile.am): Likewise.
	* modules/sys_utsname (Makefile.am): Likewise.
	* modules/sys_wait (Makefile.am): Likewise.
	* modules/termios (Makefile.am): Likewise.
	* modules/time (Makefile.am): Likewise.
	* modules/unistd (Makefile.am): Likewise.
	* modules/wchar (Makefile.am): Likewise.

2011-06-08  Eric Blake  <eblake@redhat.com>

	strerror: simplify replacement
	* m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
	* modules/strerror (configure.ac): No prereqs needed here...
	* modules/strerror-override (configure.ac): ...but this needs it.
	(Files): Add file for needed prereq macro.

2011-06-08  Bruno Haible  <bruno@clisp.org>

	strerror_r-posix: Tweaks.
	* m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
	gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
	* m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
	message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
	(gl_FUNC_STRERROR_R): ... to here.
	(gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.

2011-06-07  Eric Blake  <eblake@redhat.com>

	perror: document fixed bugs
	* doc/posix-functions/perror.texi (perror): Document recent
	patches.

2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>

	stat-time: get_stat_birthtime failure is better-defined
	* lib/stat-time.h (get_stat_birthtime): If the time is not available,
	return a timestamp whose tv_sec and tv_nsec values are both -1.
	Previously, the spec said only that the tv_nsec value was negative.
	This upward-compatible change simplifies GNU tar a bit.

2011-06-07  Eric Blake  <eblake@redhat.com>

	strerror_r-posix: work around cygwin 1.7.9
	* m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
	(gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
	bug without replacing strerror_r.
	* m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
	strerror_r is buggy, but without requiring strerror_r compilation.
	* doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.

	test-perror: relax test to ignore cygwin bug
	* tests/test-perror2.c (main): Relax test on requiring detection
	of stream errors, and use unbuffered stream.
	* doc/posix-functions/dprintf.texi (dprintf): Document bug.
	* doc/posix-functions/fprintf.texi (fprintf): Likewise.
	* doc/posix-functions/fputc.texi (fputc): Likewise.
	* doc/posix-functions/fputs.texi (fputs): Likewise.
	* doc/posix-functions/fputws.texi (fputws): Likewise.
	* doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
	* doc/posix-functions/fwrite.texi (fwrite): Likewise.
	* doc/posix-functions/getopt.texi (getopt): Likewise.
	* doc/posix-functions/perror.texi (perror): Likewise.
	* doc/posix-functions/printf.texi (printf): Likewise.
	* doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
	* doc/posix-functions/psignal.texi (psignal): Likewise.
	* doc/posix-functions/putc.texi (putc): Likewise.
	* doc/posix-functions/putc_unlocked.texi (putc_unlocked):
	Likewise.
	* doc/posix-functions/putchar.texi (putchar): Likewise.
	* doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
	Likewise.
	* doc/posix-functions/puts.texi (puts): Likewise.
	* doc/posix-functions/putwc.texi (putwc): Likewise.
	* doc/posix-functions/putwchar.texi (putwchar): Likewise.
	* doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
	* doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
	* doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
	* doc/posix-functions/vprintf.texi (vprintf): Likewise.
	* doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
	* doc/posix-functions/wordexp.texi (wordexp): Likewise.
	* doc/posix-functions/wprintf.texi (wprintf): Likewise.

2011-05-22  Bruno Haible  <bruno@clisp.org>

	strerror: Move AC_LIBOBJ invocations to module description.
	* m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
	gl_PREREQ_STRERROR invocations from here...
	* modules/strerror (configure.ac): ... to here.

2011-05-21  Bruno Haible  <bruno@clisp.org>

	perror: Use common idiom.
	* modules/perror (configure.ac): Reorder statements.

2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>

	tests: fix usage message in 'mktempd_'
	* tests/init.sh (mktempd_): In the usage message, use literal
	'mktempd_', not '$ME' (which is even undefined), as the name of
	the subroutine.

2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>

	tests init: new function 'fatal_', for hard errors
	Before this patch, the only way offered by tests/init.sh to
	properly signal a hard error was the `framework_failure_'
	function.  But the error message issued by that function,
	as its name would suggest, refers to a set-up failure in the
	testsuite, while hard errors can obviously also be due to
	other reasons.  The best way to fix this inconsistency is to
	introduce a new function with a more general error message.
	* tests/init.sh (fatal_): New function.

2011-06-06  Eric Blake  <eblake@redhat.com>

	canonicalize-lgpl: use common idiom
	* m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
	over newer POSIX -Rf.
	Reported by Bruno Haible.

	canonicalize-lgpl: work around AIX realpath bug
	* m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
	* doc/posix-functions/realpath.texi (realpath): Document it.
	Reported by Bruno Haible.

	strerror: work around FreeBSD bug
	* lib/strerror.c (strerror): Special case 0.
	Reported by Bruno Haible.

	strerror-override: avoid bloating errno module
	* modules/errno (Files, configure.ac): Move replacement strings...
	* modules/strerror-override: ...to new module.
	* modules/strerror (Depends-on): Add strerror-override.
	* modules/strerror_r-posix (Depends-on): Likewise.
	* MODULES.html.sh: Document new module.
	Reported by Bruno Haible.

2011-06-06  Bruno Haible  <bruno@clisp.org>

	spawn-pipe tests: Rename program.
	* tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
	* tests/test-spawn-pipe-child.c: Update comment.
	* tests/test-spawn-pipe.sh: Update.
	* modules/spawn-pipe-tests (Files, Makefile.am): Update.

	spawn-pipe tests: Link the child program only against libc.
	* tests/test-spawn-pipe-child.c: New file, extracted from
	tests/test-spawn-pipe.c.
	(main): Expect only one argument.
	(is_open): New function, copied from tests/test-pipe.c.
	* tests/test-spawn-pipe.c: Don't include <errno.h>.
	(child_main): Remove function.
	(test_pipe): Pass only one argument to the child program.
	(main): Remove child process code. Expect the child program's name as
	first argument.
	* tests/test-spawn-pipe.sh: Pass the child program's name as first
	argument.
	* modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
	(Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
	test-spawn-pipe-child against no libraries.

2011-06-06  Bruno Haible  <bruno@clisp.org>

	careadlinkat: Avoid mismatch between ssize_t and int.
	* lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
	* lib/careadlinkat.c (careadlinkatcwd): Define always.

2011-06-06  Jim Meyering  <meyering@redhat.com>

	gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
	* m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
	_GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.

2011-06-05  Bruno Haible  <bruno@clisp.org>

	ansi-c++-opt: Interoperability with libtool.
	* m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
	set the variable to "no", not to ":".
	* NEWS: Mention the change.

2011-06-05  Bruno Haible  <bruno@clisp.org>

	acl: Fix test failure on AIX 7.
	* tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
	Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.

2011-06-05  Bruno Haible  <bruno@clisp.org>

	pipe-filter-ii: Fix test failure on AIX and IRIX.
	* lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
	with EAGAIN, retry with a smaller buffer size.

2011-06-05  Bruno Haible  <bruno@clisp.org>

	localename: Fix link dependencies.
	* modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
	* modules/localename-tests (Makefile.am): Link test-localename with
	$(LIBTHREAD).

2011-06-05  Bruno Haible  <bruno@clisp.org>

	error: Avoid gcc warning.
	* lib/error.c (strerror_r): Declare also when its return type is 'int'.

2011-06-05  Bruno Haible  <bruno@clisp.org>

	unsetenv: Avoid gcc warning.
	* lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.

2011-06-05  Bruno Haible  <bruno@clisp.org>

	setenv: Avoid gcc warning.
	* lib/setenv.c (setenv): Provide declaration if system lacks it.

2011-06-05  Bruno Haible  <bruno@clisp.org>

	sys_select: Ensure memset is declared also on AIX 7.
	* lib/sys_select.in.h: Include <string.h> also on AIX.
	* doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
	self-contained also on AIX 7.1.

2011-06-04  Jim Meyering  <meyering@redhat.com>

	maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
	* top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
	function name, "error".
	(_gl_translatable_diag_func_re): New configurable variable.

2011-06-04  Bruno Haible  <bruno@clisp.org>

	getopt: Avoid gcc warning.
	* lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.

2011-06-04  Bruno Haible  <bruno@clisp.org>

	strerror_r: Fix comments.
	* lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
	commit.

2011-06-04  Bruno Haible  <bruno@clisp.org>

	perror: Fix compilation error.
	* lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
	Undefine fprintf, not sprintf.
	* modules/perror (Depends-on): Remove intprops, verify.

2011-06-04  Bruno Haible  <bruno@clisp.org>

	setlocale: Enable replacement on Cygwin 1.5.
	* m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
	Cygwin 1.5.x.
	* doc/posix-functions/setlocale.texi: Mention that the problem with the
	LC_CTYPE category also exists on Cygwin 1.5.x.

2011-06-04  Bruno Haible  <bruno@clisp.org>

	strerror-override: Don't disable symbol renamings.
	* lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
	* lib/strerror-override.c: Include config.h.
	(strerror_override): Don't undefine.

2011-06-03  Bruno Haible  <bruno@clisp.org>

	Copyright: Use LGPL 2.1 instead of LGPL 2.0.
	* lib/localename.h: Update copyright header.
	* lib/localename.c: Likewise.
	* lib/relocatable.h: Likewise.
	* lib/relocatable.c: Likewise.

2011-06-02  Bruno Haible  <bruno@clisp.org>

	doc: Fix a module name.
	* doc/posix-functions/open.texi: Fix module name 'nonblocking'.

2011-06-02  Bruno Haible  <bruno@clisp.org>

	pipe2: Remove dependency on 'nonblocking' module.
	* lib/pipe2.c: Include verify.h. Include nonblocking.h only if
	O_NONBLOCK is defined by gnulib.
	(pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
	is zero.
	* modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
	* tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
	defined by gnulib.
	(get_nonblocking_flag): New function.
	(main): Test O_NONBLOCK flag only if it is nonzero.
	* doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.

2011-06-03  Jim Meyering  <meyering@redhat.com>

	maint: three new prohibit-header-without-use rules
	Prohibit use of cloexec.h, posixver.h, same.h without use.
	* top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
	(sc_prohibit_posixver_without_use): Likewise.
	(sc_prohibit_same_without_use): Likewise.

2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>

	allocator: 'die' routine is now given requested size
	* lib/allocator.h (struct allocator.die): New size arg.
	* lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
	If the actual problem is an ssize_t limitation, not a size_t or
	malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.

2011-06-01  Eric Blake  <eblake@redhat.com>

	strerror: drop strerror_r dependency
	* lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
	* lib/strerror-override.c (strerror_override): ...to new file.
	* lib/strerror-override.h: Add prototype.
	* lib/strerror-impl.h: Delete.
	* lib/strerror.c (strerror): New implementation.
	* modules/errno (Files): Add new files.
	(configure.ac): Compile new file as appropriate.
	* modules/strerror (Files): Drop unused file.
	(Depends-on): Drop strerror_r-posix.
	* MODULES.html.sh: Document strerror_r-posix.
	Requested by Sam Steingold.

	perror: call strerror_r directly
	* modules/perror (Files): Drop strerror-impl.h.
	* lib/perror.c (perror): Use our own stack buffer, rather than
	calling a wrapper that uses static storage.
	* doc/posix-functions/perror.texi (perror): Document a limitation
	of our replacement.

	strerror_r: fix includes for FreeBSD
	* lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
	since we use abort on some platforms.
	Reported by Matthias Bolte.

2011-05-31  Bruno Haible  <bruno@clisp.org>

	Fix link errors in tests: openat-die uses gettext-h.
	* modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
	against $(LIBINTL).
	* modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
	against $(LIBINTL).
	* modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
	$(LIBINTL).
	* modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
	against $(LIBINTL).
	* modules/linkat-tests (Makefile.am): Link test-linkat against
	$(LIBINTL).
	* modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
	$(LIBINTL).
	* modules/openat-safer-tests (Makefile.am): Link test-openat-safer
	against $(LIBINTL).
	* modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
	test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
	* modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
	$(LIBINTL).
	* modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
	$(LIBINTL).
	* modules/utimensat-tests (Makefile.am): Link test-utimensat against
	$(LIBINTL).
	Reported by Tom G. Christensen <tgc@jupiterrise.com>.

2011-05-31  Bruno Haible  <bruno@clisp.org>

	Fix link errors in tests: wait-process uses gettext-h.
	* modules/nonblocking-pipe-tests (Makefile.am): Set
	test_nonblocking_pipe_main_LDADD.
	* modules/nonblocking-socket-tests (Makefile.am): Link
	test-nonblocking-socket-main against $(LIBINTL).
	Reported by Tom G. Christensen <tgc@jupiterrise.com>.

2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>

	assert-h: work around 'verify' incompatibility
	* lib/verify.h: Use @...@ directives, not ifdef.
	* modules/assert-h (assert.h): Implement the directives.
	(assert.h): Substitute the symbol-prefix more consistently.

2011-05-29  Jim Meyering  <meyering@redhat.com>

	trim: remove three superfluous assignments
	* lib/trim.c (trim2): Remove three superfluous assignments
	and correct brace positioning.

2011-05-29  Bruno Haible  <bruno@clisp.org>

	wctype-h: Avoid namespace pollution on Solaris 2.6.
	* lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
	identifiers.
	* doc/posix-headers/wctype.texi: Mention the problem.
	Reported by Tom G. Christensen <tgc@jupiterrise.com>.

2011-05-28  Jim Meyering  <meyering@redhat.com>

	parse-datetime.y: accommodate -Wstrict-overflow
	* lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
	placate -Wstrict-overflow.

	trim: avoid a warning from -O2 -Wstrict-overflow
	* lib/trim.c (trim2): Declare local to be "unsigned int", not "int".

2011-05-29  Bruno Haible  <bruno@clisp.org>

	gnulib-tool: Fix bug in yesterday's commit.
	* gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
	twice.

2011-05-29  Bruno Haible  <bruno@clisp.org>

	Allow multiple gnulib generated include files to be combined.
	* gnulib-tool (func_compute_include_guard_prefix): New function.
	(func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
	${gl_include_guard_prefix} references.
	(func_import, func_create_testdir): Invoke
	func_compute_include_guard_prefix.
	* lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
	* lib/ctype.in.h: Likewise.
	* lib/dirent.in.h: Likewise.
	* lib/errno.in.h: Likewise.
	* lib/fcntl.in.h: Likewise.
	* lib/float.in.h: Likewise.
	* lib/getopt.in.h: Likewise.
	* lib/iconv.in.h: Likewise.
	* lib/langinfo.in.h: Likewise.
	* lib/locale.in.h: Likewise.
	* lib/math.in.h: Likewise.
	* lib/netdb.in.h: Likewise.
	* lib/netinet_in.in.h: Likewise.
	* lib/poll.in.h: Likewise.
	* lib/pthread.in.h: Likewise.
	* lib/pty.in.h: Likewise.
	* lib/sched.in.h: Likewise.
	* lib/se-selinux.in.h: Likewise.
	* lib/search.in.h: Likewise.
	* lib/signal.in.h: Likewise.
	* lib/spawn.in.h: Likewise.
	* lib/stdarg.in.h: Likewise.
	* lib/stddef.in.h: Likewise.
	* lib/stdint.in.h: Likewise.
	* lib/stdio.in.h: Likewise.
	* lib/stdlib.in.h: Likewise.
	* lib/string.in.h: Likewise.
	* lib/strings.in.h: Likewise.
	* lib/sys_file.in.h: Likewise.
	* lib/sys_ioctl.in.h: Likewise.
	* lib/sys_select.in.h: Likewise.
	* lib/sys_socket.in.h: Likewise.
	* lib/sys_stat.in.h: Likewise.
	* lib/sys_time.in.h: Likewise.
	* lib/sys_times.in.h: Likewise.
	* lib/sys_uio.in.h: Likewise.
	* lib/sys_utsname.in.h: Likewise.
	* lib/sys_wait.in.h: Likewise.
	* lib/sysexits.in.h: Likewise.
	* lib/termios.in.h: Likewise.
	* lib/time.in.h: Likewise.
	* lib/unistd.in.h: Likewise.
	* lib/wchar.in.h: Likewise.
	* lib/wctype.in.h: Likewise.
	* modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
	* modules/ctype (Makefile.am): Likewise.
	* modules/dirent (Makefile.am): Likewise.
	* modules/errno (Makefile.am): Likewise.
	* modules/fcntl-h (Makefile.am): Likewise.
	* modules/float (Makefile.am): Likewise.
	* modules/getopt-posix (Makefile.am): Likewise.
	* modules/iconv-h (Makefile.am): Likewise.
	* modules/langinfo (Makefile.am): Likewise.
	* modules/locale (Makefile.am): Likewise.
	* modules/math (Makefile.am): Likewise.
	* modules/netdb (Makefile.am): Likewise.
	* modules/netinet_in (Makefile.am): Likewise.
	* modules/poll-h (Makefile.am): Likewise.
	* modules/pthread (Makefile.am): Likewise.
	* modules/pty (Makefile.am): Likewise.
	* modules/sched (Makefile.am): Likewise.
	* modules/search (Makefile.am): Likewise.
	* modules/selinux-h (Makefile.am): Likewise.
	* modules/signal (Makefile.am): Likewise.
	* modules/spawn (Makefile.am): Likewise.
	* modules/stdarg (Makefile.am): Likewise.
	* modules/stddef (Makefile.am): Likewise.
	* modules/stdint (Makefile.am): Likewi