view ChangeLog @ 16743:45c94a240a33

New module 'log10l-ieee'. * modules/log10l-ieee: New file.
author Bruno Haible <bruno@clisp.org>
date Sun, 01 Apr 2012 17:00:40 +0200
parents 85acc5fc6aa7
children ca7718d12a97
line wrap: on
line source

2012-04-01  Bruno Haible  <bruno@clisp.org>

	New module 'log10l-ieee'.
	* modules/log10l-ieee: New file.

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

	New module 'log10-ieee'.
	* modules/log10-ieee: New file.

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

	New module 'log10f-ieee'.
	* modules/log10f-ieee: New file.

2012-04-01  Bruno Haible  <bruno@clisp.org>

	log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
	* lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
	* lib/log10l.c (log10l): If log10l exists, use it and provide just the
	workaround.
	* m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
	(gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
	* modules/math (Makefile.am): Substitute REPLACE_LOG10L.
	* modules/log10l (configure.ac): Consider REPLACE_LOG10L.
	(Depends-on): Update conditions.
	* doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
	IRIX 6.5, OSF/1 5.1 problems.

2012-04-01  Bruno Haible  <bruno@clisp.org>

	log10f: Work around OSF/1 5.1 bug.
	* lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
	* lib/log10f.c (log10f): If logf exists, use it and provide just the
	workaround.
	* m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
	(gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
	* modules/math (Makefile.am): Substitute REPLACE_LOG10F.
	* modules/log10f (configure.ac): Consider REPLACE_LOG10F.
	(Depends-on): Update conditions.
	* doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.

2012-04-01  Bruno Haible  <bruno@clisp.org>

	log10: Work around OSF/1 5.1 bug.
	* lib/math.in.h (log10): New declaration.
	* lib/log10.c: New file.
	* m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
	(gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
	* m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
	* modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
	* modules/log10 (Files): Add lib/log10.c.
	(Depends-on): Add math.
	(configure.ac): If REPLACE_LOG10 is 1, compile an override.
	* tests/test-math-c++.cc: Check the declaration of log10.
	* doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.

2012-03-31  Bruno Haible  <bruno@clisp.org>

	log10l tests: More tests.
	* modules/log10l-tests (Files): Add tests/test-log10l.h,
	tests/minus-zero.h, tests/randoml.c.
	(Makefile.am): Add randoml.c to test_log10l_SOURCES.
	* tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
	(main): Invoke test_function.

	log10f tests: More tests.
	* modules/log10f-tests (Files): Add tests/test-log10.h,
	tests/minus-zero.h, tests/randomf.c.
	(Makefile.am): Add randomf.c to test_log10f_SOURCES.
	* tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
	(main): Invoke test_function.

	log10 tests: More tests.
	* tests/test-log10.h: New file.
	* modules/log10-tests (Files): Add tests/test-log10.h,
	tests/minus-zero.h, tests/randomd.c.
	(Makefile.am): Add randomd.c to test_log10_SOURCES.
	* tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
	(main): Invoke test_function.

2012-03-31  Simon Josefsson  <simon@josefsson.org>

	fflush: Fix syntax error.
	* lib/fflush.c: Include unused-parameter.h, needed for
	_GL_UNUSED_PARAMETER.
	* modules/fflush (Depends-on): Add snippet/unused-parameter.

2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>

	regex: pacify GCC when compiling GRUB
	* lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
	a diagnostic.  Reported by Vladimir Serbinenko in
	<http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.

2012-03-29  Eric Blake  <eblake@redhat.com>

	stdio: don't assume gets any more
	* m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
	support.
	* modules/stdio (Makefile.am): Likewise.
	* lib/stdio-read.c (gets): Likewise.
	* tests/test-stdio-c++.cc: Likewise.
	* m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
	* lib/stdio.in.h (gets): Make warning occur in more places.
	* doc/posix-functions/gets.texi (gets): Update documentation.
	Reported by Christer Solskogen.

	maint.mk: fix syntax checks without exclusions
	* top/maint.mk (_sc_search_regexp): Allow for empty variable.
	Reported by Daniel P. Berrange.

	strerror_r: avoid compiler warning
	* lib/strerror_r.c (strerror_r): Hoist extern declaration to top
	level.

	fflush: avoid compiler warning
	* lib/fflush.c (update_fpos_cache): Mark variables that are
	potentially unused.

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

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

	New module 'localeconv'.
	* lib/locale.in.h (localeconv): New declaration.
	* lib/localeconv.c: New file.
	* m4/localeconv.m4: New file.
	* m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
	REPLACE_LOCALECONV.
	* modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
	REPLACE_LOCALECONV.
	* modules/localeconv: New file.
	* modules/nl_langinfo (Depends-on): Add localeconv.
	* modules/human (Depends-on): Likewise.
	* doc/posix-functions/localeconv.texi: Mention the new module.

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

	locale: Provide a complete 'struct lconv'.
	* m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
	'struct lconv' does not contain int_p_cs_precedes.
	* tests/test-locale.c (main): Check that 'struct lconv' is complete.
	* doc/posix-headers/locale.texi: Update.

	locale: Provide a complete 'struct lconv' on Solaris 10, 11.
	* m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
	* doc/posix-headers/locale.texi: Update.

	locale: Provide a working 'struct lconv'.
	* lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
	* m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
	'struct lconv' does not even contain decimal_point.
	(gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
	* modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
	* tests/test-locale.c (main): Check that 'struct lconv' is complete.
	* doc/posix-headers/locale.texi: Mention the problems with
	'struct lconv'.
	Reported by Gianluigi Tiesi <sherpya@netfarm.it>.

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

	Enable common subexpression optimization in GCC.
	* lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
	macros.
	* lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
	GCC attribute 'const'.
	(uc_locale_language): Declare with GCC attribute 'pure'.
	* lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
	with GCC attribute 'const'.
	* lib/unictype.in.h (uc_is_general_category_withtable,
	uc_combining_class, uc_combining_class_name,
	uc_combining_class_long_name, uc_bidi_class_name,
	uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
	uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
	uc_decimal_value, uc_digit_value, uc_numeric_value,
	uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
	uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
	uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
	uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
	uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
	uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
	Declare with GCC attribute 'const'.
	(uc_general_category_name, uc_general_category_long_name,
	uc_general_category_byname, uc_general_category,
	uc_is_general_category, uc_combining_class_byname,
	uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
	uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
	Declare with GCC attribute 'pure'.
	* lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
	uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
	u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
	u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
	with GCC attribute 'pure'.
	* lib/uninorm.in.h (uc_composition): Declare with GCC attribute
	'const'.
	(uninorm_decomposing_form): Declare with GCC attribute 'pure'.
	* lib/unistr.in.h (): Declare with GCC attribute 'const'.
	(u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
	u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
	u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
	u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
	u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
	u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
	u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
	u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
	u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
	u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
	u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
	GCC attribute 'pure'.
	* lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
	'const'.
	* lib/uniwidth.in.h (uc_width): Simplify declaration.
	(u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
	u32_strwidth): Declare with GCC attribute 'pure'.

	Enable common subexpression optimization in GCC.
	* lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
	(alphasort): Declare with GCC attribute 'pure'.
	* lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
	(atoll): Declare with GCC attribute 'pure'.
	* lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
	mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
	mbsspn, strverscmp): Declare with GCC attribute 'pure'.
	* lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
	(btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
	wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
	wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.

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

	gnulib-tool: Avoid unintended error output from 'cmp'.
	* gnulib-tool (func_add_file, func_update_file, func_import): Use
	"cmp -s", not "cmp > /dev/null".

2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>

	gnulib-tool: fix imprecise comments w.r.t. an automake bug

	It's not just Automake versions < 1.9b that creates an empty
	pkgdatadir at installation time if pkgdata_DATA is specified
	to empty; modern automake versions do this as well, at least
	until automake 1.11.4 (not yet released at the moment of writing,
	but soon to appear).  That behaviour was generally considered a
	feature rather than a bug, at least until this discussion:
	<http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>

	See also automake bugs #10997 and #11030.

	* gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
	reference to relevant automake bug numbers.
	(func_emit_tests_Makefile_am): Likewise.

2012-03-20  Reuben Thomas  <rrt@sc3d.org>

	announce-gen: use Digest::SHA when possible
	* build-aux/announce-gen: Use Digest::SHA when possible, falling
	back to Digest::SHA1 if necessary.

2012-03-20  Jim Meyering  <meyering@redhat.com>

	tests: avoid gcc warnings about argv vs. const initializers
	* tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
	warnings about discarding 'const' qualifier from pointer target type.
	* tests/test-posix_spawn2.c (main): Likewise.

2012-03-20  Reuben Thomas  <rrt@sc3d.org>

	README-release: simplify slightly
	* top/README-release: Run "git checkout master" only once.

2012-03-15  Mark Wielaard  <mark@klomp.org>

	git-merge-changelog: add specific example on how to use with hg.
	* lib/git-merge-changelog.c: Add example on how to use in .hgrc.

2012-03-18  Mark Wielaard  <mark@klomp.org>

	lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.

2012-03-18  Andreas Oberritter  <obi@opendreambox.org>

	git-version-gen: don't let "prefix" envvar cause trouble
	* build-aux/git-version-gen (prefix): Initialize properly,
	so as not to use a value specified via the environment.
	Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810

2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>

	regex: diagnose too-large repeat counts in EREs
	Previously, the code did not diagnose the too-large repeat count
	in EREs like 'b{1000000000}'; instead, it silently treated the ERE
	as if it were 'b\{1000000000}', which is unexpected.
	* lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
	is too large.  REG_ESIZE is used nowhere else, and the diagnostic
	is a reasonable one for this problem.  Another option would be to
	create a new REG_OVERFLOW error for repeat counts that are too large.
	(fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
	count is too large, so that the caller can distinguish the two cases.
	* lib/regex.h (_REG_ESIZE): Document that this is now a generic
	"Too large" return code, and that repeat counts are one example of this.

2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>

	doc: some glibc x32 integer width issues
	* doc/posix-headers/sys_types.texi (sys/types.h):
	* doc/posix-headers/time.texi (time.h):
	Mention that glibc x32 does not conform to POSIX in a couple of
	areas related to integer widths.

2012-03-15  Bruno Haible  <bruno@clisp.org>

	fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
	* lib/fma.c (VOLATILE): New macro.
	(FUNC): Use it to work around a GCC compiler bug.

2012-03-13  Bruno Haible  <bruno@clisp.org>

	hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
	* m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
	(gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
	REPLACE_HYPOTL to 1.
	* doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.

2012-03-13  Bruno Haible  <bruno@clisp.org>

	remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
	* m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
	(gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
	REPLACE_REMAINDERL to 1.
	* doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
	bug.

2012-03-13  Bruno Haible  <bruno@clisp.org>

	sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
	* lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
	* m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
	(gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
	too big rounding errors.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
	* modules/math (Makefile.am): Substitute REPLACE_SQRTL.
	* modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
	(Depends-on): Update conditions.
	* tests/test-sqrtl.c (my_ldexpl): New function.
	(main): Add test of a particular value.
	* doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.

2012-03-13  Pádraig Brady  <P@draigBrady.com>

	doc: Update timer_* platform portability notes.
	* doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
	that always return ENOSYS.
	* doc/posix-functions/timer_delete.texi: Likewise.
	* doc/posix-functions/timer_gettime.texi: Likewise.
	* doc/posix-functions/timer_settime.texi: Likewise.

2012-03-13  Bruno Haible  <bruno@clisp.org>

	cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
	* m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
	(gl_FUNC_CBRTL): Invoke it. If the function does not work, set
	REPLACE_CBRTL to 1.
	* doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.

2012-03-13  Bruno Haible  <bruno@clisp.org>

	remainderl: Avoid compilation error on AIX >= 5.2.
	* lib/math.in.h (remainderl): Undefine macro from the system header.

2012-03-13  Bruno Haible  <bruno@clisp.org>

	Avoid compilation errors with MSVC option -fp:strict.
	* lib/cbrt.c: Use MSVC specific pragma fenv_access.
	* lib/cbrtf.c: Likewise.
	Reported by Michael Goffioul <michael.goffioul@gmail.com>.

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

	uninorm: Don't crash in out-of-memory conditions.
	* lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
	gracefully.
	* lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
	Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.

2012-03-13  Akim Demaille  <akim@lrde.epita.fr>

	quote: fix syntax-check
	* top/maint.mk (sc_prohibit_quote_without_use): quote.h
	also exports quote_quoting_options.

2012-03-12  Simon Josefsson  <simon@josefsson.org>

	Collapse list of copyright years to ranges.  See
	<https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
	* build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
	build-aux/csharpexec.sh.in, build-aux/gnupload,
	build-aux/install-reloc, build-aux/javacomp.sh.in,
	build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
	build-aux/move-if-change, build-aux/reloc-ldflags,
	build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.

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

	log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
	* m4/log2f-ieee.m4: New file.
	* m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
	whether log2f works with a minus zero argument. Replace it if not.
	* modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
	(Depends-on): Add log2-ieee.
	(configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
	* doc/posix-functions/log2f.texi: Mention the log2f-ieee module.

	log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
	* m4/log2-ieee.m4: New file.
	* m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
	whether log2 works with a minus zero argument. Replace it if not.
	* modules/log2-ieee (Files): Add m4/log2-ieee.m4.
	(configure.ac): Invoke gl_FUNC_LOG2_IEEE.
	* doc/posix-functions/log2.texi: Mention the log2-ieee module.

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

	New module 'log2l-ieee'.
	* modules/log2l-ieee: New file.

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

	New module 'log2-ieee'.
	* modules/log2-ieee: New file.

	Tests for module 'log2f-ieee'.
	* modules/log2f-ieee-tests: New file.
	* tests/test-log2f-ieee.c: New file.
	* tests/test-log2-ieee.h: New file.

	New module 'log2f-ieee'.
	* modules/log2f-ieee: New file.

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

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

	New module 'log2l'.
	* lib/math.in.h (log2l): New declaration.
	* lib/log2l.c: New file.
	* m4/log2l.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
	REPLACE_LOG2L.
	* modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
	REPLACE_LOG2L.
	* modules/log2l: New file.
	* tests/test-math-c++.cc: Check the declaration of log2l.
	* doc/posix-functions/log2l.texi: Mention the new module and the IRIX
	and OSF/1 problems.

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

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

	New module 'log2f'.
	* lib/math.in.h (log2f): New declaration.
	* lib/log2f.c: New file.
	* m4/log2f.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
	REPLACE_LOG2F.
	* modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
	REPLACE_LOG2F.
	* modules/log2f: New file.
	* tests/test-math-c++.cc: Check the declaration of log2f.
	* doc/posix-functions/log2f.texi: Mention the new module and the IRIX
	and OSF/1 and Cygwin problems.

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

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

	New module 'log2'.
	* lib/math.in.h (log2): New declaration.
	* lib/log2.c: New file.
	* m4/log2.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
	REPLACE_LOG2.
	* modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
	REPLACE_LOG2.
	* modules/log2: New file.
	* tests/test-math-c++.cc: Check the declaration of log2.
	* doc/posix-functions/log2.texi: Mention the new module and the IRIX
	and OSF/1 and Cygwin problems.

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

	exp2* tests: More tests.
	* tests/test-exp2.h (test_function): Test all integral arguments that
	don't need to overflow or denormalized numbers.
	* tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
	* tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
	* tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.

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

	log1pl-ieee: Work around test failure on AIX 7.1.
	* modules/log1pl-ieee (Depends-on): Add log1p-ieee.

	log1pl-ieee: Work around test failure on IRIX 6.5.
	* m4/log1pl-ieee.m4: New file.
	* m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
	test whether log1pl works with a minus zero argument. Replace it if
	not.
	* lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
	* modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
	* modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
	(Depends-on): Update conditions.
	* modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
	m4/signbit.m4.
	(configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
	* doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.

	log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
	* m4/log1pf-ieee.m4: New file.
	* m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
	test whether log1pf works with a minus zero argument. Replace it if
	not.
	* modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
	m4/signbit.m4.
	(configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
	* doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.

	log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
	* modules/log1pf-ieee (Depends-on): Add log1p-ieee.
	(configure.ac): Require gl_FUNC_LOG1PF.

	log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
	* m4/log1p-ieee.m4: New file.
	* m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
	whether log1p works with a minus zero argument. Replace it if not.
	* lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
	* modules/math (Makefile.am): Substitute REPLACE_LOG1P.
	* modules/log1p (configure.ac): Consider REPLACE_LOG1P.
	(Depends-on): Update conditions.
	* modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
	m4/signbit.m4.
	(configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
	* doc/posix-functions/log1p.texi: Mention the log1p-ieee module.

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

	New module 'log1pl-ieee'.
	* modules/log1pl-ieee: New file.

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

	New module 'log1p-ieee'.
	* modules/log1p-ieee: New file.

	Tests for module 'log1pf-ieee'.
	* modules/log1pf-ieee-tests: New file.
	* tests/test-log1pf-ieee.c: New file.
	* tests/test-log1p-ieee.h: New file.

	New module 'log1pf-ieee'.
	* modules/log1pf-ieee: New file.

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

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

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

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

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

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

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

	log1p tests: More tests.
	* tests/test-log1p.h: New file.
	* modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
	(Makefile.am): Add randomd.c to test_log1p_SOURCES.
	* tests/test-log1p.c: Include <float.h> and test-log1p.h.
	(main): Invoke test_function.

	log1p: Provide replacement for Minix and MSVC.
	* lib/math.in.h (log1p): New declaration.
	* lib/log1p.c: New file.
	* m4/log1p.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
	* modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
	* modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
	(Depends-on): Add math, isnand, log, round.
	(configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
	HAVE_LOG1P is 0.
	* tests/test-math-c++.cc: Check the declaration of log1p.
	* doc/posix-functions/log1p.texi: Mention the replacement.

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

	math tests: Small simplification.
	* tests/test-exp.h (test_function): Use the same err_bound for
	'double' on platforms with sizeof (long double) == sizeof (double)
	than on platforms with sizeof (long double) > sizeof (double).
	* tests/test-exp2.h (test_function): Likewise.
	* tests/test-expm1.h (test_function): Likewise.
	* tests/test-log.h (test_function): Likewise.

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

	Fix some comments.
	* lib/expl.c: Fix an ambiguous comment.
	* lib/expm1.c: Likewise.
	* lib/expm1l.c: Likewise.
	* lib/exp2.c: Likewise.
	* lib/exp2l.c: Likewise.

2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>

	regex: allow inclusion of <regex.h> before <limits.h>
	Without this patch, portable programs had to include <limits.h> before
	<regex.h> if they wanted a consistent value for RE_DUP_MAX.
	I ran into this problem with a test version of GNU grep on Solaris 8.
	* lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
	This is done conditionally so that this change can be merged
	back to glibc.
	* m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
	using the included regex.

	fts: depend on fdopendir
	* modules/fts (Depends-on): Depend on fdopendir.  This is needed
	on Solaris 8, at least, since it lacks fdopendir.  Evidently the
	problem was introduced when fdopendir was split out.

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

	Remove unused variables.
	* m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
	* m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.

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

	isnanf-nolibm: Fix last commit.
	* lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.

	isnanf-nolibm: Make it work on IRIX 6.5 with cc.
	* lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.

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

	logf-ieee: Work around test failure on NetBSD 5.1.
	* m4/logf-ieee.m4: New file.
	* m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
	whether logf works with a negative argument. Replace it if not.
	* lib/logf.c (logf): For negative arguments, return NaN.
	* modules/logf-ieee (Files): Add m4/logf-ieee.m4.
	(configure.ac): Invoke gl_FUNC_LOGF_IEEE.
	* doc/posix-functions/logf.texi: Mention the logf-ieee module.

	logf-ieee: Work around test failure on Solaris 9.
	* modules/logf-ieee (Depends-on): Add log-ieee.
	(configure.ac): Require gl_FUNC_LOGF.

	log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
	* m4/log-ieee.m4: New file.
	* m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
	log works with a negative argument. Replace it if not.
	* lib/log.c (log): For negative arguments, return NaN.
	* modules/log-ieee (Files): Add m4/log-ieee.m4.
	(configure.ac): Invoke gl_FUNC_LOG_IEEE.
	* doc/posix-functions/log.texi: Mention the log-ieee module.

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

	New module 'logl-ieee'.
	* modules/logl-ieee: New file.

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

	New module 'log-ieee'.
	* modules/log-ieee: New file.

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

	New module 'logf-ieee'.
	* modules/logf-ieee: New file.

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

	log: Fix bug introduced on 2012-03-09.
	* m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.

2012-03-10  Pádraig Brady  <P@draigBrady.com>

	timer-time: link explicitly with pthreads on glibc
	* m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
	to support static linking, when newer glibc is
	detected, as that contains pthread emulation of
	POSIX timer functions where required.
	* modules/timer-time: Depend on threadlib to
	pull in the appropriate library to link.

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

	log* tests: More tests.
	* tests/test-log.h: New file.
	* tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
	(main): Invoke test_function.
	* tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
	(main): Invoke test_function.
	* tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
	(main): Invoke test_function.
	* modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
	tests/randomd.c.
	(Makefile.am): Add randomd.c to test_log_SOURCES.
	* modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
	tests/randomf.c.
	(Makefile.am): Add randomf.c to test_logf_SOURCES.
	* modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
	tests/randoml.c.
	(Depends-on): Add 'float'.
	(Makefile.am): Add randoml.c to test_logl_SOURCES.

2012-03-09  Bruno Haible  <bruno@clisp.org>

	logl: Work around OSF/1 5.1 bug.
	* lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
	* lib/logl.c (logl): If logl exists, use it and provide just the
	workaround.
	* m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
	(gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
	* modules/math (Makefile.am): Substitute REPLACE_LOGL.
	* modules/logl (configure.ac): Consider REPLACE_LOGL.
	(Depends-on): Update conditions.
	* doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.

2012-03-09  Bruno Haible  <bruno@clisp.org>

	logf: Work around OSF/1 5.1 bug.
	* lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
	* lib/logf.c (logf): If logf exists, use it and provide just the
	workaround.
	* m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
	(gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
	* modules/math (Makefile.am): Substitute REPLACE_LOGF.
	* modules/logf (configure.ac): Consider REPLACE_LOGF.
	(Depends-on): Update conditions.
	* doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.

2012-03-09  Bruno Haible  <bruno@clisp.org>

	log: Work around OSF/1 5.1 bug.
	* lib/math.in.h (log): New declaration.
	* lib/log.c: New file.
	* m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
	(gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
	* m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
	* modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
	* modules/log (Files): Add lib/log.c.
	(Depends-on): Add math.
	(configure.ac): If REPLACE_LOG is 1, compile an override.
	* tests/test-math-c++.cc: Check the declaration of log.
	* doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.

2012-03-09  Jim Meyering  <meyering@redhat.com>

	readtokens.c: adjust wording in a comment
	* lib/readtokens.c: Insert omitted "that" in a comment.

2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>

	modechange: add notations +40, 00440, etc.
	* lib/modechange.c (mode_compile): Support new notations
	+40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.

2012-03-08  Bruno Haible  <bruno@clisp.org>

	exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
	* m4/exp2l-ieee.m4: New file.
	* m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
	test whether exp2l works with a NaN argument and with a negative
	infinity argument. Replace it if not.
	* lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
	* modules/math (Makefile.am): Substitute REPLACE_EXP2L.
	* modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
	(Depends-on): Update conditions.
	* modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
	(configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
	* doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.

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

	New module 'exp2l-ieee'.
	* modules/exp2l-ieee: New file.

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

	New module 'exp2-ieee'.
	* modules/exp2-ieee: New file.

	Tests for module 'exp2f-ieee'.
	* modules/exp2f-ieee-tests: New file.
	* tests/test-exp2f-ieee.c: New file.
	* tests/test-exp2-ieee.h: New file.

	New module 'exp2f-ieee'.
	* modules/exp2f-ieee: New file.

2012-03-08  Bruno Haible  <bruno@clisp.org>

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

	New module 'exp2l'.
	* lib/math.in.h (exp2l): New declaration.
	* lib/exp2l.c: New file.
	* lib/expl-table.c: New file, extracted from lib/expl.c.
	* lib/expl.c (gl_expl_table): New declaration.
	(expl): Remove expl_table. Update reference.
	* m4/exp2l.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
	* modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
	* modules/exp2l: New file.
	* modules/expl (Files): Add lib/expl-table.c.
	(configure.ac): Compile also expl-table.c.
	* tests/test-math-c++.cc: Check the declaration of exp2l.
	* doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
	problem.

2012-03-08  Bruno Haible  <bruno@clisp.org>

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

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

2012-03-08  Bruno Haible  <bruno@clisp.org>

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

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

2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>

	savedir: fix comment typo
	* lib/savedir.c (savedirstream): Fix typo in comment.

2012-03-08  Bruno Haible  <bruno@clisp.org>

	test-readtokens.c: use const; remove unwarranted cast
	* tests/test-readtokens.c: Declare delim to be const, to avoid a cast.

2012-03-08  Bruno Haible  <bruno@clisp.org>

	fmal: Avoid compilation error on AIX.
	* lib/math.in.h (fmal): Undefine macro before declaration. Needed on
	AIX 5.2..7.1.

2012-03-08  Bruno Haible  <bruno@clisp.org>

	fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
	* m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
	arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
	* m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
	arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
	* m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
	arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.

2012-03-08  Bruno Haible  <bruno@clisp.org>

	remainderf: Override buggy system function on IRIX 6.5.
	* m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
	(gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
	when it exists.
	* doc/posix-functions/remainderf.texi: Mention the IRIX problems.

2012-03-08  Jim Meyering  <meyering@redhat.com>

	test-readtokens.c: avoid const-related compilation warnings
	* tests/test-readtokens.c: Avoid const-related compilation warnings.

2012-03-07  Jim Meyering  <meyering@redhat.com>
	    Bruno Haible  <bruno@clisp.org>

	frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
	* modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
	tests/randomd.c.
	(Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
	* modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
	tests/randoml.c.
	(Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.

2012-03-07  Bruno Haible  <bruno@clisp.org>

	expm1l: Avoid compilation error on AIX.
	* lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
	AIX 5.2..7.1.

2012-03-07  Bruno Haible  <bruno@clisp.org>

	expm1l: Don't override undeclared system function on IRIX 6.5.
	* lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
	* m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
	it exists. Set HAVE_DECL_EXPM1L.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
	HAVE_EXPM1L.
	* modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
	HAVE_EXPM1L.
	* doc/posix-functions/expm1l.texi: Mention missing declaration problem.

2012-03-07  Bruno Haible  <bruno@clisp.org>

	remainderl: Don't override undeclared system function on IRIX 6.5.
	* lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
	HAVE_REMAINDERL.
	* m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
	declared when it exists. Set HAVE_DECL_REMAINDERL.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
	not HAVE_REMAINDERL.
	* modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
	HAVE_REMAINDERL.
	* doc/posix-functions/remainderl.texi: Mention missing declaration
	problem.

2012-03-07  Bruno Haible  <bruno@clisp.org>

	rintf: Don't override undeclared system function on IRIX 6.5.
	* lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
	* m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
	exists. Set HAVE_DECL_RINTF.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
	HAVE_RINTF.
	* modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
	HAVE_RINTF.
	* doc/posix-functions/rintf.texi: Mention missing declaration problem.

2012-03-07  Bruno Haible  <bruno@clisp.org>

	roundl: Avoid compilation error on AIX.
	* lib/math.in.h (roundl): Undefine macro before declaration. Needed on
	AIX 5.2..7.1.

2012-03-07  Bruno Haible  <bruno@clisp.org>

	roundl: Don't override undeclared system function on IRIX 6.5.
	* m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
	also when it is not declared. Set HAVE_ROUNDL. For replacement code,
	test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
	* modules/roundl (configure.ac): For replacement code, test
	HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
	(Depends-on): Update conditions.
	* doc/posix-functions/roundl.texi: Mention the IRIX problem.

2012-03-07  Bruno Haible  <bruno@clisp.org>

	roundf: Don't override undeclared system function on IRIX 6.5.
	* m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
	also when it is not declared. Set HAVE_ROUNDF. For replacement code,
	test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
	* modules/roundf (configure.ac): For replacement code, test
	HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
	(Depends-on): Update conditions.
	* modules/roundf-ieee (Depends-on): Update conditions.
	* doc/posix-functions/roundf.texi: Mention the IRIX problem.

2012-03-07  Bruno Haible  <bruno@clisp.org>

	round: Don't override undeclared system function on IRIX 6.5.
	* m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
	argument.
	* m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
	also when it is not declared. Set HAVE_ROUND. For replacement code,
	test HAVE_ROUND, not HAVE_DECL_ROUND.
	* modules/round (configure.ac): For replacement code, test HAVE_ROUND,
	not HAVE_DECL_ROUND.
	(Depends-on): Update conditions.
	* modules/round-ieee (Depends-on): Update conditions.
	* doc/posix-functions/round.texi: Mention the IRIX problem.

2012-03-07  Bruno Haible  <bruno@clisp.org>

	copysignf: Don't override undeclared system function on IRIX 6.5.
	* lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
	HAVE_COPYSIGNF.
	* m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
	declared when it exists. Set HAVE_DECL_COPYSIGNF.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
	not HAVE_COPYSIGNF.
	* modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
	HAVE_COPYSIGNF.
	* doc/posix-functions/copysignf.texi: Mention missing declaration
	problem.

2012-03-07  Jim Meyering  <meyering@redhat.com>

	readtokens: add tests
	* modules/readtokens-tests: New file.
	* tests/test-readtokens.c: New file.

2012-03-07  Jim Meyering  <meyering@redhat.com>

	quotearg: the module must now include quote.h
	With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
	So must the module.
	* modules/quotearg (Files): Add quote.h.

2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>

	readtokens: avoid core dumps with unusual calling patterns
	Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
	* lib/readtokens.c: Include limits.h.
	(word, bits_per_word, get_nth_bit, set_nth_bit): New.
	(readtoken): Don't cache the delimiters; the cache code was buggy
	if !delim && saved_delim, or if the new n_delim differs from the old.
	Also, it wasn't thread-safe.

2012-03-07  Bruno Haible  <bruno@clisp.org>

	quote: Adhere to common module description layout.
	* modules/quote (Makefile.am): Add back empty section.

2012-03-06  Akim Demaille  <demaille@gostai.com>

	quote: fuse into quotearg
	This patch is made for the benefit of Bison.
	quote does not leave the choice of the quoting style to the user.
	quoting_style provides poor customizability, yet quoting_options,
	which is very rich, is hidden inside quotearg.c.  So in order to
	allow quote customization, move its implementation to quotearg.c.
	* lib/quote.c: Remove.
	* modules/quote: Adjust.
	* lib/quotearg.c (quoting_options_from_style): Fix a compiler
	warning: provide all the members of literal structs.
	(quote_quoting_options): New.
	(quote, quote_n): Import implementation from quote.c.
	* lib/quote.h: Import the comments from quote.c.
	(quote_quoting_options): New.

2012-03-06  Bruno Haible  <bruno@clisp.org>

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

	New module 'expm1l-ieee'.
	* modules/expm1l-ieee: New file.

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

	New module 'expm1f-ieee'.
	* modules/expm1f-ieee: New file.

	Tests for module 'expm1-ieee'.
	* modules/expm1-ieee-tests: New file.
	* tests/test-expm1-ieee.c: New file.
	* tests/test-expm1-ieee.h: New file.

	New module 'expm1-ieee'.
	* modules/expm1-ieee: New file.
	* m4/expm1-ieee.m4: New file.
	* m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
	whether expm1 works with a minus zero argument. Replace it if not.
	* lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
	* modules/math (Makefile.am): Substitute REPLACE_EXPM1.
	* modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
	(Depends-on): Update conditions.
	* doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
	AIX problem.

2012-03-06  Bruno Haible  <bruno@clisp.org>

	Work around expm1f bug on IRIX 6.5.
	* lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
	* m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
	(gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
	not work.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
	* modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
	* modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
	(Depends-on): Update conditions.
	* doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.

2012-03-06  Bruno Haible  <bruno@clisp.org>

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

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

2012-03-06  Bruno Haible  <bruno@clisp.org>

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

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

2012-03-06  Bruno Haible  <bruno@clisp.org>

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

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

2012-03-06  Bruno Haible  <bruno@clisp.org>

	math: Ensure declarations of math functions.
	* modules/acosf (Depends-on): Add 'extensions'.
	* modules/asinf (Depends-on): Likewise.
	* modules/atan2f (Depends-on): Likewise.
	* modules/atanf (Depends-on): Likewise.
	* modules/cbrt (Depends-on): Likewise.
	* modules/cbrtf (Depends-on): Likewise.
	* modules/cbrtl (Depends-on): Likewise.
	* modules/copysignf (Depends-on): Likewise.
	* modules/copysignl (Depends-on): Likewise.
	* modules/cosf (Depends-on): Likewise.
	* modules/coshf (Depends-on): Likewise.
	* modules/expf (Depends-on): Likewise.
	* modules/fabsf (Depends-on): Likewise.
	* modules/fabsl (Depends-on): Likewise.
	* modules/fmaf (Depends-on): Likewise.
	* modules/fmal (Depends-on): Likewise.
	* modules/fmodf (Depends-on): Likewise.
	* modules/fmodl (Depends-on): Likewise.
	* modules/frexpf (Depends-on): Likewise.
	* modules/frexpl (Depends-on): Likewise.
	* modules/hypot (Depends-on): Likewise.
	* modules/hypotf (Depends-on): Likewise.
	* modules/hypotl (Depends-on): Likewise.
	* modules/ldexpf (Depends-on): Likewise.
	* modules/ldexpl (Depends-on): Likewise.
	* modules/log10f (Depends-on): Likewise.
	* modules/log10l (Depends-on): Likewise.
	* modules/log1p (Depends-on): Likewise.
	* modules/logb (Depends-on): Likewise.
	* modules/logf (Depends-on): Likewise.
	* modules/modff (Depends-on): Likewise.
	* modules/modfl (Depends-on): Likewise.
	* modules/powf (Depends-on): Likewise.
	* modules/remainderf (Depends-on): Likewise.
	* modules/remainderl (Depends-on): Likewise.
	* modules/rintf (Depends-on): Likewise.
	* modules/rintl (Depends-on): Likewise.
	* modules/sinf (Depends-on): Likewise.
	* modules/sinhf (Depends-on): Likewise.
	* modules/sqrtf (Depends-on): Likewise.
	* modules/tanf (Depends-on): Likewise.
	* modules/tanhf (Depends-on): Likewise.
	* m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
	* m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
	* m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
	* m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
	* m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
	* m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
	* m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
	* m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
	* m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
	* m4/cosf.m4 (gl_FUNC_COSF): Likewise.
	* m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
	* m4/expf.m4 (gl_FUNC_EXPF): Likewise.
	* m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
	* m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
	* m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
	* m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
	* m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
	* m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
	* m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
	* m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
	* m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
	* m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
	* m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
	* m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
	* m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
	* m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
	* m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
	* m4/logb.m4 (gl_FUNC_LOGB): Likewise.
	* m4/logf.m4 (gl_FUNC_LOGF): Likewise.
	* m4/modff.m4 (gl_FUNC_MODFF): Likewise.
	* m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
	* m4/powf.m4 (gl_FUNC_POWF): Likewise.
	* m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
	* m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
	* m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
	* m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
	* m4/sinf.m4 (gl_FUNC_SINF): Likewise.
	* m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
	* m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
	* m4/tanf.m4 (gl_FUNC_TANF): Likewise.
	* m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.

2012-03-06  Bruno Haible  <bruno@clisp.org>

	math: Update module names in warnings.
	* lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
	tanl): Use specific module name in warn-on-use warning.

2012-03-06  Bruno Haible  <bruno@clisp.org>

	expl: Simplify computation.
	* lib/expl.c (expl): Simplify computation of exp_y. Fix comment.

2012-03-05  Bruno Haible  <bruno@clisp.org>

	exp* tests: More tests.
	* tests/test-exp.h: New file.
	* tests/test-exp.c: Include <float.h> and test-exp.h.
	(main): Invoke test_function.
	* tests/test-expf.c: Include <float.h> and test-exp.h.
	(main): Invoke test_function.
	* tests/test-expl.c: Include <float.h> and test-exp.h.
	(main): Invoke test_function.
	* modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
	(Makefile.am): Add randomd.c to test_exp_SOURCES.
	* modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
	(Makefile.am): Add randomf.c to test_expf_SOURCES.
	* modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
	(Depends-on): Add 'float'.
	(Makefile.am): Add randoml.c to test_expl_SOURCES.

	expl: Fix precision of computed result.
	* lib/expl.c: Completely rewritten.
	* modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
	(Maintainer): Add me.
	* m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.

2012-03-05  Bruno Haible  <bruno@clisp.org>

	cbrt* tests: More tests.
	* tests/test-cbrt.h: New file.
	* tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
	(main): Invoke test_function.
	* tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
	(main): Invoke test_function.
	* tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
	(main): Invoke test_function.
	* modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
	(Makefile.am): Add randomd.c to test_cbrt_SOURCES.
	* modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
	(Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
	* modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
	(Depends-on): Add 'float'.
	(Makefile.am): Add randoml.c to test_cbrtl_SOURCES.

2012-03-05  Bruno Haible  <bruno@clisp.org>

	hypot* tests: More tests.
	* tests/test-hypot.h: New file, partially extracted from
	tests/test-hypotl.c.
	* tests/test-hypot.c: Include test-hypot.h.
	(main): Invoke test_function.
	* tests/test-hypotf.c: Include test-hypot.h.
	(main): Invoke test_function.
	* tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
	(main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
	* modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
	(Makefile.am): Add randomd.c to test_hypot_SOURCES.
	* modules/hypotf-tests (Files): Add tests/test-hypot.h,
	tests/randomf.c.
	(Makefile.am): Add randomf.c to test_hypotf_SOURCES.
	* modules/hypotl-tests (Files): Add tests/test-hypot.h,
	tests/randoml.c.
	(Depends-on): Add 'fpucw', 'float'.
	(Makefile.am): Add randoml.c to test_hypotl_SOURCES.

2012-03-05  Bruno Haible  <bruno@clisp.org>

	fpucw: Doc about FreeBSD.
	* lib/fpucw.h: Mention FreeBSD in comments.

2012-03-04  Bruno Haible  <bruno@clisp.org>

	sqrt* tests: More tests.
	* tests/test-sqrt.h: New file.
	* tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
	(main): Invoke test_function.
	* tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
	(main): Invoke test_function.
	* tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
	(main): Invoke test_function.
	* modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
	(Makefile.am): Add randomd.c to test_sqrt_SOURCES.
	* modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
	(Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
	* modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
	(Depends-on): Add 'float'.
	(Makefile.am): Add randoml.c to test_sqrtl_SOURCES.

2012-03-04  Bruno Haible  <bruno@clisp.org>

	remainder* tests: More tests.
	* tests/test-remainder.h: New file, based on tests/test-fmod.h.
	* tests/test-remainder.c: Include <float.h> and test-remainder.h.
	(main): Invoke test_function.
	* tests/test-remainderf.c: Include <float.h> and test-remainder.h.
	(main): Invoke test_function.
	* tests/test-remainderl.c: Include <float.h> and test-remainder.h.
	(main): Invoke test_function.
	* modules/remainder-tests (Files): Add tests/test-remainder.h,
	tests/randomd.c.
	(Makefile.am): Add randomd.c to test_remainder_SOURCES.
	* modules/remainderf-tests (Files): Add tests/test-remainder.h,
	tests/randomf.c.
	(Makefile.am): Add randomf.c to test_remainderf_SOURCES.
	* modules/remainderl-tests (Files): Add tests/test-remainder.h,
	tests/randoml.c.
	(Depends-on): Add 'float'.
	(Makefile.am): Add randoml.c to test_remainderl_SOURCES.

2012-03-04  Bruno Haible  <bruno@clisp.org>

	remainder, remainderf, remainderl: Fix computation for large quotients.
	* lib/remainder.c: Completely rewritten.
	* lib/remainderf.c (remainderf): Use implementation of remainder.c with
	USE_FLOAT.
	* lib/remainderl.c (remainderl): Use implementation of remainder.c with
	USE_LONG_DOUBLE.
	* modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
	isnand, isinf. Remove round, fma.
	* modules/remainderf (Files): Add lib/remainder.c.
	(Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
	Remove roundf, fmaf.
	* modules/remainderl (Files): Add lib/remainder.c.
	(Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
	isinf. Remove roundl, fmal.
	* m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
	REMAINDER_LIBM.
	* m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
	REMAINDERF_LIBM.
	* m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
	REMAINDERL_LIBM.

2012-03-04  Bruno Haible  <bruno@clisp.org>

	fmod* tests: More tests.
	* tests/test-fmod.h (my_ldexp): New function.
	(test_function): Reduce amount of random numbers to test. Add tests
	of very large quotients x / y.
	* tests/test-fmod.c (MAX_EXP): New macro.
	* tests/test-fmodf.c (MAX_EXP): Likewise.
	* tests/test-fmodl.c (MAX_EXP): Likewise.

2012-03-04  Bruno Haible  <bruno@clisp.org>

	fmod, fmodl: Fix computation for large quotients x / y.
	* lib/fmod.c: Completely rewritten.
	* lib/fmodl.c (fmodl): Use implementation of fmod.c with
	USE_LONG_DOUBLE.
	* modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
	isnand. Remove fma.
	* modules/fmodl (Files): Add lib/fmod.c.
	(Depends-on): Add float, isfinite, signbit, fabsl,
	frexpl, ldexpl, isnanl. Remove fma.
	* m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
	* m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.

2012-03-03  Bruno Haible  <bruno@clisp.org>

	fmod* tests: More tests.
	* tests/test-fmod.h: New file.
	* tests/test-fmod.c: Include <float.h> and test-fmod.h.
	(main): Invoke test_function.
	* tests/test-fmodf.c: Include <float.h> and test-fmod.h.
	(main): Invoke test_function.
	* tests/test-fmodl.c: Include <float.h> and test-fmod.h.
	(main): Invoke test_function.
	* modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
	(Makefile.am): Add randomd.c to test_fmod_SOURCES.
	* modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
	(Makefile.am): Add randomf.c to test_fmodf_SOURCES.
	* modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
	(Depends-on): Add 'float'.
	(Makefile.am): Add randoml.c to test_fmodl_SOURCES.

2012-03-03  Bruno Haible  <bruno@clisp.org>

	rint* tests: More tests.
	* tests/test-rint.h: New file, partially extracted from
	tests/test-rintl.c.
	* tests/test-rint.c: Include test-rint.h.
	(main): Invoke test_function.
	* tests/test-rintf.c: Include test-rint.h.
	(main): Invoke test_function.
	* tests/test-rintl.c: Include test-rint.h.
	(main): Invoke test_function.
	* modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
	(Makefile.am): Add randomd.c to test_rint_SOURCES.
	* modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
	(Makefile.am): Add randomf.c to test_rintf_SOURCES.
	* modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
	(Makefile.am): Add randoml.c to test_rintl_SOURCES.

2012-03-03  Bruno Haible  <bruno@clisp.org>

	modf* tests: More tests.
	* tests/test-modf.h: New file.
	* tests/test-modf.c: Include <float.h> and test-modf.h.
	(main): Invoke test_function.
	* tests/test-modff.c: Include <float.h> and test-modf.h.
	(main): Invoke test_function.
	* tests/test-modfl.c: Include <float.h> and test-modf.h.
	(main): Invoke test_function.
	* modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
	(Makefile.am): Add randomd.c to test_modf_SOURCES.
	* modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
	(Makefile.am): Add randomf.c to test_modff_SOURCES.
	* modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
	(Depends-on): Add 'float'.
	(Makefile.am): Add randoml.c to test_modfl_SOURCES.

2012-03-03  Bruno Haible  <bruno@clisp.org>

	fabs* tests: More tests.
	* tests/test-fabs.h: New file, partially extracted from
	tests/test-fabsl.c.
	* tests/test-fabs.c (RANDOM): New macro.
	* tests/test-fabsf.c (RANDOM): New macro.
	* tests/test-fabsl.c (RANDOM): New macro.
	* modules/fabs-tests (Files): Add tests/randomd.c.
	(Makefile.am): Add randomd.c to test_fabs_SOURCES.
	* modules/fabsf-tests (Files): Add tests/randomf.c.
	(Makefile.am): Add randomf.c to test_fabsf_SOURCES.
	* modules/fabsl-tests (Files): Add tests/randoml.c.
	(Makefile.am): Add randoml.c to test_fabsl_SOURCES.

2012-03-03  Bruno Haible  <bruno@clisp.org>

	ldexp* tests: More tests.
	* tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
	* tests/test-ldexp.c (RANDOM): New macro.
	* tests/test-ldexpf.c (RANDOM): New macro.
	* tests/test-ldexpl.c (RANDOM): New macro.
	* modules/ldexp-tests (Files): Add tests/randomd.c.
	(Makefile.am): Add randomd.c to test_ldexp_SOURCES.
	* modules/ldexpf-tests (Files): Add tests/randomf.c.
	(Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
	* modules/ldexpl-tests (Files): Add tests/randoml.c.
	(Makefile.am): Add randoml.c to test_ldexpl_SOURCES.

2012-03-03  Bruno Haible  <bruno@clisp.org>

	frexp* tests: More tests.
	* tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
	* tests/test-frexp.c (RANDOM): New macro.
	* tests/test-frexpf.c (RANDOM): New macro.
	* tests/test-frexpl.c (RANDOM): New macro.
	* modules/frexp-tests (Files): Add tests/randomd.c.
	(Makefile.am): Add randomd.c to test_frexp_SOURCES.
	* modules/frexpf-tests (Files): Add tests/randomf.c.
	(Makefile.am): Add randomf.c to test_frexpf_SOURCES.
	* modules/frexpl-tests (Files): Add tests/randoml.c.
	(Makefile.am): Add randoml.c to test_frexpl_SOURCES.

2012-03-03  Bruno Haible  <bruno@clisp.org>

	Support for pseudo-random numbers in tests.
	* tests/randomf.c: New file.
	* tests/randomd.c: New file.
	* tests/randoml.c: New file.
	* tests/macros.h (randomf, randomd, randoml): New declarations.

2012-03-03  Bruno Haible  <bruno@clisp.org>

	frexp* tests: Refactor.
	* tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
	* tests/test-frexp.c: Include and use it.
	* tests/test-frexpf.c: Likewise.
	* tests/test-frexpl.c: Likewise.
	* modules/frexp-tests (Files): Add tests/test-frexp.h.
	* modules/frexpf-tests (Files): Likewise.
	* modules/frexpl-tests (Files): Likewise.

2012-03-02  Jim Meyering  <meyering@redhat.com>

	maint: don't specify XZ_OPT=-9ev in dist-related rule
	Using xz's -9 option is warranted only if you have a very large
	tarball (see xz's documentation for the sizes vs. presets), and
	requires 64MiB of memory at decompression time.
	* top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
	Automake's default of just "-e" is fine.  Override on a
	per-package basis by setting XZ_OPT e.g., in cfg.mk.

2012-03-01  Eric Blake  <eblake@redhat.com>

	maint.mk: allow announcement for non-gnulib project
	* maint.mk (announcement): Skip gnulib version if not used.

2012-03-01  Jim Meyering  <meyering@redhat.com>

	maint.mk: avoid spurious failure of _sc_search_regexp-using tests
	* top/maint.mk: Initialize _sc_search_regexp parameters, so that
	envvar settings cannot interfere.  Otherwise, setting envvars like
	prohibit=foo require=bar, etc. would cause spurious test failures.

2012-03-01  Eric Blake  <eblake@redhat.com>

	maint.mk: add per-line exclusions to prohibitions
	* maint.mk (_sc_search_regexp): Add $exclude parameter.
	(sc_prohibit_strcmp, sc_unmarked_diagnostics)
	(sc_const_long_option): Use it.

2012-03-01  Bruno Haible  <bruno@clisp.org>

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

	New module 'expl-ieee'.
	* modules/expl-ieee: New file.

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

	New module 'exp-ieee'.
	* modules/exp-ieee: New file.

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

	New module 'expf-ieee'.
	* modules/expf-ieee: New file.

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

	cbrtl-ieee: Work around test failure on IRIX 6.5.
	* m4/cbrtl-ieee.m4: New file.
	* m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
	test whether cbrtl works with a minus zero argument. Replace it if not.
	* lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
	* modules/math (Makefile.am): Substitute REPLACE_CBRTL.
	* modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
	(Depends-on): Update conditions.
	* modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
	m4/signbit.m4.
	(configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
	* lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
	* doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.

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

	New module 'cbrtl-ieee'.
	* modules/cbrtl-ieee: New file.

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

	New module 'cbrt-ieee'.
	* modules/cbrt-ieee: New file.

	Tests for module 'cbrtf-ieee'.
	* modules/cbrtf-ieee-tests: New file.
	* tests/test-cbrtf-ieee.c: New file.
	* tests/test-cbrt-ieee.h: New file.

	New module 'cbrtf-ieee'.
	* modules/cbrtf-ieee: New file.

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

	cbrtf: Work around bug in IRIX 6.5 system function.
	* lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
	* m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
	(gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
	work.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
	* modules/math (Makefile.am): Substitute REPLACE_CBRTF.
	* modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
	(Depends-on): Update conditions.
	* doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.

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

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

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

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

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

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

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

	cbrt: Provide replacement on MSVC and Minix.
	* lib/math.in.h (cbrt): New declaration.
	* lib/cbrt.c: New file.
	* m4/cbrt.m4: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
	* modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
	* modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
	(Depends-on): Add dependencies.
	(configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
	* tests/test-math-c++.cc: Check the declaration of cbrt.
	* doc/posix-functions/cbrt.texi: Mention that the module provides a
	replacement.

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

	hypotl-ieee: Work around test failure on OSF/1 and native Windows.
	* m4/hypotl-ieee.m4: New file.
	* m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
	test whether hypotl works with mixed NaN and Infinity arguments.
	Replace it if not.
	* lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
	* modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
	* modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
	(Depends-on): Update conditions.
	* modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
	(Depends-on): Add hypot-ieee.
	(configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
	* doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.

	hypotf-ieee: Work around test failure on OSF/1 and native Windows.
	* m4/hypotf-ieee.m4: New file.
	* m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
	test whether hypotf works with mixed NaN and Infinity arguments.
	Replace it if not.
	* modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
	(Depends-on): Add hypot-ieee.
	(configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
	* doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.

	hypot-ieee: Work around test failure on OSF/1 and native Windows.
	* lib/math.in.h (hypot): New declaration.
	* lib/hypot.c: New file.
	* m4/hypot-ieee.m4: New file.
	* m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
	whether hypot works with mixed NaN and Infinity arguments. Replace it
	if not.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
	REPLACE_HYPOT.
	* modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
	* modules/hypot (Files): Add lib/hypot.c.
	(Depends-on): Add dependencies.
	(configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
	* modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
	(configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
	* tests/test-math-c++.cc: Check the declaration of hypot.
	* doc/posix-functions/hypot.texi: Mention the hypot-ieee module.

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

	New module 'hypotl-ieee'.
	* modules/hypotl-ieee: New file.

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

	New module 'hypot-ieee'.
	* modules/hypot-ieee: New file.

	Tests for module 'hypotf-ieee'.
	* modules/hypotf-ieee-tests: New file.
	* tests/test-hypotf-ieee.c: New file.
	* tests/test-hypot-ieee.h: New file.

	New module 'hypotf-ieee'.
	* modules/hypotf-ieee: New file.

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

	Remove unused variables.
	* m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
	* m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
	* m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
	* m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.

2012-02-29  Eric Blake  <eblake@redhat.com>

	termios: fix pid_t always, not just for tcgetsid
	* doc/posix-headers/termios.texi (termios.h): Mention problem.
	* lib/termios.in.h (include): Ensure pid_t on all platforms, not
	just when building tcgetsid.

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

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

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

2012-02-29  Eric Blake  <eblake@redhat.com>

	tcgetsid: fix cygwin header bug
	* lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.

	docs: update cygwin progress
	* doc/posix-functions/llround.texi (llround): Added in cygwin
	1.7.8.
	* doc/posix-functions/llroundf.texi (llroundf): Likewise.
	* doc/glibc-functions/program_invocation_name.texi
	(program_invocation_name): Likewise.
	* doc/glibc-functions/program_invocation_short_name.texi
	(program_invocation_short_name): Likewise.
	* doc/glibc-functions/madvise.texi (madvise): Likewise.
	* doc/glibc-functions/pthread_yield.texi (pthread_yield):
	Likewise.
	* doc/posix-functions/pthread_spin_destroy.texi
	(pthread_spin_destroy): Added in cygwin 1.7.10.
	* doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
	Likewise.
	* doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
	Likewise.
	* doc/posix-functions/pthread_spin_trylock.texi
	(pthread_spin_trylock): Likewise.
	* doc/posix-functions/pthread_spin_unlock.texi
	(pthread_spin_unlock): Likewise.
	* doc/posix-functions/pthread_setschedprio.texi
	(pthread_setschedprio): Likewise.
	* doc/posix-functions/pthread_attr_getstack.texi
	(pthread_attr_getstack): Likewise.
	* doc/pastposix-functions/pthread_attr_getstackaddr.texi
	(pthread_attr_getstackaddr): Likewise.
	* doc/glibc-functions/pthread_getattr_np.texi
	(pthread_getattr_np): Likewise.
	* doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
	* doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
	* doc/posix-functions/clock_settime.texi (clock_settime):
	Likewise.
	* doc/posix-functions/pthread_attr_getguardsize.texi
	(pthread_attr_getguardsize): Likewise.
	* doc/posix-functions/pthread_attr_setguardsize.texi
	(pthread_attr_setguardsize): Likewise.
	* doc/posix-functions/pthread_attr_setstack.texi
	(pthread_attr_setstack): Likewise.
	* doc/pastposix-functions/pthread_attr_setstackaddr.texi
	(pthread_attr_setstackaddr): Likewise.
	* doc/posix-functions/clock_getcpuclockid.texi
	(clock_getcpuclockid): Likewise.
	* doc/posix-functions/pthread_getcpuclockid.texi
	(pthread_getcpuclockid): Likewise.
	* doc/glibc-functions/error.texi (error): Likewise.
	* doc/glibc-functions/error_at_line.texi (error_at_line):
	Likewise.
	* doc/glibc-functions/error_message_count.texi
	(error_message_count): Likewise.
	* doc/glibc-functions/error_one_per_line.texi
	(error_one_per_line): Likewise.
	* doc/glibc-functions/error_print_progname.texi
	(error_print_progname): Likewise.
	* doc/posix-functions/pthread_condattr_getclock.texi
	(pthread_condattr_getclock): Likewise.
	* doc/posix-functions/pthread_condattr_setclock.texi
	(pthread_condattr_setclock): Likewise.
	* doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
	Likewise.
	* doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
	* doc/glibc-functions/getpt.texi (getpt): Likewise.
	* doc/glibc-functions/get_current_dir_name.texi
	(get_current_dir_name): Likewise.
	* doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
	Likewise.
	* doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
	wrong return type.
	* doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
	1.7.11.

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

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

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

	hypot: Prepare for hypotf module.
	* m4/hypot.m4: New file.
	* modules/hypot (Files): Add m4/hypot.m4.
	(configure.ac): Invoke gl_FUNC_HYPOT.

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

	hypot tests: More tests.
	* tests/test-hypot.c: Include <float.h>.
	(main): Add tests about overflow and underflow.

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

	math code: Add comments.
	* lib/acosl.c: Add comment about related glibc source files.
	* lib/asinl.c: Likewise.
	* lib/atanl.c: Likewise.
	* lib/expl.c: Likewise.
	* lib/logl.c: Likewise.
	* lib/sincosl.c: Likewise.
	* lib/sinl.c: Likewise.
	* lib/tanl.c: Likewise.
	* lib/trigl.c: Likewise.
	* lib/cosl.c: Likewise. Fix comments.

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

	math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
	* lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
	* tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
	HUGE_VALL are defined.
	(numeric_equald): Renamed from numeric_equal.
	(numeric_equalf, numeric_equall): New functions.
	(main): Check also HUGE_VALF, HUGE_VALL.
	* modules/math-tests (Files): Add tests/macros.h.
	* doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
	HUGE_VALL.

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

	doc: Move ISO C11 feature notes into POSIX chapters.
	* doc/posix-functions/aligned_alloc.texi: Renamed from
	doc/glibc-functions/aligned_alloc.texi.
	* doc/posix-functions/quick_exit.texi: Renamed from
	doc/glibc-functions/quick_exit.texi.
	* doc/posix-headers/uchar.texi: Renamed from
	doc/glibc-headers/uchar.texi.
	* doc/posix-functions/c16rtomb.texi: Renamed from
	doc/glibc-functions/c16rtomb.texi.
	* doc/posix-functions/c32rtomb.texi: Renamed from
	doc/glibc-functions/c32rtomb.texi.
	* doc/posix-functions/mbrtoc16.texi: Renamed from
	doc/glibc-functions/mbrtoc16.texi.
	* doc/posix-functions/mbrtoc32.texi: Renamed from
	doc/glibc-functions/mbrtoc32.texi.
	* doc/gnulib.texi: Update.
	(Glibc uchar.h): Remove section.
	Suggested by Eric Blake.

2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>

	stdnoreturn: port to MSVC better
	MSVC standard headers use __declspec(noreturn), so #define noreturn
	to empty on that platform.  Reported by Bruno Haible in
	<http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
	* lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
	* doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.

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

	doc: Mention new glibc headers and functions.
	* doc/glibc-headers/uchar.texi: New file.
	* doc/glibc-functions/aligned_alloc.texi: New file.
	* doc/glibc-functions/c16rtomb.texi: New file.
	* doc/glibc-functions/c32rtomb.texi: New file.
	* doc/glibc-functions/clock_adjtime.texi: New file.
	* doc/glibc-functions/fanotify_init.texi: New file.
	* doc/glibc-functions/fanotify_mark.texi: New file.
	* doc/glibc-functions/inet6_opt_append.texi: New file.
	* doc/glibc-functions/inet6_opt_find.texi: New file.
	* doc/glibc-functions/inet6_opt_finish.texi: New file.
	* doc/glibc-functions/inet6_opt_get_val.texi: New file.
	* doc/glibc-functions/inet6_opt_init.texi: New file.
	* doc/glibc-functions/inet6_opt_next.texi: New file.
	* doc/glibc-functions/inet6_opt_set_val.texi: New file.
	* doc/glibc-functions/inet6_rth_add.texi: New file.
	* doc/glibc-functions/inet6_rth_getaddr.texi: New file.
	* doc/glibc-functions/inet6_rth_init.texi: New file.
	* doc/glibc-functions/inet6_rth_reverse.texi: New file.
	* doc/glibc-functions/inet6_rth_segments.texi: New file.
	* doc/glibc-functions/inet6_rth_space.texi: New file.
	* doc/glibc-functions/login.texi: New file.
	* doc/glibc-functions/mbrtoc16.texi: New file.
	* doc/glibc-functions/mbrtoc32.texi: New file.
	* doc/glibc-functions/name_to_handle_at.texi: New file.
	* doc/glibc-functions/ntp_gettimex.texi: New file.
	* doc/glibc-functions/open_by_handle_at.texi: New file.
	* doc/glibc-functions/prlimit.texi: New file.
	* doc/glibc-functions/process_vm_readv.texi: New file.
	* doc/glibc-functions/process_vm_writev.texi: New file.
	* doc/glibc-functions/recvmmsg.texi: New file.
	* doc/glibc-functions/scandirat.texi: New file.
	* doc/glibc-functions/sendmmsg.texi: New file.
	* doc/glibc-functions/setns.texi: New file.
	* doc/glibc-functions/timespec_get.texi: New file.
	* doc/gnulib.texi: Include them.
	(Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
	sections.
	Reported by Eric Blake.

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

	Avoid compilation errors with MSVC option -fp:strict.
	* lib/floor.c: Use MSVC specific pragma fenv_access.
	* lib/ceil.c: Likewise.
	* lib/trunc.c: Likewise.
	* lib/round.c: Likewise.
	* lib/rint.c: Likewise.
	* lib/fma.c: Likewise.
	* lib/integer_length.c: Likewise.
	* m4/round.m4 (gl_FUNC_ROUND): Likewise.
	* m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
	* tests/test-floor2.c: Likewise.
	* tests/test-floorf2.c: Likewise.
	* tests/test-ceil2.c: Likewise.
	* tests/test-ceilf2.c: Likewise.
	* tests/test-trunc2.c: Likewise.
	* tests/test-truncf2.c: Likewise.
	Reported by Michael Goffioul <michael.goffioul@gmail.com>.

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

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

	New module 'sqrtl-ieee'.
	* modules/sqrtl-ieee: New file.

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

	New module 'sqrt-ieee'.
	* modules/sqrt-ieee: New file.

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

	New module 'sqrtf-ieee'.
	* modules/sqrtf-ieee: New file.

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

	remainderl-ieee: Work around test failure on OSF/1.
	* m4/remainderl-ieee.m4: New file.
	* m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
	present, test whether remainderl works with a zero second argument.
	Replace it if not.
	* lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
	* modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
	* modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
	(Depends-on): Update conditions.
	* modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
	(Depends-on): Add remainder-ieee.
	(configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
	* doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
	module.

	remainderf-ieee: Work around test failure on OSF/1.
	* m4/remainderf-ieee.m4: New file.
	* m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
	present, test whether remainderf works with a zero second argument.
	Replace it if not.
	* lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
	* modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
	* modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
	(Depends-on): Update conditions.
	* modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
	(Depends-on): Add remainder-ieee.
	(configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
	* doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
	module.

	remainder-ieee: Work around test failure on OSF/1.
	* m4/remainder-ieee.m4: New file.
	* m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
	present, test whether remainder works with a zero second argument.
	Replace it if not.
	* lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
	* modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
	* modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
	(Depends-on): Update dependencies.
	* modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
	(configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
	* doc/posix-functions/remainder.texi: Mention the remainder-ieee module.

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

	New module 'remainderl-ieee'.
	* modules/remainderl-ieee: New file.

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

	New module 'remainder-ieee'.
	* modules/remainder-ieee: New file.

	Tests for module 'remainderf-ieee'.
	* modules/remainderf-ieee-tests: New file.
	* tests/test-remainderf-ieee.c: New file.
	* tests/test-remainder-ieee.h: New file.

	New module 'remainderf-ieee'.
	* modules/remainderf-ieee: New file.

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

	modff, modfl: Fix configure syntax error.
	* m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
	* m4/modfl.m4 (gl_FUNC_MODFL): Likewise.

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

	fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
	* m4/fmodl-ieee.m4: New file.
	* m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
	whether fmodl works with zero arguments. Replace it if not.
	* modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
	(Depends-on): Add fmod-ieee.
	(configure.ac): Invoke gl_FUNC_FMODL_IEEE.
	* doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.

	fmodf-ieee: Work around test failure on OSF/1.
	* m4/fmodf-ieee.m4: New file.
	* m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
	whether fmodf works with zero arguments. Replace it if not.
	* lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
	* modules/math (Makefile.am): Substitute REPLACE_FMODF.
	* modules/fmodf (configure.ac): Consider REPLACE_FMODF.
	(Depends-on): Update dependencies.
	* modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
	(configure.ac): Invoke gl_FUNC_FMODF_IEEE.
	* doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.

	fmodf-ieee: Work around test failure on MSVC 9.
	* modules/fmodf-ieee (Depends-on): Add fmod-ieee.
	* doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.

	fmod-ieee: Work around test failures on OSF/1, mingw.
	* m4/fmod-ieee.m4: New file.
	* m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
	whether fmod works with zero arguments. Replace it if not.
	* lib/math.in.h (fmod): New declaration.
	* lib/fmod.c: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
	* modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
	* modules/fmod (Files): Add lib/fmod.c.
	(Depends-on): Add math, isinf, trunc, fma.
	(configure.ac): Arrange to compile lib/fmod.c if needed.
	* modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
	m4/signbit.m4.
	(configure.ac): Invoke gl_FUNC_FMOD_IEEE.
	* tests/test-math-c++.cc: Check the declaration of fmod.
	* doc/posix-functions/fmod.texi: Mention the fmod-ieee module.

	fmodl-ieee: Fix test failures.
	* lib/fmodl.c (fmodl): Treat Inf specially.
	* modules/fmodl (Depends-on): Add isinf.

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

	New module 'fmodl-ieee'.
	* modules/fmodl-ieee: New file.

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

	New module 'fmod-ieee'.
	* modules/fmod-ieee: New file.

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

	New module 'fmodf-ieee'.
	* modules/fmodf-ieee: New file.

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

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

	New module 'rintl-ieee'.
	* modules/rintl-ieee: New file.

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

	New module 'rint-ieee'.
	* modules/rint-ieee: New file.

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

	New module 'rintf-ieee'.
	* modules/rintf-ieee: New file.

2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>

	regex: re_search etc. should return -2 when memory exhausted
	This bug was uncovered when testing 'grep'.  Without the fix,
	re_search and friends return -1 when memory is exhausted, but -1
	means no match, and this causes grep to falsely report no-match
	instead of memory-exhaustion.  See
	<http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
	* lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
	trouble; this can occur if re_search_internal ran out of memory.

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

	modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
	* m4/modfl-ieee.m4: New file.
	* m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
	whether modfl works with Inf. Replace it if not.
	* lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
	* modules/math (Makefile.am): Substitute REPLACE_MODFL.
	* modules/modfl (configure.ac): Consider REPLACE_MODFL.
	(Depends-on): Update dependencies.
	* modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
	m4/signbit.m4.
	(configure.ac): Invoke gl_FUNC_MODFL_IEEE.
	* doc/posix-functions/modfl.texi: Mention the modfl-ieee module.

	modfl-ieee: Fix dependencies.
	* modules/modfl-ieee (Depends-on): Add modf-ieee.

	modfl-ieee: Fix test failures.
	* lib/modfl.c (modfl): Treat NaN and Inf specially.
	* modules/modfl (Depends-on): Add isfinite, isinf.

	modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
	* m4/modff-ieee.m4: New file.
	* m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
	whether modff works with NaN and Inf. Replace it if not.
	* lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
	* modules/math (Makefile.am): Substitute REPLACE_MODFF.
	* modules/modff (configure.ac): Consider REPLACE_MODFF.
	(Depends-on): Update dependencies.
	* modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
	m4/signbit.m4.
	(Depends-on): Add modf-ieee.
	(configure.ac): Invoke gl_FUNC_MODFF_IEEE.
	* doc/posix-functions/modff.texi: Mention the modff-ieee module.

	modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
	* m4/modf-ieee.m4: New file.
	* m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
	whether modf works with NaN and Inf. Replace it if not.
	* lib/math.in.h (modf): New declaration.
	* lib/modf.c: New file.
	* m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
	* modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
	* modules/modf (Files): Add lib/modf.c.
	(Depends-on): Add math, isfinite, trunc, isinf.
	(configure.ac): Addrange to compile lib/modf.c if needed.
	* modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
	m4/signbit.m4.
	(configure.ac): Invoke gl_FUNC_MODF_IEEE.
	* tests/test-math-c++.cc: Check the declaration of modf.
	* doc/posix-functions/modf.texi: Mention the modf-ieee module.

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

	New module 'modfl-ieee'.
	* modules/modfl-ieee: New file.

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

	New module 'modf-ieee'.
	* modules/modf-ieee: New file.

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

	New module 'modff-ieee'.
	* modules/modff-ieee: New file.

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

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

	New module 'fabsl-ieee'.
	* modules/fabsl-ieee: New file.

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

	New module 'fabs-ieee'.
	* modules/fabs-ieee: New file.

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

	New module 'fabsf-ieee'.
	* modules/fabsf-ieee: New file.

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

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

	New module 'fmal-ieee'.
	* modules/fmal-ieee: New file.

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

	New module 'fma-ieee'.
	* modules/fma-ieee: New file.

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

	New module 'fmaf-ieee'.
	* modules/fmaf-ieee: New file.

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

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

	New module 'ldexpl-ieee'.
	* modules/ldexpl-ieee: New file.

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

	New module 'ldexp-ieee'.
	* modules/ldexp-ieee: New file.

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

	New module 'ldexpf-ieee'.
	* modules/ldexpf-ieee: New file.

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

	Refactor frexp*-ieee tests.
	* tests/test-frexp-ieee.h: New file.
	* tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
	(main): Just call test_function.
	* tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
	(main): Just call test_function.
	* tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
	(main): Just call test_function.
	* modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
	* modules/frexp-ieee-tests (Files): Likewise.
	* modules/frexpl-ieee-tests (Files): Likewise.

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

	New module 'frexpl-ieee'.
	* modules/frexpl-ieee: New file.

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

	New module 'frexp-ieee'.
	* modules/frexp-ieee: New file.

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

	New module 'frexpf-ieee'.
	* modules/frexpf-ieee: New file.

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

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

	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